Function at 0x4599dc
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 0x459c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x459c2c
mov dl, 8
mov eax, dword [ebp - 4]
call sym.Strm.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 4]
call sym.Strm.exe__Psock_TPowersock_TimerOn_qqrv
xor edx, edx
push ebp
push 0x459bf7
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
push 0x10000
cmp edi, 0x10000
jbe 0x459a3b
call fcn.00455dd4
mov eax, dword [ebp - 4]
lea eax, [eax + edi + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jne 0x459a73
mov eax, dword [ebp - 8]
call fcn.00456af0
mov eax, dword [ebp - 4]
call sym.Strm.exe__Psock_TPowersock_TimerOff_qqrv
call fcn.0045668c
jmp 0x459bfe
test ebx, ebx
jle 0x459b04
xor esi, esi
lea eax, [edi + ebx]
test eax, eax
jl 0x459ab0
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp eax, 0x10000
jbe 0x459a96
call fcn.00455dd4
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x24], 0xa
jne 0x459aaa
mov edx, dword [ebp - 4]
lea esi, [edx + 0x24]
add esi, eax
jmp 0x459ab0
inc eax
dec dword [ebp - 0xc]
jne 0x459a8a
test esi, esi
je 0x459ac6
mov eax, dword [ebp - 4]
add eax, 0x24
add eax, ebx
add eax, edi
cmp eax, esi
jg 0x459b49
lea edx, [ebx + edi]
mov eax, dword [ebp - 8]
call fcn.0045705c
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00456f40
lea edx, [edi + 1]
dec edx
cmp edx, dword [eax - 4]
jb 0x459aea
call fcn.00455dd4
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
add edi, eax
jmp 0x459b2b
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x459b49
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.Strm.exe__Psock_TPowersock_ErrorManager_qqrus
xor esi, esi
mov eax, dword [0x46e844]
mov eax, dword [eax]
call fcn.00424674
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x459a27
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x459ba2
mov edx, esi
inc edx
mov eax, dword [ebp - 4]
add eax, 0x24
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.0045705c
push 0
inc esi
mov eax, dword [ebp - 4]
add eax, 0x24
sub esi, eax
sub esi, edi
push esi
mov eax, dword [ebp - 8]
call fcn.00456f40
inc edi
dec edi
cmp edi, dword [eax - 4]
jb 0x459b8a
call fcn.00455dd4
inc edi
lea eax, [eax + edi - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
jmp 0x459be1
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x459c3c
mov dl, 1
mov eax, dword [sym.Strm.exe__Psock_EAbortError_]
call fcn.00451b68
call fcn.004565ec
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x459be1
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bfe
mov eax, dword [ebp - 4]
call sym.Strm.exe__Psock_TPowersock_TimerOff_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c1b
lea eax, [ebp - 0x10]
call fcn.00456af0
ret