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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044a1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x17
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x34], 0
jle 0x1002ee43
push 0
push 0x17
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x1002edf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100411da
mov eax, dword [ebp - 0x44]
jmp 0x1002efe4
cmp dword [ebp - 0x38], 0
jne 0x1002ee35
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x14
jle 0x1002ee33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100411da
mov eax, dword [ebp - 0x48]
jmp 0x1002efe4
jmp 0x1002edb5
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
jmp 0x1002edab
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov eax, dword [0x10051ae4]
add eax, 1
mov dword [0x10051ae4], eax
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x10051ae4]
push ecx
push 0x100511a8
lea edx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 6
mov eax, dword [ebp + 8]
add eax, 0x11
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x17
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
sub eax, 0x17
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x1002ef65
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
push ecx
push 0x100511c0
lea edx, [ebp - 0x3c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x1002ef42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.1002eff4
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.100411da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100411da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100411da
mov eax, dword [ebp - 0x4c]
jmp 0x1002efe4
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.100411da
jmp 0x1002eeae
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp dword [ebp - 0x14], eax
je 0x1002efbf
push str._s_r_n
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov dword [ebp - 0x50], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100411da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100411da
mov eax, dword [ebp - 0x50]
jmp 0x1002efe4
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100411da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100411da
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4