Function at 0x4a8e00
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x198], 0
push 0x18e
push 0
lea eax, [ebp - 0x196]
push eax
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0x2c0], 0
push 0x103
push 0
lea ecx, [ebp - 0x2bf]
push ecx
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0x3c8], 0
push 0x103
push 0
lea edx, [ebp - 0x3c7]
push edx
call fcn.005b02a0
add esp, 0xc
mov word [ebp - 0x1b0], 0
xor eax, eax
mov dword [ebp - 0x1ae], eax
mov dword [ebp - 0x1aa], eax
mov dword [ebp - 0x1a6], eax
mov word [ebp - 0x1a2], ax
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x3cc], 0
cmp dword [ebp + 0x10], 0
jge 0x4a8ecc
mov dword [ebp + 0x10], 0x104
cmp dword [ebp + 8], 0
je 0x4a8ede
cmp dword [ebp + 0xc], 0
je 0x4a8ede
cmp dword [ebp + 0x10], 0
jg 0x4a8ee5
xor eax, eax
jmp 0x4a91f8
call fcn.0040323d
mov dword [ebp - 0x3cc], eax
push 0x102
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c0]
push edx
call fcn.00402725
add esp, 0xc
lea eax, [ebp - 0x3c8]
push eax
call fcn.00402158
add esp, 4
lea ecx, [ebp - 0x1b4]
push ecx
push 0x695470
lea edx, [ebp - 0x2c0]
push edx
call fcn.00402897
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a8f54
lea eax, [ebp - 0x1b4]
push eax
push 0x695474
push 0
call fcn.00402897
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4a8f8f
push 0x104
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x3c8]
push eax
call fcn.00402725
add esp, 0xc
push 0
push 0x3a
lea ecx, [ebp - 0x3c8]
push ecx
call fcn.00401a19
add esp, 0xc
push 0x814f10
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4a8fe9
push 0x814e08
lea edx, [ebp - 0x2c0]
push edx
call fcn.005b0660
add esp, 8
test eax, eax
jne 0x4a8fe9
push 0x104
push 0x814f10
lea eax, [ebp - 0x2c0]
push eax
call fcn.00402725
add esp, 0xc
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x695478
call fcn.004018ca
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.00402324
add esp, 4
test eax, eax
je 0x4a9047
lea edx, [ebp - 0x2c0]
push edx
call fcn.0040272f
add esp, 4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402725
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x3c8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004014f1
add esp, 0xc
mov eax, dword [ebp + 0xc]
jmp 0x4a91f8
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x198]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4a918a
lea edx, [ebp - 0x2c0]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x4a9179
mov eax, dword [ebp - 0x1a0]
movsx ecx, word [eax + 0xa]
test ecx, ecx
jle 0x4a9179
mov byte [ebp - 0x3e0], 0
xor edx, edx
mov dword [ebp - 0x3df], edx
mov dword [ebp - 0x3db], edx
mov dword [ebp - 0x3d7], edx
mov dword [ebp - 0x3d3], edx
mov word [ebp - 0x3cf], dx
mov byte [ebp - 0x3cd], dl
mov eax, dword [ebp - 0x1a0]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call fcn.005b62f0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x3e0]
push ecx
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.0040128a
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x3e0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402725
add esp, 0xc
mov dword [ebp - 0x19c], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402324
add esp, 4
test eax, eax
jne 0x4a9177
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp - 0x1a9]
push edx
movzx eax, byte [ebp - 0x1aa]
push eax
movzx ecx, byte [ebp - 0x1ab]
push ecx
movzx edx, byte [ebp - 0x1ac]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.00401014
add esp, 0x1c
mov dword [ebp - 0x19c], 0xffffffff
jmp 0x4a9183
mov dword [ebp - 0x19c], 0xffffffff
call sub.WSOCK32.dll_WSACleanup
jmp 0x4a918e
xor eax, eax
jmp 0x4a91f8
cmp dword [ebp - 0x19c], 0
jne 0x4a91a7
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b4690
add esp, 4
test eax, eax
ja 0x4a91ab
xor eax, eax
jmp 0x4a91f8
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x3c8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004014f1
add esp, 0xc
call fcn.0040323d
sub eax, dword [ebp - 0x3cc]
cmp eax, 0xfa0
jbe 0x4a91f5
call fcn.0040323d
sub eax, dword [ebp - 0x3cc]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.00401014
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret