Function at 0x421001
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x496980]
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.00440bf0
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.00440bf0
push edi
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00440bf0
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 0x4212fe
test esi, esi
je 0x4212fe
test edi, edi
jle 0x4212fe
call fcn.00435f53
push 0x102
push dword [ebp - 0x3c4]
mov dword [ebp - 0x3d4], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0042f204
lea eax, [ebp - 0x220]
push eax
call fcn.0042d261
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x11c]
push 0x4670c0
push eax
call fcn.0042eb61
add esp, 0x1c
mov dword [ebp - 0x3cc], eax
test eax, eax
je 0x421109
lea eax, [ebp - 0x3c8]
push eax
push 0x4670c0
push ebx
call fcn.0042eb61
add esp, 0xc
mov dword [ebp - 0x3cc], eax
push eax
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x42113d
push 0x104
push dword [ebp - 0x3cc]
lea eax, [ebp - 0x220]
push eax
call fcn.0042f204
push ebx
lea eax, [ebp - 0x220]
push 0x3a
push eax
call fcn.0042dbed
add esp, 0x18
push 0x57f570
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x421193
lea eax, [ebp - 0x11c]
push 0x57f468
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
jne 0x421193
push 0x104
lea eax, [ebp - 0x11c]
push 0x57f570
push eax
call fcn.0042f204
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x3c4]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.0040d7f3
add esp, 0x18
lea eax, [ebp - 0x11c]
mov byte [esi], bl
push eax
call fcn.0041dcc7
pop ecx
test eax, eax
je 0x4211d8
lea eax, [ebp - 0x11c]
push eax
call fcn.0042220c
push edi
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.0042f204
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0042f170
add esp, 0x1c
mov eax, esi
jmp 0x421300
lea eax, [ebp - 0x3c0]
mov byte [esi], bl
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4212fe
lea eax, [ebp - 0x11c]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
test ecx, ecx
je 0x4212f9
movzx edx, word [ecx + 0xa]
test dx, dx
jle 0x4212f9
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.00440670
lea eax, [ebp - 0x18]
mov byte [esi], bl
push eax
push dword [ebp - 0x22c]
call fcn.0041dc28
mov edi, dword [ebp - 0x3d0]
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call fcn.0042f204
push esi
call fcn.0041dcc7
add esp, 0x24
test eax, eax
jne 0x42129b
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.0040d324
add esp, 0x1c
or ebx, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
test ebx, ebx
jne 0x4212fe
push esi
call fcn.0044a680
pop ecx
test eax, eax
je 0x4212fe
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0042f170
add esp, 0xc
call fcn.00435f53
mov edi, dword [ebp - 0x3d4]
sub eax, edi
cmp eax, 0xfa0
jbe 0x4211d1
call fcn.00435f53
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.0040d324
add esp, 0x10
jmp 0x4211d1
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret