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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4366c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4a4]
mov ecx, 0x126
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x407958
mov dword [ebp - 0x24], 0x10
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_accept]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0xffffffff
jne 0x407817
push 0
push 0
push str.accept___failed
call sub.MFC42D.DLL_Ordinal_1136
mov ecx, 1
test ecx, ecx
je 0x407881
mov esi, esp
push 0
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 0x407881
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0x2733
jne 0x40787c
mov esi, esp
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x407817
jmp 0x407a7b
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call sub.MFC42D.DLL_Ordinal_734
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], 1
mov esi, esp
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
push eax
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_487
mov dword [ebp - 4], 0
mov esi, esp
mov dx, word [ebp - 0x1e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
and eax, 0xffff
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
push eax
push 0x43d36c
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x450]
push edx
call sub.MFC42D.DLL_Ordinal_901
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x45c]
call sub.MFC42D.DLL_Ordinal_880
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
push ecx
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call sub.MFC42D.DLL_Ordinal_684
jmp 0x407a7b
mov dword [ebp - 0x444], 0x10
mov esi, esp
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
push edx
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 0x4079a3
push 0
push 0
push str.accept___failed
call sub.MFC42D.DLL_Ordinal_1136
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call sub.MFC42D.DLL_Ordinal_734
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov esi, esp
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
push eax
lea ecx, [ebp - 0x448]
call sub.MFC42D.DLL_Ordinal_487
mov dword [ebp - 4], 2
mov esi, esp
mov ax, word [ebp - 0x43e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
and eax, 0xffff
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
push ecx
push 0x43d36c
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x454]
push eax
call sub.MFC42D.DLL_Ordinal_901
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x464], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x464]
call sub.MFC42D.DLL_Ordinal_880
push eax
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x454]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call sub.MFC42D.DLL_Ordinal_684
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x4a4
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret