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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7548
call fcn.0054a600
mov eax, dword [0x5bb204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x15fcf]
mov eax, 0x7538
sub eax, ecx
mov dword [ebp - 0x7544], 0
test eax, eax
jle 0x546180
push 0
push eax
lea eax, [ecx + esi + 0x24]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x546157
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x54613a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
push eax
call fcn.00545880
add esp, 4
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x54617a
push 0xff100008
call fcn.00545880
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
add dword [esi + 0x15fcf], eax
push ebx
push edi
mov edx, 0x8000
xor edi, edi
test word [esi + 0xe], dx
je 0x54620e
mov edi, dword [esi + 0x15fcf]
test edi, edi
jle 0x546341
lea ecx, [esi + 0x14]
push ecx
lea eax, [esi + 0x24]
push edi
push eax
lea edx, [esi + 0x10]
push edx
call fcn.005458c0
add esp, 0x10
test eax, eax
je 0x5461c0
mov dword [ebp - 0x7544], 1
test edi, edi
je 0x546341
mov ebx, dword [esi + 0x15fcf]
sub ebx, edi
test ebx, ebx
jle 0x5461e8
push ebx
lea ecx, [esi + edi + 0x24]
push ecx
lea eax, [esi + 0x24]
push eax
call fcn.00549780
add esp, 0xc
test ebx, ebx
jns 0x5461ec
xor ebx, ebx
mov eax, dword [ebp - 0x7544]
mov byte [esi + ebx + 0x24], 0
pop edi
mov dword [esi + 0x15fcf], ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x15fcf], 8
jbe 0x546341
jmp 0x546220
mov eax, dword [esi + edi + 0x24]
mov ecx, dword [esi + edi + 0x28]
mov dword [ebp - 0x7540], eax
mov dword [ebp - 0x753c], ecx
mov edx, 0x6a9c
xor word [ebp - 0x753e], dx
mov eax, dword [ebp - 0x753e]
add eax, 0x4000
xor word [ebp - 0x753c], ax
mov ecx, dword [ebp - 0x753e]
add ecx, 0xffffc4be
xor word [ebp - 0x753a], cx
mov edx, 0x444f
cmp word [ebp - 0x7540], dx
jne 0x54631e
movzx ebx, word [ebp - 0x753e]
lea eax, [ebx - 1]
cmp eax, 0x752f
ja 0x54631e
mov ecx, dword [esi + 0x15fcf]
sub ecx, edi
sub ecx, 8
cmp ebx, ecx
jg 0x5461c0
movzx eax, word [esi + 0xa]
cmp word [ebp - 0x753c], ax
jne 0x54631e
inc eax
mov word [esi + 0xa], ax
lea eax, [esi + edi + 0x2c]
push ebx
push eax
push 0
mov dword [ebp - 0x7548], eax
call fcn.00545fe0
add esp, 0xc
cmp word [ebp - 0x753a], ax
jne 0x54631e
mov eax, dword [ebp - 0x7548]
lea edx, [esi + 0x14]
push edx
push ebx
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.005458c0
add esp, 0x10
test eax, eax
je 0x5461c0
mov eax, 1
add dword [ebp - 0x7544], eax
add dword [esi + 0x20], eax
xor edx, edx
mov word [esi + 0xc], dx
mov eax, dword [esi + 0x15fcf]
lea edi, [edi + ebx + 8]
sub eax, edi
cmp eax, 8
ja 0x546220
jmp 0x5461c0
push 0xff100009
call fcn.00545880
add esp, 4
pop edi
pop ebx
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00549540
mov esp, ebp
pop ebp
ret