Function at 0x45ca80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x344
mov edx, dword [esp + 0x350]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
push ebp
push esi
push edi
test ebx, ebx
je 0x45cc54
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x45cc54
lea ecx, [ecx]
cmp dword [ebx + eax*8], 0xffffffff
jne 0x45cae0
inc eax
cmp eax, ecx
jb 0x45cad0
jmp 0x45cc54
test edx, edx
jle 0x45cb15
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edx
push eax
call fcn.004913c0
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x35c]
jmp 0x45cb19
mov eax, dword [esp + 0x44]
or ebp, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebp
xor edi, edi
mov ebp, dword [esp + 0x358]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x14c], ebx
add ebp, 4
mov dword [esp + 0x250], esi
mov eax, ecx
mov dword [esp + 0x1c], ecx
lea esp, [esp]
xor ecx, ecx
mov word [ebp + 2], cx
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
je 0x45cc31
movzx eax, word [ebp]
mov edx, eax
mov dword [esp + 0x14], edx
test eax, 0x710
je 0x45cc2d
cmp ecx, dword [esp + 0x10]
jbe 0x45cb81
mov dword [esp + 0x10], ecx
test eax, 0x300
je 0x45cbb1
xor eax, eax
test edi, edi
je 0x45cb9b
mov edi, edi
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x45cb9b
inc eax
cmp eax, edi
jb 0x45cb90
cmp eax, edi
jne 0x45cbb1
cmp edi, 0x40
jae 0x45cbb1
mov dword [esp + eax*4 + 0x4c], ecx
mov edi, dword [esp + 0x48]
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x14]
test al, 0x10
je 0x45cbf1
xor eax, eax
test ebx, ebx
je 0x45cbce
nop
cmp dword [esp + eax*4 + 0x150], ecx
je 0x45cbce
inc eax
cmp eax, ebx
jb 0x45cbc0
cmp eax, ebx
jne 0x45cbed
cmp ebx, 0x40
jae 0x45cbed
mov dword [esp + eax*4 + 0x150], ecx
mov ebx, dword [esp + 0x14c]
inc ebx
mov dword [esp + 0x14c], ebx
mov eax, dword [esp + 0x14]
test eax, 0x600
je 0x45cc2d
xor eax, eax
test esi, esi
je 0x45cc0e
mov edi, edi
cmp dword [esp + eax*4 + 0x254], ecx
je 0x45cc0e
inc eax
cmp eax, esi
jb 0x45cc00
cmp eax, esi
jne 0x45cc2d
cmp esi, 0x40
jae 0x45cc2d
mov dword [esp + eax*4 + 0x254], ecx
mov esi, dword [esp + 0x250]
inc esi
mov dword [esp + 0x250], esi
mov eax, dword [esp + 0x1c]
add ebp, 8
sub eax, 1
mov dword [esp + 0x1c], eax
jne 0x45cb50
mov edx, dword [esp + 0x360]
test edi, edi
jne 0x45cc7b
test ebx, ebx
jne 0x45cc7b
test esi, esi
jne 0x45cc7b
test edx, edx
je 0x45ce8a
jns 0x45ce83
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x30]
xor eax, eax
test edx, edx
sets al
dec eax
and eax, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea esp, [esp]
test edx, edx
jle 0x45ccd9
mov ecx, dword [esp + 0x18]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
jmp 0x45cceb
jne 0x45cceb
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push eax
neg esi
lea eax, [esp + 0x254]
sbb esi, esi
and esi, eax
neg ebx
lea eax, [esp + 0x150]
sbb ebx, ebx
and ebx, eax
neg edi
push esi
sbb edi, edi
lea eax, [esp + 0x50]
push ebx
and edi, eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x45cdf0
call ebp
test eax, eax
je 0x45cd41
cmp dword [0x51c490], 0
jne 0x45cc6d
cmp eax, 0x2714
jne 0x45cc6d
mov edx, dword [esp + 0x360]
test edx, edx
jg 0x45cd6b
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x45cca0
lea eax, [esp + 0x38]
push eax
call fcn.004913c0
mov edx, eax
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
call fcn.00491470
mov edx, dword [esp + 0x380]
add esp, 0x20
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x45ce8a
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x45cca0
test eax, eax
js 0x45cc6d
je 0x45ce8a
mov esi, dword [esp + 0x358]
xor edi, edi
add esi, 6
mov ebp, 0x300
mov ebx, 0x400
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x45ce69
lea ecx, [esp + 0x48]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45ce33
or word [esi], bp
lea eax, [esp + 0x14c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45ce4b
or word [esi], 0x10
lea eax, [esp + 0x250]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45ce62
or word [esi], bx
cmp word [esi], 0
je 0x45ce69
inc edi
add esi, 8
sub dword [esp + 0x35c], 1
jne 0x45ce14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret