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

Disassembly:
push 0xffffffffffffffff
push 0x52fe71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], ebp
call fcn.00461948
mov edx, dword [0x5a17e0]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
push 0x579e00
call dword [edx + 0x44]
cmp eax, ebp
jge 0x40cf41
mov ecx, dword [0x5a17e0]
lea eax, [esp + 0x20]
push eax
push 0x579df8
call dword [ecx + 0x44]
mov esi, eax
cmp esi, ebp
jge 0x40cf41
mov edx, dword [0x598d50]
mov dword [esp + 0x14], edx
push 0x89
lea ecx, [esp + 0x18]
mov dword [esp + 0x170], ebp
call fcn.00512508
mov eax, dword [0x598d50]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 0x87
push edx
mov byte [esp + 0x178], 1
call fcn.0050a958
mov eax, dword [0x598d50]
mov dword [esp + 0x24], eax
push esi
lea ecx, [esp + 0x28]
push 0x579de8
push ecx
mov byte [esp + 0x184], 2
call fcn.00434040
mov edx, dword [esp + 0x30]
add esp, 0x18
lea eax, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x1c]
push 0x10
lea edx, [esp + 0x64]
push ecx
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 1
call fcn.00511eeb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 0
call fcn.00511eeb
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00511eeb
xor eax, eax
jmp 0x40d159
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x184]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
mov ecx, dword [eax + 0xc]
push ebp
push edx
mov edx, dword [0x5a17e0]
push ebp
push 2
push ecx
push ebp
call dword [edx + 0xc]
cmp eax, ebp
je 0x40cf78
xor eax, eax
jmp 0x40d159
mov eax, dword [0x5a1f0c]
mov dword [esp + 0x14], 0x1d
cmp eax, ebp
je 0x40cf8d
mov dword [esp + 0x14], ebp
xor bl, bl
mov dword [esp + 0x38], ebp
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 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 + 0x17c]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x58]
lea eax, [esp + 0x54]
neg bl
push edx
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
sbb ebx, ebx
lea edx, [esp + 0x50]
push ecx
push edi
and ebx, edx
push ebp
push ebx
push 0x10
mov ecx, dword [esp + 0x38]
push ebp
push eax
mov al, byte [esp + 0x37]
mov edx, dword [esp + 0x19c]
push ecx
neg al
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x5a17e0]
push edx
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40d02a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x38], ebp
cmp esi, 0x90314
je 0x40d03a
cmp esi, 0x90313
jne 0x40d068
mov ecx, dword [0x5a17e0]
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x40d04f
lea edx, [esp + 0x3c]
push edx
push edi
call eax
cmp esi, 0x90313
jne 0x40d05b
xor esi, esi
jmp 0x40d068
cmp esi, 0x90314
jne 0x40d068
mov esi, 0x90312
cmp dword [esp + 0x24], ebp
je 0x40d096
mov ebx, dword [esp + 0x174]
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 0x40d09d
mov ebx, dword [esp + 0x174]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0x90312
mov dword [esp + 0x2c], ebp
jne 0x40d12e
push ebp
lea edx, [esp + 0x34]
push 4
lea ecx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], 2
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40d124
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], eax
cmp esi, ebp
mov edi, eax
je 0x40d119
push ebp
push esi
push edi
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40d12a
cmp eax, ebp
je 0x40d12a
sub esi, eax
add edi, eax
cmp esi, ebp
jne 0x40d0fe
mov bl, 1
mov byte [esp + 0x13], bl
jmp 0x40cf97
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
xor eax, eax
jmp 0x40d159
cmp esi, ebp
je 0x40d136
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40d148
mov ecx, dword [0x5a17e0]
push eax
call dword [ecx + 0x40]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0046185f
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret