Function at 0x42fd34
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push 0x190
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x3c0]
push ebx
push eax
call fcn.00466ad0
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.00466ad0
push edi
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00466ad0
xor eax, eax
mov dword [ebp - 0x3c8], ebx
lea edi, [ebp - 0x230]
add esp, 0x24
cmp dword [ebp + 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x104
cmovge edi, dword [ebp + 0x10]
mov dword [ebp - 0x3d0], edi
cmp dword [ebp - 0x3c4], ebx
je 0x430031
test esi, esi
je 0x430031
test edi, edi
jle 0x430031
call fcn.004609ba
push 0x102
push dword [ebp - 0x3c4]
mov dword [ebp - 0x3d4], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00452b01
lea eax, [ebp - 0x220]
push eax
call fcn.00450a50
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x11c]
push 0x49a85c
push eax
call fcn.0045243c
add esp, 0x1c
mov dword [ebp - 0x3cc], eax
test eax, eax
je 0x42fe3c
lea eax, [ebp - 0x3c8]
push eax
push 0x49a85c
push ebx
call fcn.0045243c
add esp, 0xc
mov dword [ebp - 0x3cc], eax
push eax
call fcn.00451684
pop ecx
test eax, eax
jne 0x42fe70
push 0x104
push dword [ebp - 0x3cc]
lea eax, [ebp - 0x220]
push eax
call fcn.00452b01
push ebx
lea eax, [ebp - 0x220]
push 0x3a
push eax
call fcn.00451516
add esp, 0x18
push 0x5b4eb8
call fcn.00451684
pop ecx
test eax, eax
jne 0x42fec6
lea eax, [ebp - 0x11c]
push 0x5b4db0
push eax
call fcn.00470487
pop ecx
pop ecx
test eax, eax
jne 0x42fec6
push 0x104
lea eax, [ebp - 0x11c]
push 0x5b4eb8
push eax
call fcn.00452b01
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x3c4]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.0040d9e1
add esp, 0x18
lea eax, [ebp - 0x11c]
mov byte [esi], bl
push eax
call fcn.0042cb8b
pop ecx
test eax, eax
je 0x42ff0b
lea eax, [ebp - 0x11c]
push eax
call fcn.0043115c
push edi
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.00452b01
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00452a6d
add esp, 0x1c
mov eax, esi
jmp 0x430033
lea eax, [ebp - 0x3c0]
mov byte [esi], bl
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x430031
lea eax, [ebp - 0x11c]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
test ecx, ecx
je 0x43002c
movzx edx, word [ecx + 0xa]
test dx, dx
jle 0x43002c
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x22c]
push eax
call fcn.00466550
lea eax, [ebp - 0x18]
mov byte [esi], bl
push eax
push dword [ebp - 0x22c]
call fcn.0042caec
mov edi, dword [ebp - 0x3d0]
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call fcn.00452b01
push esi
call fcn.0042cb8b
add esp, 0x24
test eax, eax
jne 0x42ffce
movzx eax, byte [ebp - 0x229]
push esi
push eax
movzx eax, byte [ebp - 0x22a]
push eax
movzx eax, byte [ebp - 0x22b]
push eax
movzx eax, byte [ebp - 0x22c]
push eax
push dword [ebp - 0x3c4]
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.0040d511
add esp, 0x1c
or ebx, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
test ebx, ebx
jne 0x430031
push esi
call fcn.00470560
pop ecx
test eax, eax
je 0x430031
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00452a6d
add esp, 0xc
call fcn.004609ba
mov edi, dword [ebp - 0x3d4]
sub eax, edi
cmp eax, 0xfa0
jbe 0x42ff04
call fcn.004609ba
sub eax, edi
push eax
push esi
push dword [ebp - 0x3c4]
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.0040d511
add esp, 0x10
jmp 0x42ff04
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret