Function at 0x404fc0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409501
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
lea edx, [ebp - 0xe8]
push edx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
call dword [0x40b058]
test eax, eax
je 0x405182
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x108], eax
xor eax, eax
lea edx, [ebp - 0xb4]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xb8], edx
cmp esi, ebx
jne 0x40506c
mov dword [ebp - 0xb8], ebx
jmp 0x4050c3
push esi
call dword [0x40b04c]
lea ebx, [eax + 1]
lea edi, [ebp - 0xb4]
mov ecx, ebx
lea esi, [ebp - 0xb8]
call fcn.00405680
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
push ebx
push eax
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x4050ae.1
movzx edx, byte [eax + 0x405504]
jmp dword [edx*4 + 0x4054f4]
call dword [sym.imp.mfc100.dll_Ordinal_2063]
call dword [sym.imp.mfc100.dll_Ordinal_2061]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xb8]
push eax
call dword [0x40b1cc]
cmp eax, 0xffffffff
jne 0x40510c
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [0x40b1c8]
mov esi, eax
cmp esi, ebx
je 0x405168
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR100.dll_memcpy
mov ax, word [esi + 8]
add esp, 0xc
mov word [ebp - 0x20], ax
jmp 0x405118
mov edx, 2
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], dx
push ebx
push ebx
push ebx
push 1
push 3
push 2
call dword [0x40b1a8]
mov edi, eax
cmp edi, 0xffffffff
je 0x405168
mov esi, dword [0x40b1bc]
push 4
lea edx, [ebp - 0xec]
push edx
push 4
push ebx
push edi
mov dword [ebp - 0xec], 0x80
call esi
cmp eax, 0xffffffff
jne 0x4051a2
call dword [0x40b054]
push edi
mov esi, eax
call dword [0x40b1c0]
push esi
call dword [0x40b060]
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
cmp eax, ecx
je 0x405182
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040888c
mov esp, ebp
pop ebp
ret 8
push 4
lea edx, [ebp - 0xfc]
push edx
push 3
push ebx
push edi
mov dword [ebp - 0xfc], ebx
call esi
cmp eax, 0xffffffff
je 0x405152
cmp dword [ebp - 0xdc], ebx
je 0x4051dc
push 4
lea edx, [ebp - 0xdc]
push edx
push 0xe
push ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x405152
push 0x2c
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0xc0], esi
cmp esi, ebx
jne 0x405235
call dword [0x40b054]
push edi
mov esi, eax
call dword [0x40b1c0]
push esi
call dword [0x40b060]
push ebx
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
add esp, 4
cmp eax, edx
je 0x405182
push eax
call esi
jmp 0x40517f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push ebx
push 0x2c
push esi
call eax
lea ecx, [ebp - 0xd0]
push ecx
call dword [0x40b050]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xcc]
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 0x2c
push esi
push edi
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], eax
call dword [0x40b1b8]
cmp eax, 0xffffffff
jne 0x4052a1
call dword [0x40b054]
push edi
mov ebx, eax
call dword [0x40b1c0]
push ebx
call dword [0x40b060]
push esi
jmp 0x40520e
mov dword [ebp - 0xc4], ebx
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 2
call fcn.00405630
test al, al
jne 0x405305
call dword [0x40b054]
push edi
mov ebx, eax
call dword [0x40b1c0]
push ebx
call dword [0x40b060]
mov ecx, dword [ebp - 0xc4]
mov edi, dword [sym.imp.MSVCR100.dll_free]
push ecx
call edi
add esp, 4
push esi
call edi
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
add esp, 4
cmp eax, edx
je 0x405182
push eax
call edi
jmp 0x40517f
mov ebx, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc8], 1
push edi
lea esi, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0
call fcn.00405580
add esp, 4
test eax, eax
je 0x4054b0
cmp dword [ebp - 0xbc], 0
je 0x405473
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0xfffc
push ebx
push edi
mov dword [ebp - 0xbc], 0x10
call dword [0x40b1b4]
cmp eax, 0xffffffff
je 0x405445
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
lea esi, [ebp - 0xc8]
push esi
push 0
lea esi, [ebp - 0x30]
push esi
push eax
mov eax, dword [edx + 8]
push ebx
call eax
cmp dword [ebp - 0xc8], 0
mov esi, eax
jne 0x405323
lea edx, [ebp - 0xd0]
push edx
call dword [0x40b050]
test esi, esi
je 0x405409
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd0]
sub edx, dword [ebp - 0xf8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xcc]
sbb eax, dword [ebp - 0xf4]
push 0
push 0x3e8
push eax
push edx
call fcn.00409300
mov ecx, dword [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x108]
push ecx
push edx
push eax
call fcn.00409250
mov edx, dword [ebp - 0xd8]
mov dword [edx + 4], eax
push edi
call dword [0x40b1c0]
mov edi, dword [sym.imp.MSVCR100.dll_free]
push ebx
call edi
mov eax, dword [ebp - 0xc0]
add esp, 4
push eax
call edi
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
add esp, 4
cmp eax, ecx
je 0x40543e
push eax
call edi
add esp, 4
mov eax, esi
jmp 0x405184
call dword [0x40b054]
push edi
mov esi, eax
call dword [0x40b1c0]
push esi
call dword [0x40b060]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ebx
call esi
mov ecx, dword [ebp - 0xc0]
add esp, 4
push ecx
jmp 0x405214
push edi
call dword [0x40b1c0]
push 0x274c
call dword [0x40b060]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ebx
call esi
mov eax, dword [ebp - 0xc0]
add esp, 4
push eax
call esi
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
add esp, 4
cmp eax, ecx
jmp 0x405227
call dword [0x40b054]
push edi
mov esi, eax
call dword [0x40b1c0]
push esi
call dword [0x40b060]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ebx
call esi
mov edx, dword [ebp - 0xc0]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
add esp, 4
cmp eax, ecx
jmp 0x405227