Function at 0x755f8b89
Capabilities:
Get socket status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov ecx, dword [0x7562a848]
mov esi, dword [ebp + 8]
cmp ecx, 0x7562a848
je 0x755f8bb1
test byte [ecx + 0x1c], 0x80
jne 0x7560dc58
mov ebx, 0x755f8d00
mov eax, dword [esi + 8]
and dword [ebp - 0x110], 0
test eax, eax
je 0x755f8bd4
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x755ff535
cmp dword [ebp - 0x110], 0
je 0x7560dc83
lea eax, [esi + 0xb0]
mov edx, 0x7530
cmp dword [eax], edx
ja 0x7560dcab
mov eax, dword [eax]
push edi
xor edx, edx
mov edi, 0x3e8
div edi
lea edi, [esi + 0xe0]
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xa0]
mov dword [ebp - 8], edx
cmp eax, 0x5c0
jb 0x7560dcb8
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x755fecda
cmp dword [ebp - 0x110], 1
jne 0x75602bf4
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x75602bda
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x75602c05
lea ecx, [ebp - 0x110]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x75602c05
mov eax, dword [esi + 8]
mov dword [ebp + 8], 2
mov dword [esi + 0x98], eax
lea eax, [esi + 0x90]
push eax
lea eax, [esi + 0x70]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xa0]
mov dword [ebp - 4], ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x98]
call sym.DNSAPI.dll_Socket_RecvFrom
cmp eax, 0xffffffff
je 0x7560dcfb
mov word [esi + 0xde], ax
rol word [edi], 8
rol word [edi + 4], 8
rol word [edi + 6], 8
rol word [edi + 8], 8
rol word [edi + 0xa], 8
push ebx
push ebx
push esi
call fcn.755fa836
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
jl 0x7560dce1
mov eax, 0x5b4
jmp 0x755f8cf9
xor eax, eax
cmp eax, dword [ebp - 0x110]
jae 0x755ff557
cmp dword [ebp + eax*4 - 0x10c], edx
je 0x755ff551
inc eax
cmp eax, dword [ebp - 0x110]
jb 0x755ff53f
cmp eax, dword [ebp - 0x110]
jne 0x755f8bdf
cmp dword [ebp - 0x110], 0x40
jae 0x755f8bdf
mov dword [ebp + eax*4 - 0x10c], edx
inc dword [ebp - 0x110]
jmp 0x755f8bdf
lea ecx, [ebp - 0x110]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x755f8c64
jmp 0x7560dcec
cmp dword [ebp - 0x110], ebx
je 0x755fece0
jmp 0x755f8c59
mov eax, dword [ebp - 0x10c]
jmp 0x755f8c8e
push dword [esi + 0xb0]
mov ebx, 0x755f8d00
push dword [esi + 0xa0]
push esi
push ebx
push 0x25
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.75618e84
mov ecx, dword [0x7562a848]
jmp 0x755f8bb6
cmp ecx, 0x7562a848
je 0x7560dca3
test dword [ecx + 0x1c], 0x2000000
je 0x7560dca3
push esi
push ebx
push 0x26
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.756142f2
push 0x57
pop eax
jmp 0x755f8cfa
mov dword [eax], edx
mov ecx, dword [0x7562a848]
jmp 0x755f8bff
cmp ecx, 0x7562a848
je 0x7560dcd9
test dword [ecx + 0x1c], 0x2000000
je 0x7560dcd9
push eax
push esi
push ebx
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.75618ddf
push 0x57
pop eax
jmp 0x755f8cf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x755f8cf9
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], 0x17
jmp 0x755f8c8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov edi, eax
push edi
push esi
call fcn.755fa836
mov ebx, 0x2746
cmp edi, ebx
jne 0x7560dd40
mov eax, dword [0x7562a848]
cmp eax, 0x7562a848
je 0x7560dd39
test byte [eax + 0x1c], 0x80
je 0x7560dd39
push esi
push 0x755f8d00
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.756142f2
mov eax, ebx
jmp 0x755f8cf9
cmp edi, 0x2738
jne 0x7560dd54
mov eax, 0x5c0
mov word [esi + 0xde], ax
mov eax, edi
jmp 0x755f8cf9