Function at 0x46d998
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 0x46dbd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46dbe8
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046ee04
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.0046e694
xor edx, edx
push ebp
push 0x46dbb3
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
push 0x10000
cmp edi, 0x10000
jbe 0x46d9f7
call fcn.00402e98
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 0x46da2f
mov eax, dword [ebp - 8]
call fcn.00403be0
mov eax, dword [ebp - 4]
call fcn.0046e6ec
call fcn.00403750
jmp 0x46dbba
test ebx, ebx
jle 0x46dac0
xor esi, esi
lea eax, [edi + ebx]
test eax, eax
jl 0x46da6c
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp eax, 0x10000
jbe 0x46da52
call fcn.00402e98
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x24], 0xa
jne 0x46da66
mov edx, dword [ebp - 4]
lea esi, [edx + 0x24]
add esi, eax
jmp 0x46da6c
inc eax
dec dword [ebp - 0xc]
jne 0x46da46
test esi, esi
je 0x46da82
mov eax, dword [ebp - 4]
add eax, 0x24
add eax, ebx
add eax, edi
cmp eax, esi
jg 0x46db05
lea edx, [ebx + edi]
mov eax, dword [ebp - 8]
call fcn.00404194
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00404030
lea edx, [edi + 1]
dec edx
cmp edx, dword [eax - 4]
jb 0x46daa6
call fcn.00402e98
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 0x46dae7
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x46db05
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046ed38
xor esi, esi
mov eax, dword [0x47a380]
mov eax, dword [eax]
call fcn.00449d9c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46d9e3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46db5e
mov edx, esi
inc edx
mov eax, dword [ebp - 4]
add eax, 0x24
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.00404194
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.00404030
inc edi
dec edi
cmp edi, dword [eax - 4]
jb 0x46db46
call fcn.00402e98
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 0x46db9d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x46dbf8
mov dl, 1
mov eax, dword [0x46cd00]
call fcn.0040b3a8
call fcn.004036b0
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x46db9d
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 0x46dbba
mov eax, dword [ebp - 4]
call fcn.0046e6ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dbd7
lea eax, [ebp - 0x10]
call fcn.00403be0
ret