Function at 0x40251b
Capabilities:
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push 0x40e3a8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0xd
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
push 0
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], 0
call esi
push 0
mov byte [ebp - 0x18], 5
mov byte [ebp - 0x17], 2
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 2
call esi
mov ebx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x18]
push 4
mov edx, dword [ebx + 0xa8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x494]
push eax
rep stosd dword es:[edi], eax
call esi
mov eax, dword [ebx + 0xa8]
lea ecx, [ebp - 0x24]
push ecx
push 0
lea edx, [ebp - 0x138]
push 0
push edx
push 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], 1
call dword [sym.imp.WS2_32.dll_select]
push 0
mov edi, eax
call esi
test edi, edi
push 0
jg 0x4025c3
call esi
mov eax, dword [ebx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret
mov edx, dword [ebx + 0xa8]
lea ecx, [ebp - 0x494]
push 0x258
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
push 0
call esi
cmp byte [ebp - 0x494], 5
jne 0x4028a3
mov al, byte [ebp - 0x493]
test al, al
je 0x402601
cmp al, 2
jne 0x4028a3
jmp 0x402609
cmp al, 2
jne 0x402784
mov ecx, dword [0x410320]
push 0x40fcbc
call fcn.00401046
test eax, eax
jbe 0x402784
push 0
call esi
mov ecx, dword [0x410320]
push 0x40fcbc
call fcn.00401046
mov ecx, dword [0x410320]
push 0x40fdbc
mov dword [ebp - 0x14], eax
call fcn.00401046
push 0
mov dword [ebp - 0x1c], eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x23c]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x23c], 5
mov byte [ebp - 0x23b], al
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x23a]
push 0x40fcbc
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push 4
push edx
lea ecx, [ebp + eax - 0x23a]
push ecx
mov ecx, dword [0x410320]
call fcn.00401037
mov edx, dword [ebp - 0x14]
push 0x40fdbc
lea eax, [ebp + edx - 0x239]
push eax
call edi
push 0
call esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
push 0
lea edi, [ecx + edx + 3]
call esi
mov ecx, dword [ebx + 0xa8]
push 0
lea eax, [ebp - 0x23c]
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
call esi
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x494]
push eax
rep stosd dword es:[edi], eax
call esi
mov edx, dword [ebx + 0xa8]
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0x138]
push 0
push ecx
push 0
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], 1
call dword [sym.imp.WS2_32.dll_select]
push 0
mov edi, eax
call esi
test edi, edi
jg 0x40273f
mov edx, dword [ebx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret
push 0
call esi
mov ecx, dword [ebx + 0xa8]
push 0
lea eax, [ebp - 0x494]
push 0x258
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [ebp - 0x494], 5
jne 0x402771
mov al, byte [ebp - 0x493]
test al, al
je 0x402784
mov edx, dword [ebx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0
mov edi, eax
call esi
test edi, edi
jne 0x40279e
mov eax, 0x4028ba
ret
push 0
call esi
mov byte [ebp - 0x30], 5
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 1
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
mov word [ebp - 0x28], ax
call esi
mov eax, dword [ebx + 0xa8]
push 0
lea edx, [ebp - 0x30]
push 0xa
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0
call esi
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x494]
push eax
rep stosd dword es:[edi], eax
call esi
mov ecx, dword [ebx + 0xa8]
lea edx, [ebp - 0x24]
push edx
push 0
lea eax, [ebp - 0x138]
push 0
push eax
push 0
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], 1
call dword [sym.imp.WS2_32.dll_select]
push 0
mov edi, eax
call esi
test edi, edi
jg 0x402843
mov ecx, dword [ebx + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret
push 0
call esi
mov eax, dword [ebx + 0xa8]
push 0
lea edx, [ebp - 0x494]
push 0x258
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [ebp - 0x494], 5
jne 0x402890
mov al, byte [ebp - 0x493]
test al, al
jne 0x402890
mov eax, 0x40287b
ret
mov ecx, dword [ebx + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret
push 0
call esi
mov edx, dword [ebx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x4028ba
ret