Function at 0x45ca70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x32c
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x328], eax
mov eax, dword [esp + 0x330]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 0x33c]
push esi
mov esi, dword [esp + 0x344]
push edi
mov edi, dword [esp + 0x340]
cmp eax, 0xffffffff
jne 0x45cb0d
cmp edi, 0xffffffff
jne 0x45cb0d
cmp ebp, edi
jne 0x45cb0d
test esi, esi
je 0x45caf3
jns 0x45caec
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0044be2b
add esp, 0x32c
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0044be2b
add esp, 0x32c
ret
test esi, esi
jle 0x45cb25
call fcn.00454c60
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x33c]
mov dword [esp + 0x14], edx
xor edx, edx
mov ecx, esi
test esi, esi
cmovle ecx, edx
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x12c], ecx
cmp eax, 0xffffffff
je 0x45cb57
mov ecx, 1
mov dword [esp + 0x130], eax
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x2c], eax
or edx, 0xffffffff
cmp eax, edx
push ebx
mov ebx, eax
cmove ebx, edx
mov edx, ecx
mov dword [esp + 0x2c], edx
cmp edi, 0xffffffff
je 0x45cbd0
xor eax, eax
test ecx, ecx
je 0x45cb81
cmp dword [esp + eax*4 + 0x134], edi
je 0x45cb81
inc eax
cmp eax, ecx
jb 0x45cb73
cmp eax, ecx
jne 0x45cb98
cmp ecx, 0x40
jae 0x45cb98
mov dword [esp + eax*4 + 0x134], edi
inc dword [esp + 0x130]
xor eax, eax
test ecx, ecx
je 0x45cbab
nop
cmp dword [esp + eax*4 + 0x30], edi
je 0x45cbab
inc eax
cmp eax, ecx
jb 0x45cba0
mov edx, ecx
mov dword [esp + 0x2c], edx
cmp eax, ecx
jne 0x45cbcb
mov dword [esp + 0x2c], edx
cmp ecx, 0x40
jae 0x45cbcb
mov dword [esp + eax*4 + 0x30], edi
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
cmp edi, ebx
cmova ebx, edi
mov dword [esp + 0x234], 0
cmp ebp, 0xffffffff
je 0x45cc19
xor eax, eax
mov dword [esp + 0x238], ebp
mov dword [esp + 0x234], 1
test edx, edx
je 0x45cc03
cmp dword [esp + eax*4 + 0x30], ebp
je 0x45cc03
inc eax
cmp eax, edx
jb 0x45cbf8
cmp eax, edx
jne 0x45cc14
cmp edx, 0x40
jae 0x45cc14
mov dword [esp + eax*4 + 0x30], ebp
inc dword [esp + 0x2c]
cmp ebp, ebx
cmova ebx, ebp
xor ecx, ecx
lea eax, [esp + 0x20]
test esi, esi
cmovs eax, ecx
lea ecx, [ebx + 1]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
nop dword [eax]
test esi, esi
jle 0x45cc71
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
jmp 0x45cc83
jne 0x45cc83
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x13c]
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x45ccf6
call ebx
test eax, eax
je 0x45ccbe
cmp dword [0x4dc61c], 0
jne 0x45ccfa
cmp eax, 0x2714
jne 0x45ccfa
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test esi, esi
jle 0x45cc71
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00454c60
push edx
push eax
call fcn.00454bd0
mov ecx, esi
add esp, 0x10
sub ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x45cd04
mov eax, dword [esp + 0x14]
jmp 0x45cc40
test eax, eax
jns 0x45cd02
or eax, 0xffffffff
jmp 0x45cd9d
jne 0x45cd0b
xor eax, eax
jmp 0x45cd9d
mov ebx, dword [esp + 0x340]
xor esi, esi
cmp ebx, 0xffffffff
je 0x45cd43
lea eax, [esp + 0x130]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x2c]
push eax
push ebx
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45cd43
or esi, 4
cmp edi, 0xffffffff
je 0x45cd6f
lea eax, [esp + 0x130]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45cd5d
or esi, 8
lea eax, [esp + 0x2c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45cd6f
or esi, 4
cmp ebp, 0xffffffff
je 0x45cd9b
lea eax, [esp + 0x234]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45cd89
or esi, 2
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45cd9b
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x338]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044be2b
add esp, 0x32c
ret