Function at 0x45c6f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x330
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x32c], eax
mov edx, dword [esp + 0x334]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0x340]
mov dword [esp + 8], ebx
test edx, edx
je 0x45c74b
mov ecx, dword [esp + 0x33c]
xor eax, eax
test ecx, ecx
je 0x45c74b
nop dword [eax]
cmp dword [edx + eax*8], 0xffffffff
jne 0x45c77d
inc eax
cmp eax, ecx
jb 0x45c740
test ebx, ebx
je 0x45ca4d
jns 0x45ca46
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0044be2b
add esp, 0x330
ret
test ebx, ebx
jle 0x45c78e
call fcn.00454c60
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
xor eax, eax
mov ecx, ebx
push ebp
test ebx, ebx
push esi
cmovle ecx, eax
xor esi, esi
mov eax, dword [esp + 0x344]
xor edx, edx
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x30], esi
mov dword [esp + 0x134], edi
xor ebp, ebp
mov dword [esp + 0x238], edx
mov dword [esp + 0x10], ebx
nop word [eax + eax]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov word [ecx + ebp*8 + 6], bx
mov ecx, dword [ecx + ebp*8]
mov ebx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x45c8c2
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax + ebp*8 + 4]
test bl, 7
je 0x45c8b7
cmp ecx, dword [esp + 0x10]
mov eax, ecx
cmovbe eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
test bl, 1
je 0x45c838
xor eax, eax
test esi, esi
je 0x45c822
cmp dword [esp + eax*4 + 0x34], ecx
je 0x45c822
inc eax
cmp eax, esi
jb 0x45c817
cmp eax, esi
jne 0x45c838
cmp esi, 0x40
jae 0x45c838
mov dword [esp + eax*4 + 0x34], ecx
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
test bl, 4
je 0x45c870
xor eax, eax
test edi, edi
je 0x45c851
cmp dword [esp + eax*4 + 0x138], ecx
je 0x45c851
inc eax
cmp eax, edi
jb 0x45c843
cmp eax, edi
jne 0x45c870
cmp edi, 0x40
jae 0x45c870
mov dword [esp + eax*4 + 0x138], ecx
mov edi, dword [esp + 0x134]
inc edi
mov dword [esp + 0x134], edi
test bl, 2
je 0x45c8b7
xor eax, eax
test edx, edx
je 0x45c88e
nop dword [eax + eax]
cmp dword [esp + eax*4 + 0x23c], ecx
je 0x45c88e
inc eax
cmp eax, edx
jb 0x45c880
cmp eax, edx
jne 0x45c8ad
cmp edx, 0x40
jae 0x45c8ad
mov dword [esp + eax*4 + 0x23c], ecx
mov edx, dword [esp + 0x238]
inc edx
mov dword [esp + 0x238], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x45c8bb
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x348]
inc ebp
cmp ebp, eax
jb 0x45c7d0
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x28]
mov ebp, dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
cmovs esi, ecx
mov ecx, dword [esp + 0x18]
inc ebx
nop dword [eax + eax]
test eax, eax
jle 0x45c91d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x2c], eax
jmp 0x45c92f
jne 0x45c92f
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push esi
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x45c99d
call edi
test eax, eax
je 0x45c963
cmp dword [0x4dc61c], 0
jne 0x45c9a1
cmp eax, 0x2714
jne 0x45c9a1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jle 0x45c91d
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.00454c60
push edx
push eax
call fcn.00454bd0
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x45c9a1
mov eax, dword [esp + 0x14]
jmp 0x45c8f0
test eax, eax
jns 0x45c9bd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0044be2b
add esp, 0x330
ret
jne 0x45c9c3
xor eax, eax
jmp 0x45c9a4
mov esi, dword [esp + 0x1c]
xor edi, edi
add esi, 6
nop dword [eax]
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x45ca32
lea ecx, [esp + 0x30]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c9f0
or word [esi], 1
lea eax, [esp + 0x134]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45ca08
or word [esi], 4
lea eax, [esp + 0x238]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
movzx ecx, word [esi]
test eax, eax
je 0x45ca2a
or ecx, 2
mov word [esi], cx
movzx eax, cx
jmp 0x45ca2c
mov eax, ecx
test ax, ax
je 0x45ca32
inc edi
add esi, 8
sub dword [esp + 0x348], 1
jne 0x45c9d0
mov eax, edi
jmp 0x45c9a4
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x330]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.0044be2b
add esp, 0x330
ret