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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ea80
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x45ea98
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0045fb6c
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.0045f3fc
xor edx, edx
push ebp
push 0x45ea63
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
push 0x10000
cmp edi, 0x10000
jbe 0x45e89f
call fcn.0048de7c
mov eax, dword [ebp - 4]
lea eax, [eax + edi + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jne 0x45e8d7
mov eax, dword [ebp - 8]
call fcn.0048ec8c
mov eax, dword [ebp - 4]
call fcn.0045f454
call fcn.0048e7b4
jmp 0x45ea6a
test ebx, ebx
jle 0x45e96c
xor esi, esi
lea eax, [edi + ebx]
test eax, eax
jl 0x45e914
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp eax, 0x10000
jbe 0x45e8fa
call fcn.0048de7c
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x30], 0xa
jne 0x45e90e
mov edx, dword [ebp - 4]
lea esi, [edx + 0x30]
add esi, eax
jmp 0x45e914
inc eax
dec dword [ebp - 0xc]
jne 0x45e8ee
test esi, esi
je 0x45e92a
mov eax, dword [ebp - 4]
add eax, 0x30
add eax, ebx
add eax, edi
cmp eax, esi
jg 0x45e9b1
lea edx, [ebx + edi]
mov eax, dword [ebp - 8]
call fcn.0048f2c8
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.0048f194
lea edx, [edi + 1]
dec edx
test eax, eax
je 0x45e94d
cmp edx, dword [eax - 4]
jb 0x45e952
call fcn.0048de7c
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
add edi, eax
jmp 0x45e993
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x45e9b1
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0045faa0
xor esi, esi
mov eax, dword [0x55f8f4]
mov eax, dword [eax]
call fcn.004c9528
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x45e88b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x45ea0e
mov edx, esi
inc edx
mov eax, dword [ebp - 4]
add eax, 0x30
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.0048f2c8
push 0
inc esi
mov eax, dword [ebp - 4]
add eax, 0x30
sub esi, eax
sub esi, edi
push esi
mov eax, dword [ebp - 8]
call fcn.0048f194
inc edi
dec edi
test eax, eax
je 0x45e9f1
cmp edi, dword [eax - 4]
jb 0x45e9f6
call fcn.0048de7c
inc edi
lea eax, [eax + edi - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
jmp 0x45ea4d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x45eaa8
mov dl, 1
mov eax, dword [0x45dab4]
call fcn.004807f8
call fcn.0048e708
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x45ea4d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ea6a
mov eax, dword [ebp - 4]
call fcn.0045f454
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ea87
lea eax, [ebp - 0x10]
call fcn.0048ec8c
ret