Function at 0x40aca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x480]
mov ecx, 0x11d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], 0x10
mov esi, esp
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov edx, 1
test edx, edx
je 0x40ad5b
mov esi, esp
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_accept]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x34], 0xffffffff
jne 0x40ad5b
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0x2733
jne 0x40ad54
mov esi, esp
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x40acf5
xor eax, eax
jmp 0x40b053
mov eax, 1
test eax, eax
je 0x40af4f
push 0x400
push 0
lea ecx, [ebp - 0x424]
push ecx
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
push 2
push 0x400
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
jne 0x40ade1
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0x2733
jne 0x40adda
mov esi, esp
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x40ad5b
xor eax, eax
jmp 0x40b053
mov edx, dword [ebp - 0x428]
xor eax, eax
mov al, byte [ebp + edx - 0x426]
cmp eax, 0xd
jne 0x40af4f
mov ecx, dword [ebp - 0x428]
xor edx, edx
mov dl, byte [ebp + ecx - 0x425]
cmp edx, 0xa
jne 0x40af4f
mov eax, dword [ebp - 0x428]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x428]
cmp ecx, 0xd
je 0x40af4f
mov edx, dword [ebp - 0x428]
xor eax, eax
mov al, byte [ebp + edx - 0x427]
cmp eax, 0xa
je 0x40af4f
mov ecx, dword [ebp - 0x424]
and ecx, 0xff
cmp ecx, 0x50
jne 0x40af4f
mov edx, dword [ebp - 0x423]
and edx, 0xff
cmp edx, 0x4f
jne 0x40af4f
mov eax, dword [ebp - 0x422]
and eax, 0xff
cmp eax, 0x53
jne 0x40af4f
mov ecx, dword [ebp - 0x421]
and ecx, 0xff
cmp ecx, 0x54
jne 0x40af4f
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_492
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_2295
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x428]
push edx
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_4302
push 0x43d3d8
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_2129
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
jne 0x40af3d
mov esi, esp
push 0
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_684
jmp 0x40ad5b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_684
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_492
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_2295
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_4302
push 0x43d3d8
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_2129
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xffffffff
jne 0x40b008
push 0x43d188
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_2129
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xffffffff
jne 0x40affe
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_684
mov eax, dword [ebp - 0x43c]
jmp 0x40b053
mov dword [ebp - 0x438], 0xfffffffe
mov esi, esp
push 0
mov edx, dword [ebp - 0x438]
add edx, 4
push edx
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x440], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call sub.MFC42D.DLL_Ordinal_684
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x480
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret