Function at 0x442354
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x5345d0]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x18e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x36]
push ebx
push eax
mov word [esp + 0x3c], bx
call fcn.004b53e0
mov edi, 0x103
push edi
lea eax, [esp + 0x1e9]
push ebx
push eax
mov byte [esp + 0x1f0], bl
call fcn.004b53e0
push edi
lea eax, [esp + 0x2fd]
push ebx
push eax
mov byte [esp + 0x304], bl
call fcn.004b53e0
xor eax, eax
mov word [esp + 0x44], bx
lea edi, [esp + 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
jge 0x4423e6
mov dword [ebp + 0x10], 0x104
cmp dword [esp + 0x10], ebx
je 0x442642
cmp esi, ebx
je 0x442642
cmp dword [ebp + 0x10], ebx
jle 0x442642
call fcn.004a4ba8
push dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, 0x102
lea eax, [esp + 0x1dc]
call fcn.0047c3fc
lea eax, [esp + 0x2e4]
call fcn.0047c34d
mov edi, 0x4f29fc
push edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1e0]
call fcn.0047de6b
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x44245c
push edi
lea eax, [esp + 0x1c]
xor ecx, ecx
call fcn.0047de6b
pop ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
call fcn.0047c3ca
test eax, eax
jne 0x442490
push dword [esp + 0x14]
mov ecx, 0x104
lea eax, [esp + 0x2e4]
call fcn.0047c3fc
push 0x3a
xor eax, eax
lea edi, [esp + 0x2e8]
call fcn.0047d20a
pop ecx
pop ecx
mov edi, 0x62bff8
mov edx, edi
call fcn.0047c3ca
test eax, eax
jne 0x4424dc
lea eax, [esp + 0x1d8]
push 0x62bef0
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
jne 0x4424dc
push edi
mov ecx, 0x104
lea eax, [esp + 0x1dc]
call fcn.0047c3fc
push eax
push dword [esp + 0x18]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.00417db7
add esp, 0x10
lea ecx, [esp + 0x1d8]
mov byte [esi], bl
call fcn.00441ec9
test eax, eax
je 0x442520
lea ebx, [esp + 0x1d8]
call fcn.00441d8f
mov ecx, dword [ebp + 0x10]
mov eax, ebx
push eax
mov eax, esi
call fcn.0047c3fc
lea eax, [esp + 0x2e4]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0047c4cc
pop ecx
pop ecx
mov eax, esi
jmp 0x442644
lea eax, [esp + 0x30]
push eax
push 0x101
mov byte [esi], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x442642
lea eax, [esp + 0x1d8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
cmp ecx, ebx
je 0x4425e5
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x4425e5
xor eax, eax
mov byte [esp + 0x1c4], bl
lea edi, [esp + 0x1c5]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.004b4cb0
push dword [esp + 0x30]
lea eax, [esp + 0x1d4]
mov byte [esi], bl
call fcn.00442273
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1d4]
push eax
mov eax, esi
call fcn.0047c3fc
add esp, 0x14
mov ecx, esi
xor edi, edi
call fcn.00441ec9
test eax, eax
jne 0x4425e8
movzx eax, byte [esp + 0x27]
push esi
push eax
movzx eax, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push eax
movzx eax, byte [esp + 0x34]
push eax
push dword [esp + 0x24]
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.004178df
add esp, 0x1c
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
cmp edi, ebx
jne 0x442642
push esi
call fcn.004b4450
test eax, eax
pop ecx
jbe 0x442642
lea eax, [esp + 0x2e0]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0047c4cc
pop ecx
call fcn.004a4ba8
sub eax, dword [esp + 0x1c]
cmp eax, 0xfa0
jbe 0x442519
call fcn.004a4ba8
sub eax, dword [esp + 0x1c]
push eax
push esi
push dword [esp + 0x18]
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.004178df
add esp, 0x10
jmp 0x442519
xor eax, eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4c95
mov esp, ebp
pop ebp
ret