Function at 0x40b6c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x477036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [esp + 0x178]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], ebp
call fcn.00447b38
mov edx, dword [0x4b55a4]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], eax
push ecx
push 0x498774
call dword [edx + 0x44]
cmp eax, ebp
jge 0x40b7f1
mov ecx, dword [0x4b55a4]
lea eax, [esp + 0x18]
push eax
push 0x49876c
call dword [ecx + 0x44]
mov esi, eax
cmp esi, ebp
jge 0x40b7f1
mov edx, dword [0x4b12d8]
mov dword [esp + 0x14], edx
push 0x89
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], ebp
call fcn.0045d23c
mov eax, dword [0x4b12d8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 0x87
push edx
mov byte [esp + 0x180], 1
call fcn.0045600d
mov eax, dword [0x4b12d8]
push esi
lea ecx, [esp + 0x2c]
push 0x49875c
push ecx
mov dword [esp + 0x34], eax
call fcn.00437c00
mov edx, dword [esp + 0x34]
add esp, 0x18
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x6c]
push ecx
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
call fcn.0045ccac
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 0
call fcn.0045ccac
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.0045ccac
xor eax, eax
jmp 0x40ba09
mov ecx, dword [esp + 0x180]
mov edx, dword [esp + 0x18c]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ebp
mov ecx, dword [eax + 0xc]
push ebp
push edx
mov edx, dword [0x4b55a4]
push ebp
push 2
push ecx
push ebp
call dword [edx + 0xc]
cmp eax, ebp
je 0x40b828
xor eax, eax
jmp 0x40ba09
mov eax, dword [0x4b5884]
mov dword [esp + 0x14], 0x1d
cmp eax, ebp
je 0x40b83d
mov dword [esp + 0x14], ebp
xor bl, bl
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], 2
mov eax, dword [ecx + 8]
push eax
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x184]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x60]
lea eax, [esp + 0x5c]
neg bl
push edx
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x1c]
sbb ebx, ebx
lea edx, [esp + 0x58]
push ecx
push edi
and ebx, edx
push ebp
push ebx
push 0x10
mov ecx, dword [esp + 0x5c]
push ebp
push eax
mov al, byte [esp + 0x37]
mov edx, dword [esp + 0x1a4]
push ecx
neg al
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x4b55a4]
push edx
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x40b8da
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x3c], ebp
cmp esi, 0x90314
je 0x40b8ea
cmp esi, 0x90313
jne 0x40b918
mov ecx, dword [0x4b55a4]
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x40b8ff
lea edx, [esp + 0x44]
push edx
push edi
call eax
cmp esi, 0x90313
jne 0x40b90b
xor esi, esi
jmp 0x40b918
cmp esi, 0x90314
jne 0x40b918
mov esi, 0x90312
cmp dword [esp + 0x24], ebp
je 0x40b946
mov ebx, dword [esp + 0x17c]
mov edi, dword [sym.imp.WSOCK32.dll_send]
push ebp
lea eax, [esp + 0x28]
push 4
push eax
push ebx
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push ebp
push ecx
push edx
push ebx
call edi
jmp 0x40b94d
mov ebx, dword [esp + 0x17c]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0x90312
mov dword [esp + 0x2c], ebp
jne 0x40b9de
push ebp
lea edx, [esp + 0x38]
push 4
lea ecx, [esp + 0x3c]
push edx
push ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], 2
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40b9d4
mov eax, dword [esp + 0x34]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
cmp esi, ebp
mov edi, eax
je 0x40b9c9
push ebp
push esi
push edi
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40b9da
cmp eax, ebp
je 0x40b9da
sub esi, eax
add edi, eax
cmp esi, ebp
jne 0x40b9ae
mov bl, 1
mov byte [esp + 0x13], bl
jmp 0x40b847
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
xor eax, eax
jmp 0x40ba09
cmp esi, ebp
je 0x40b9e6
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40b9f8
mov ecx, dword [0x4b55a4]
push eax
call dword [ecx + pe_nt_image_headers32]
mov edx, dword [esp + 0x40]
push edx
call fcn.00447a4f
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret