Function at 0x4053f0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ad2e
mov eax, dword fs:[0]
push eax
sub esp, 0x780
mov eax, dword [0x432110]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x784], ecx
mov dword [ebp - 0x780], 0
push 0x42c3bf
lea ecx, [ebp - 0x34]
call fcn.00403130
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x14], 0
push 0x42c688
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x405709
push 0x42c698
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4056ff
lea ecx, [ebp - 0x148]
push ecx
push 0
call dword [ebp - 0x14]
test eax, eax
je 0x4054b7
mov edx, dword [ebp - 0x148]
push edx
call fcn.0040b64e
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x14]
test eax, eax
jne 0x4056ed
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 0
je 0x4056ed
xor eax, eax
mov word [ebp - 0x4b4], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x4b2]
push ecx
call fcn.0040b720
add esp, 0xc
push 0x15c
push 0
lea edx, [ebp - 0x2b4]
push edx
call fcn.0040b720
add esp, 0xc
push 0x35c
push 0
lea eax, [ebp - 0x4b4]
push eax
call fcn.0040b720
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0x19c]
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0x1a0]
mov dword [ebp - 0x2b0], ecx
lea edx, [ebp - 0x4b4]
push edx
call sub.iphlpapi.dll_GetIfEntry
test eax, eax
je 0x405575
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov dword [ebp - 0x14c], ecx
jmp 0x4054d6
cmp dword [ebp - 0x294], 0
jne 0x405591
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx]
mov dword [ebp - 0x14c], eax
jmp 0x4054d6
mov ecx, dword [ebp - 0x14c]
cmp dword [ecx + 0x1a0], 6
je 0x4055af
mov edx, dword [ebp - 0x14c]
cmp dword [edx + 0x1a0], 0x47
jne 0x4055b1
jmp 0x4055c4
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov dword [ebp - 0x14c], ecx
jmp 0x4054d6
mov edx, dword [ebp - 0x14c]
add edx, 0x1b0
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x14c]
add eax, 0x1d8
mov dword [ebp - 0x154], eax
push 0x42c6a8
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040f290
add esp, 8
test eax, eax
je 0x4056da
push 0x42c6b0
mov edx, dword [ebp - 0x154]
push edx
call fcn.0040f290
add esp, 8
test eax, eax
je 0x4056da
push 0x104
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.0040b720
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403210
test eax, eax
jbe 0x40564e
push 0x42c6b8
lea ecx, [ebp - 0x34]
call fcn.00402c50
mov dword [ebp - 0x4b8], 0
jmp 0x405669
mov ecx, dword [ebp - 0x4b8]
add ecx, 1
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x4b8]
cmp eax, dword [edx + 0x190]
jae 0x4056da
mov ecx, dword [ebp - 0x14c]
add ecx, dword [ebp - 0x4b8]
movzx edx, byte [ecx + 0x194]
push edx
push str._02X
lea eax, [ebp - 0x144]
push eax
call fcn.0040b79a
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00402c50
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x190]
sub eax, 1
cmp dword [ebp - 0x4b8], eax
jae 0x4056d8
push 0x42c6c4
lea ecx, [ebp - 0x34]
call fcn.00402c50
jmp 0x40565a
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov dword [ebp - 0x14c], edx
jmp 0x4054d6
cmp dword [ebp - 0x10], 0
je 0x4056ff
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b4f7
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x34]
call fcn.00403210
test eax, eax
ja 0x405815
lea edx, [ebp - 0x64c]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov byte [ebp - 0x754], 0
push 0x103
push 0
lea eax, [ebp - 0x753]
push eax
call fcn.0040b720
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x754]
push ecx
call sub.WS2_32.dll_gethostname
mov dword [ebp - 0x760], eax
cmp dword [ebp - 0x760], 0xffffffff
jne 0x405796
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403170
mov eax, dword [ebp - 0x780]
or eax, 1
mov dword [ebp - 0x780], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031b0
mov eax, dword [ebp + 8]
jmp 0x40583f
lea ecx, [ebp - 0x754]
push ecx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x758], eax
mov edx, dword [ebp - 0x758]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x75c], eax
mov eax, dword [ebp - 0x75c]
push eax
push 0
lea ecx, [ebp - 0x77c]
push ecx
mov ecx, dword [ebp - 0x784]
call fcn.004047a0
mov dword [ebp - 0x788], eax
mov edx, dword [ebp - 0x788]
mov dword [ebp - 0x78c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x77c]
call fcn.004031b0
call sub.WS2_32.dll_WSACleanup
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403170
mov edx, dword [ebp - 0x780]
or edx, 1
mov dword [ebp - 0x780], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040a92b
mov esp, ebp
pop ebp
ret 4