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

Disassembly:
mov eax, 0x1038
call fcn.00552760
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [esp + 0x1048]
mov edx, dword [esp + 0x1044]
push ebp
mov ebp, dword [esp + 0x1040]
push edi
mov edi, dword [esp + 0x1048]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test edi, edi
jne 0x54b24b
cmp edx, 0xffffffff
je 0x54b39b
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [ebp + 0x78], esi
jle 0x54b39a
xor ecx, ecx
mov dword [esp + 0x10], ecx
push ebx
mov ebx, dword [ebp + 0x74]
add ebx, ecx
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x54b384
cmp dword [ebx + 0x54], 0
jne 0x54b384
test edi, edi
je 0x54b2de
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54b379
mov ecx, dword [edi]
xor edx, edx
test ecx, ecx
je 0x54b2e6
mov esi, dword [ebx + 0x1c]
lea eax, [edi + 4]
nop
cmp dword [eax], esi
je 0x54b2b2
inc edx
add eax, 4
cmp edx, ecx
jb 0x54b2a0
mov esi, dword [esp + 0x10]
jmp 0x54b2e6
lea eax, [ecx - 1]
cmp edx, eax
jae 0x54b2d3
lea esi, [edx + 1]
lea esi, [edi + esi*4]
nop
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp edx, eax
jb 0x54b2c0
mov esi, dword [esp + 0x10]
lea eax, [ecx - 1]
mov dword [edi], eax
jmp 0x54b2e6
cmp eax, edx
jne 0x54b384
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x54b2f3
xor edi, edi
jmp 0x54b3b6
cmp dword [ebx], 2
mov ecx, 0x1c
mov eax, 0x10
cmovne eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x91b8]
mov ecx, dword [ebx + 0x1c]
test eax, eax
je 0x54b33b
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x2c]
push edx
push 0
push 0x1001
lea edx, [esp + 0x54]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x54b358
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x1001
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54b3b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x54b371
cmp eax, 0x2733
jne 0x54b3b6
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1054]
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
cmp esi, dword [ebp + 0x78]
jl 0x54b262
pop ebx
pop esi
mov ecx, dword [esp + 0x103c]
pop edi
pop ebp
xor ecx, esp
call fcn.00551e44
add esp, 0x1038
ret
test edi, edi
jg 0x54b3ce
push dword [esp + 0x1c]
push esi
push ebp
call fcn.0054a460
add esp, 0xc
test edi, edi
jg 0x54b2e6
jmp 0x54b371
movzx eax, word [esp + 0x24]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x54b371
sub ecx, 2
je 0x54b40b
sub ecx, 0x15
jne 0x54b371
lea edx, [ebx + 4]
lea eax, [esp + 0x2c]
lea esi, [ecx + 0xc]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x54b371
add edx, 4
add eax, 4
sub esi, 4
jae 0x54b3f0
mov esi, dword [esp + 0x10]
jmp 0x54b41a
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
cmp eax, dword [ecx]
jne 0x54b371
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push 0
push esi
push edi
push eax
push ebp
call fcn.0054ac60
add esp, 0x18
jmp 0x54b2e6