Function at 0x527a75
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575a7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push edi
mov dword [ebp - 0x158], ecx
mov ecx, dword [ebp - 0x158]
call fcn.00526cec
and eax, 0xff
test eax, eax
je 0x527ab4
cmp dword [ebp + 8], 0
jne 0x527abb
xor eax, eax
jmp 0x527e4b
mov dword [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x120], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x527b14
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x124], edx
lea edx, [ebp - 0x128]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x527b62
cmp dword [ebp - 0x114], 0x40
jae 0x527b5c
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x10]
mov dword [ebp + ecx*4 - 0x110], edx
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
xor ecx, ecx
test ecx, ecx
jne 0x527b34
mov dword [ebp - 0x11c], 0
mov edx, dword [ebp - 0x120]
push edx
push 0
lea eax, [ebp - 0x114]
push eax
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call sub.WSOCK32.dll_select
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jle 0x527e45
mov ecx, dword [ebp - 0x158]
call fcn.00526d2f
and eax, 0xff
test eax, eax
jne 0x527bc9
mov ecx, dword [ebp - 0x158]
call fcn.00526d40
and eax, 0xff
test eax, eax
je 0x527dff
mov ecx, dword [ebp - 0x158]
call fcn.00526d40
and eax, 0xff
neg eax
sbb eax, eax
and eax, 0x10
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x158]
call fcn.00526d40
and eax, 0xff
test eax, eax
je 0x527cfc
cmp dword [ebp + 0xc], 0x10
jae 0x527c17
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x527e4b
lea ecx, [ebp - 0x140]
call fcn.005281b0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x140]
call fcn.005281e0
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
cmp dword [ebp - 0x13c], eax
je 0x527cea
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x140]
call fcn.00528100
push eax
lea ecx, [ebp - 0x140]
call fcn.005281a0
push eax
push 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jl 0x527cab
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x15c], ecx
jmp 0x527cb5
mov dword [ebp - 0x15c], 0xffffffff
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.005281d0
mov eax, dword [ebp - 0x14c]
jmp 0x527e4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.005281d0
mov ecx, dword [ebp - 0x158]
call fcn.00526d62
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x158]
add ecx, 0x10
call fcn.005282f0
lea edx, [ebp - 0x150]
push edx
mov ecx, dword [ebp - 0x158]
add ecx, 0x10
call fcn.00528320
push eax
lea ecx, [ebp - 0x130]
call fcn.00528630
and eax, 0xff
test eax, eax
je 0x527de3
lea ecx, [ebp - 0x130]
call fcn.005285e0
mov ecx, eax
call fcn.00528100
push eax
lea ecx, [ebp - 0x130]
call fcn.005285c0
mov ecx, eax
call fcn.005281a0
push eax
push 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x527dd3
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x130]
call fcn.00528600
mov ecx, dword [ebp - 0x148]
push ecx
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x158]
add ecx, 0x10
call fcn.00528410
jmp 0x527dde
lea ecx, [ebp - 0x130]
call fcn.00528600
jmp 0x527d1c
mov ecx, dword [ebp - 0x158]
call fcn.00526d85
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x12c]
mov dword [ebp - 0x118], eax
jmp 0x527e18
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jl 0x527e2f
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x160], ecx
jmp 0x527e39
mov dword [ebp - 0x160], 0xffffffff
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc