Function at 0x44ae40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], eax
test eax, eax
jl 0x44ae86
jg 0x44ae77
mov edx, dword [ebp + 0x14]
cmp edx, 0x7fffffff
jb 0x44ae89
xor eax, eax
mov edx, closesocket
mov dword [ebp - 0x320], eax
jmp 0x44ae89
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x44aebb
cmp edi, 0xffffffff
jne 0x44aebb
cmp ebx, edi
jne 0x44aebb
push edx
call fcn.0044b1a0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
test eax, eax
jl 0x44aecb
jg 0x44aec5
test edx, edx
je 0x44aecb
mov dword [ebp - 0x324], edx
push esi
xor esi, esi
mov dword [ebp - 0x20c], esi
cmp ecx, 0xffffffff
je 0x44aef0
mov esi, 1
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], ecx
mov eax, ecx
mov dword [ebp - 0x328], 0xffffffff
cmove eax, dword [ebp - 0x328]
mov dword [ebp - 0x314], eax
mov eax, esi
mov dword [ebp - 0x318], eax
mov ecx, eax
mov dword [ebp - 0x108], ecx
cmp edi, 0xffffffff
je 0x44afb9
xor eax, eax
test esi, esi
je 0x44af3e
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x208], edi
je 0x44af3e
inc eax
cmp eax, esi
jb 0x44af30
cmp eax, esi
jne 0x44af5b
cmp esi, 0x40
jae 0x44af5b
mov dword [ebp + eax*4 - 0x208], edi
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
mov ecx, dword [ebp - 0x318]
xor eax, eax
test ecx, ecx
je 0x44af75
cmp dword [ebp + eax*4 - 0x104], edi
je 0x44af75
inc eax
cmp eax, ecx
jb 0x44af67
mov dword [ebp - 0x108], ecx
cmp eax, dword [ebp - 0x318]
jne 0x44afa8
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0x108], ecx
cmp ecx, 0x40
jae 0x44afa8
mov dword [ebp + eax*4 - 0x104], edi
mov ecx, dword [ebp - 0x108]
inc ecx
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x314]
cmp edi, eax
cmova eax, edi
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x310], 0
cmp ebx, 0xffffffff
je 0x44b015
xor eax, eax
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], 1
test ecx, ecx
je 0x44afee
nop
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x44afee
inc eax
cmp eax, ecx
jb 0x44afe0
cmp eax, ecx
jne 0x44b004
cmp ecx, 0x40
jae 0x44b004
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
mov eax, dword [ebp - 0x314]
cmp ebx, eax
cmova eax, ebx
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x320], 0
jg 0x44b028
jl 0x44b024
test edx, edx
jae 0x44b028
xor ecx, ecx
jmp 0x44b08a
cmp dword [ebp - 0x320], 0
lea ecx, [ebp - 0x31c]
mov eax, ecx
jl 0x44b076
jg 0x44b03f
test edx, edx
je 0x44b076
mov eax, 0x10624dd3
imul dword [ebp - 0x324]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x324]
mov dword [ebp - 0x31c], eax
imul eax, eax, 0x3e8
sub edx, eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x318], eax
jmp 0x44b08a
or edx, dword [ebp - 0x320]
jne 0x44b08a
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], edx
push ecx
xor ecx, ecx
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x310], ecx
push eax
lea eax, [ebp - 0x310]
cmove eax, ecx
xor edx, edx
test esi, esi
lea ecx, [ebp - 0x20c]
push eax
cmove ecx, edx
push ecx
mov ecx, dword [ebp - 0x314]
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x44b0db
mov eax, dword [ebp - 0x328]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
jne 0x44b0f0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
je 0x44b127
lea ecx, [ebp - 0x20c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44b127
or esi, 4
cmp edi, 0xffffffff
je 0x44b154
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44b140
or esi, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44b154
or esi, 4
cmp ebx, 0xffffffff
je 0x44b181
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44b16d
or esi, 2
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44b181
or esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004728e8
mov esp, ebp
pop ebp
ret