Function at 0x459d54
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 0x459f94
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x459fac
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0045ae90
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.0045a720
xor edx, edx
push ebp
push 0x459f77
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
push 0x10000
cmp edi, 0x10000
jbe 0x459db3
call fcn.004036b4
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 0x459deb
mov eax, dword [ebp - 8]
call fcn.00404564
mov eax, dword [ebp - 4]
call fcn.0045a778
call fcn.00403fec
jmp 0x459f7e
test ebx, ebx
jle 0x459e80
xor esi, esi
lea eax, [edi + ebx]
test eax, eax
jl 0x459e28
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp eax, 0x10000
jbe 0x459e0e
call fcn.004036b4
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x30], 0xa
jne 0x459e22
mov edx, dword [ebp - 4]
lea esi, [edx + 0x30]
add esi, eax
jmp 0x459e28
inc eax
dec dword [ebp - 0xc]
jne 0x459e02
test esi, esi
je 0x459e3e
mov eax, dword [ebp - 4]
add eax, 0x30
add eax, ebx
add eax, edi
cmp eax, esi
jg 0x459ec5
lea edx, [ebx + edi]
mov eax, dword [ebp - 8]
call fcn.00404b58
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00404a6c
lea edx, [edi + 1]
dec edx
test eax, eax
je 0x459e61
cmp edx, dword [eax - 4]
jb 0x459e66
call fcn.004036b4
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 0x459ea7
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x459ec5
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0045adc4
xor esi, esi
mov eax, dword [0x463b6c]
mov eax, dword [eax]
call fcn.00457500
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x459d9f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x459f22
mov edx, esi
inc edx
mov eax, dword [ebp - 4]
add eax, 0x30
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.00404b58
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.00404a6c
inc edi
dec edi
test eax, eax
je 0x459f05
cmp edi, dword [eax - 4]
jb 0x459f0a
call fcn.004036b4
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 0x459f61
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x459fbc
mov dl, 1
mov eax, dword [0x458d74]
call fcn.0040a244
call fcn.00403f40
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x459f61
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 0x459f7e
mov eax, dword [ebp - 4]
call fcn.0045a778
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f9b
lea eax, [ebp - 0x10]
call fcn.00404564
ret