Function at 0x5ac280
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20128
call fcn.005e86e0
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x20124], ecx
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
jmp 0x5ac2d8
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x110]
jae 0x5ac2fc
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + ecx*4 - 0x10c]
cmp edx, dword [ebp - 4]
jne 0x5ac2fa
jmp 0x5ac2fc
jmp 0x5ac2c9
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x110]
jne 0x5ac332
cmp dword [ebp - 0x110], 0x40
jae 0x5ac332
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x5ac2bd
mov edx, dword [ebp - 0x20124]
add edx, 8
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x20128], eax
cmp dword [ebp - 0x20128], 0xffffffff
je 0x5ac375
cmp dword [ebp - 0x20128], 0
je 0x5ac3b6
jmp 0x5ac414
push 0x682240
call fcn.0041cba0
add esp, 4
push 0x682250
push 0xf0001008
mov edx, dword [ebp - 0x20124]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20124]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax + 0x30]
call ecx
mov dword [ebp - 8], 0xffffff9c
jmp 0x5ac50b
push str.select
call fcn.0041cba0
add esp, 4
push str.Select
push 0xf0001003
mov edx, dword [ebp - 0x20124]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20124]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax + 0x30]
call ecx
mov dword [ebp - 8], 0xffffff9b
mov edx, dword [ebp - 0x20124]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x5ac50b
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x20120], 0
push 0x1ffff
push 0
lea edx, [ebp - 0x2011f]
push edx
call fcn.005e5330
add esp, 0xc
push 0
push 0x20000
lea eax, [ebp - 0x20120]
push eax
mov ecx, dword [ebp - 0x20124]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jle 0x5ac4b2
lea eax, [ebp - 0x20120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x20124]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20124]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax + 0x34]
call ecx
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x20120]
push eax
mov ecx, dword [ebp - 0x20124]
call fcn.005ac260
mov dword [ebp - 8], eax
jmp 0x5ac50b
push 0x682278
push 0xf0001007
mov ecx, dword [ebp - 0x20124]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x20124]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x20124]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 8], 0xffffff99
push 0x682288
call fcn.0041cba0
add esp, 4
mov ecx, dword [ebp - 0x20124]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x20124]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret