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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x28]
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0x20]
jge 0x10057680
nop word [eax + eax]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 0x98]
test esi, esi
je 0x1005757d
mov eax, dword [esi]
dec dword [ecx + 0x94]
mov dword [ecx + 0x98], eax
lea eax, [esi + 0x84]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 0
jmp 0x10057584
call fcn.100566d0
mov esi, eax
test esi, esi
je 0x10057680
push 0
push esi
xorps xmm0, xmm0
lea ebx, [esi + 0x18]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0x76c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x28]
push ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 1
lea eax, [ebp - 0x10]
mov byte [esi + 0x24], 1
push eax
mov dword [ebx], 0x1c
mov dword [esi + 0x14], edi
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x10057651
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10057651
cmp eax, 0x2738
je 0x10057602
cmp eax, 0x2746
je 0x10057602
cmp eax, 0x2744
jne 0x10057666
push 0
push esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0x76c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x28]
push ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov byte [esi + 0x24], 1
lea eax, [ebp - 0x10]
push 1
mov dword [ebx], 0x1c
push eax
mov dword [esi + 0x14], edi
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x100575e0
mov eax, dword [ebp - 8]
inc dword [edi + 0x28]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0x20]
jl 0x10057550
jmp 0x10057680
push eax
push str.UdpSocketWin32:WSARecvFrom_failed_0x_X
call fcn.10056110
add esp, 8
push esi
push 0x10115c70
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
cmp dword [edi + 0x18], 0xffffffff
je 0x100577d5
mov eax, dword [edi + 0x24]
mov dword [ebp - 8], eax
cmp eax, 0x10
jge 0x100577d5
nop dword [eax]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 0x98]
test esi, esi
je 0x100576cd
mov eax, dword [esi]
dec dword [ecx + 0x94]
mov dword [ecx + 0x98], eax
lea eax, [esi + 0x84]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 0
jmp 0x100576d4
call fcn.100566d0
mov esi, eax
test esi, esi
je 0x100577d5
push 0
push esi
xorps xmm0, xmm0
lea ebx, [esi + 0x18]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0x76c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x28]
push ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 1
lea eax, [ebp - 0x10]
mov byte [esi + 0x24], 0
push eax
mov dword [ebx], 0x10
mov dword [esi + 0x14], edi
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x100577a1
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100577a1
cmp eax, 0x2738
je 0x10057752
cmp eax, 0x2746
je 0x10057752
cmp eax, 0x2744
jne 0x100577bb
push 0
push esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0x76c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x28]
push ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov byte [esi + 0x24], 0
lea eax, [ebp - 0x10]
push 1
mov dword [ebx], 0x10
push eax
mov dword [esi + 0x14], edi
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x10057730
mov eax, dword [ebp - 8]
inc dword [edi + 0x24]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x10
jl 0x100576a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.UdpSocketWin32:WSARecvFrom_failed_0x_X
call fcn.10056110
add esp, 8
push esi
push 0x10115c70
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret