Assembly Code of File sub_405277
sub_405277 proc near ; CODE XREF: sub_4078FA + 424Bp
var_200 = byte ptr - 200h
arg_0 = dword ptr 8
arg_4 = dword ptr 0Ch
arg_8 = dword ptr 10h
arg_C = dword ptr 14h
push ebp
mov ebp, esp
sub esp, 200h
push ebx
mov ebx, [ ebp + arg_4 ]
push esi
xor esi, esi
cmp dword_4335F0, esi
push edi
mov edi, [ ebp + arg_8 ]
jz short loc_4052BF
push dword_4335F4
lea eax, [ ebp + var_200 ]
push offset aKernel32_dllFa ; \"Kernel32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4052BF: ; CODE XREF: sub_405277 + 1Aj
cmp dword_4335F8, esi
jz short loc_4052F3
push dword_4335FC
lea eax, [ ebp + var_200 ]
push offset aUser32_dllFail ; \"User32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4052F3: ; CODE XREF: sub_405277 + 4Ej
cmp dword_433600, esi
jz short loc_405327
push dword_433604
lea eax, [ ebp + var_200 ]
push offset aAdvapi32_dllFa ; \"Advapi32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_405327: ; CODE XREF: sub_405277 + 82j
cmp dword_433608, esi
jz short loc_40535B
push dword_43360C
lea eax, [ ebp + var_200 ]
push offset aGdi32_dllFaile ; \"Gdi32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_40535B: ; CODE XREF: sub_405277 + B6j
cmp dword_433610, esi
jz short loc_40538F
push dword_433614
lea eax, [ ebp + var_200 ]
push offset aWs2_32_dllFail ; \"Ws2_32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_40538F: ; CODE XREF: sub_405277 + EAj
cmp dword_433618, esi
jz short loc_4053C3
push dword_43361C
lea eax, [ ebp + var_200 ]
push offset aWininet_dllFai ; \"Wininet.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4053C3: ; CODE XREF: sub_405277 + 11Ej
cmp dword_433620, esi
jz short loc_4053F7
push dword_433624
lea eax, [ ebp + var_200 ]
push offset aIcmp_dllFailed ; \"Icmp.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4053F7: ; CODE XREF: sub_405277 + 152j
cmp dword_433628, esi
jz short loc_40542B
push dword_43362C
lea eax, [ ebp + var_200 ]
push offset aNetapi32_dllFa ; \"Netapi32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_40542B: ; CODE XREF: sub_405277 + 186j
cmp dword_433630, esi
jz short loc_40545F
push dword_433634
lea eax, [ ebp + var_200 ]
push offset aDnsapi_dllFail ; \"Dnsapi.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_40545F: ; CODE XREF: sub_405277 + 1BAj
cmp dword_433638, esi
jz short loc_405493
push dword_43363C
lea eax, [ ebp + var_200 ]
push offset aIphlpapi_dllFa ; \"Iphlpapi.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_405493: ; CODE XREF: sub_405277 + 1EEj
cmp dword_433640, esi
jz short loc_4054C7
push dword_433644
lea eax, [ ebp + var_200 ]
push offset aMpr32_dllFaile ; \"Mpr32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4054C7: ; CODE XREF: sub_405277 + 222j
cmp dword_433648, esi
jz short loc_4054FB
push dword_43364C
lea eax, [ ebp + var_200 ]
push offset aShell32_dllFai ; \"Shell32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_4054FB: ; CODE XREF: sub_405277 + 256j
cmp dword_433650, esi
jz short loc_40552F
push dword_433654
lea eax, [ ebp + var_200 ]
push offset aOdbc32_dllFail ; \"Odbc32.dll failed. <%d>\"
push eax
call sub_412BB5
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 20h
loc_40552F: ; CODE XREF: sub_405277 + 28Aj
lea eax, [ ebp + var_200 ]
push offset aMainDllTestCom ; \"[ MAIN ]: DLL test complete.\"
push eax
call sub_412BB5
cmp [ ebp + arg_C ], esi
pop ecx
pop ecx
jnz short loc_40555C
push esi
push edi
lea eax, [ ebp + var_200 ]
push eax
push ebx
push [ ebp + arg_0 ]
call sub_4045DD
add esp, 14h
loc_40555C: ; CODE XREF: sub_405277 + 2CEj
lea eax, [ ebp + var_200 ]
push eax
call sub_401C33
pop ecx
pop edi
pop esi
pop ebx
leave
retn
sub_405277 endp