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

Disassembly:
mov eax, 0x1038
call fcn.1005e880
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [esp + 0x1048]
mov ecx, 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 + 0x10], eax
test edi, edi
jne 0x10057b2b
cmp ecx, 0xffffffff
je 0x10057d24
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [ebp + 0x78], esi
jle 0x10057d23
push ebx
xor ebx, ebx
lea edx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
add ebx, dword [ebp + 0x74]
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x10057d09
cmp dword [ebx + 0x54], 0
jne 0x10057d09
test edi, edi
je 0x10057bc7
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10057cfd
mov esi, dword [edi]
xor ecx, ecx
mov edx, dword [ebx + 0x1c]
test esi, esi
je 0x10057bbc
lea eax, [edi + 4]
nop
cmp dword [eax], edx
je 0x10057b97
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10057b80
mov esi, dword [esp + 0x10]
mov edx, 0x1c
jmp 0x10057bd0
lea eax, [esi - 1]
cmp ecx, eax
jae 0x10057bb7
lea edx, [ecx + 1]
lea edx, [edi + edx*4]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [edi]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x10057ba4
lea eax, [esi - 1]
mov dword [edi], eax
mov esi, dword [esp + 0x10]
mov edx, 0x1c
jmp 0x10057bd0
cmp eax, ecx
jne 0x10057d09
nop
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x10057beb
push dword [esp + 0x18]
xor edi, edi
push esi
push ebp
call fcn.10056b40
add esp, 0xc
jmp 0x10057ce8
cmp dword [ebx], 2
mov eax, 0x10
cmovne eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x91b8]
mov ecx, dword [ebx + 0x1c]
test eax, eax
je 0x10057c2e
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x18]
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 0x10057c4b
lea eax, [esp + 0x14]
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 0x10057c7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10057cf5
cmp eax, 0x2733
je 0x10057cf5
push dword [esp + 0x18]
push esi
push ebp
call fcn.10056b40
add esp, 0xc
jmp 0x10057ce8
test edi, edi
jg 0x10057c90
push dword [esp + 0x18]
push esi
push ebp
call fcn.10056b40
add esp, 0xc
jmp 0x10057ce8
movzx eax, word [esp + 0x24]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x10057cf5
sub ecx, 2
je 0x10057cc7
sub ecx, 0x15
jne 0x10057cf5
lea edx, [ebx + 4]
lea eax, [esp + 0x2c]
lea esi, [ecx + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10057cf5
add edx, 4
add eax, 4
sub esi, 4
jae 0x10057cb0
mov esi, dword [esp + 0x10]
jmp 0x10057cd2
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
cmp eax, dword [ecx]
jne 0x10057cf5
push dword [esp + 0x18]
lea eax, [esp + 0x44]
push 0
push esi
push edi
push eax
push ebp
call fcn.10057320
add esp, 0x18
mov edx, 0x1c
test edi, edi
jg 0x10057bd0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1054]
mov edx, 0x1c
mov ebx, dword [esp + 0x1c]
inc esi
add ebx, 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
cmp esi, dword [ebp + 0x78]
jl 0x10057b45
pop ebx
pop esi
mov ecx, dword [esp + 0x103c]
pop edi
pop ebp
xor ecx, esp
call fcn.1005e4a8
add esp, 0x1038
ret