Function at 0x491080
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x300], 0
mov eax, 0x101
mov word [ebp - 0x2f8], ax
mov dword [ebp - 0x2ec], 0
push str.GTHIPA_1
push 1
call fcn.00440830
add esp, 8
lea ecx, [ebp - 0x2e4]
push ecx
movzx edx, word [ebp - 0x2f8]
push edx
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x2f4], eax
movzx eax, word [ebp - 0x2e2]
and eax, 0xff
movzx ecx, al
push ecx
movzx edx, word [ebp - 0x2e2]
shr edx, 8
and edx, 0xff
movzx eax, dl
push eax
movzx ecx, word [ebp - 0x2e4]
and ecx, 0xff
movzx edx, cl
push edx
movzx eax, word [ebp - 0x2e4]
shr eax, 8
and eax, 0xff
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
push str.GTHIPA_1___d____d__d______d__d_
lea eax, [ebp - 0x154]
push eax
call fcn.004b6e08
add esp, 0x1c
lea ecx, [ebp - 0x154]
push ecx
push 1
call fcn.00440830
add esp, 8
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x2ec], eax
push str.GTHIPA_2
push 1
call fcn.00440830
add esp, 8
cmp dword [ebp - 0x2ec], 0
je 0x4912d3
push str.GTHIPA_3
push 1
call fcn.00440830
add esp, 8
push 0x50
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004b6780
add esp, 0xc
mov dword [ebp - 0x2e8], 0
jmp 0x4911b5
mov ecx, dword [ebp - 0x2e8]
add ecx, 1
mov dword [ebp - 0x2e8], ecx
mov edx, dword [ebp - 0x2ec]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2e8]
cmp dword [eax + ecx*4], 0
je 0x4912d1
push str.GTHIPA_4
push 1
call fcn.00440830
add esp, 8
mov edx, dword [ebp - 0x2ec]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2e8]
mov edx, dword [eax + ecx*4]
add edx, 4
push edx
push 1
call fcn.00440830
add esp, 8
mov dword [ebp - 0x2f0], 0
jmp 0x491218
mov eax, dword [ebp - 0x2f0]
add eax, 1
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 4
jge 0x491294
push 4
push 0
lea ecx, [ebp - 0x2fc]
push ecx
call fcn.004b6780
add esp, 0xc
push 0xa
lea edx, [ebp - 0x2fc]
push edx
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x2f0]
movzx edx, byte [eax + ecx]
push edx
call fcn.004ca668
add esp, 0xc
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.004b5e70
add esp, 8
cmp dword [ebp - 0x2f0], 3
je 0x49128f
push 0x4f17c0
lea edx, [ebp - 0x54]
push edx
call fcn.004b5e70
add esp, 8
jmp 0x491209
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b5e60
add esp, 8
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x4912cc
mov dword [ebp - 0x300], 1
cmp dword [ebp - 0x2e8], 0
jne 0x4912cc
jmp 0x4912d1
jmp 0x4911a6
jmp 0x49130a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x2f4], eax
mov edx, dword [ebp - 0x2f4]
push edx
push str.GTHIPA_2_Warning__d
lea eax, [ebp - 0x154]
push eax
call fcn.004b6e08
add esp, 0xc
lea ecx, [ebp - 0x154]
push ecx
push 1
call fcn.00440830
add esp, 8
push str.GTHIPA_5
push 1
call fcn.00440830
add esp, 8
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret