Function at 0x409100
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x36c
mov eax, dword [esp + 0x384]
and eax, dword [esp + 0x388]
mov dword [esp + 0x38], 0
and eax, dword [esp + 0x380]
mov dword [esp + 0x3c], 0
mov ebp, dword [esp + 0x38c]
cmp eax, 0xffffffff
je 0x409540
mov dword [esp + 0x34], 0
test ebp, ebp
jle 0x40915c
call sym._Curl_now
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x54], 0
mov dword [esp + 0x25c], 0
je 0x409580
mov eax, dword [esp + 0x380]
cmp dword [esp + 0x384], 0xffffffff
mov dword [esp + 0x54], 1
mov dword [esp + 0x25c], 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x260], eax
je 0x4095ee
mov eax, dword [esp + 0x384]
cmp dword [esp + 0x380], eax
je 0x4095a0
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x380], eax
mov edi, eax
mov ecx, 2
mov dword [esp + 0x54], 2
cmovae edi, dword [esp + 0x380]
mov eax, dword [esp + 0x384]
cmp dword [esp + 0x260], eax
je 0x409215
mov eax, 2
mov edx, 1
mov esi, dword [esp + 0x384]
mov dword [esp + 0x25c], eax
mov dword [esp + edx*4 + 0x260], esi
cmp dword [esp + 0x388], 0xffffffff
mov dword [esp + 0x158], 0
je 0x409568
mov eax, dword [esp + 0x388]
mov edx, dword [esp + 0x25c]
mov dword [esp + 0x158], 1
mov dword [esp + 0x15c], eax
xor eax, eax
test edx, edx
je 0x4095e0
mov ebx, dword [esp + 0x388]
lea esi, [esp + 0x25c]
jmp 0x409277
add eax, 1
cmp eax, edx
je 0x40927d
cmp dword [esi + eax*4 + 4], ebx
jne 0x409270
cmp edx, eax
jne 0x40928a
cmp edx, 0x40
jne 0x4095c3
cmp edi, dword [esp + 0x388]
cmovb edi, dword [esp + 0x388]
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x4c]
test ebp, ebp
cmovns eax, edx
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
mov dword [esp + 0x2c], eax
jle 0x4095b8
mov eax, dword [esp + 0x34]
mov edx, 0x10624dd3
mul edx
mov eax, dword [esp + 0x34]
shr edx, 6
imul edi, edx, 0x3e8
mov dword [esp + 0x30], edx
sub eax, edi
mov edi, dword [sym.imp.WS2_32.dll_select]
imul eax, eax, 0x3e8
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
xor eax, eax
lea edx, [esp + 0x158]
test ebx, ebx
mov dword [esp + 0xc], esi
cmove edx, eax
lea ebx, [esp + 0x54]
test ecx, ecx
mov ecx, dword [esp + 0x28]
cmovne eax, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp], eax
call edi
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x409380
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x40934f
mov edx, dword [0x47a05c]
test edx, edx
jne 0x409636
cmp eax, 0x2714
jne 0x409636
test ebp, ebp
jg 0x4094d8
mov ebx, dword [esp + 0x158]
mov ecx, dword [esp + 0x54]
test ebp, ebp
jne 0x4092f0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
jmp 0x4092f0
test eax, eax
js 0x409636
je 0x409556
xor edi, edi
cmp dword [esp + 0x380], 0xffffffff
jne 0x409480
cmp dword [esp + 0x384], 0xffffffff
jne 0x409420
cmp dword [esp + 0x388], 0xffffffff
jne 0x4093c0
add esp, 0x36c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x158]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x388]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
mov edx, eax
mov eax, edi
sub esp, 8
or eax, 2
test edx, edx
mov dword [esp + 4], esi
cmovne edi, eax
mov eax, dword [esp + 0x388]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
mov edx, eax
mov eax, edi
sub esp, 8
or eax, 4
test edx, edx
cmovne edi, eax
add esp, 0x36c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x384]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
mov edx, eax
mov eax, edi
sub esp, 8
or eax, 8
test edx, edx
mov dword [esp + 4], esi
cmovne edi, eax
mov eax, dword [esp + 0x384]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
mov edx, eax
mov eax, edi
sub esp, 8
or eax, 4
test edx, edx
cmovne edi, eax
cmp dword [esp + 0x388], 0xffffffff
je 0x4093b2
jmp 0x4093c0
mov eax, dword [esp + 0x380]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
setne al
mov dword [esp + 4], esi
movzx eax, al
mov edi, eax
mov eax, dword [esp + 0x380]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
mov edx, eax
mov eax, edi
sub esp, 8
or eax, 4
test edx, edx
cmovne edi, eax
cmp dword [esp + 0x384], 0xffffffff
je 0x4093a8
jmp 0x409420
call sym._Curl_now
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
call sym._Curl_timediff
mov ecx, ebp
sub ecx, eax
mov eax, ecx
test ecx, ecx
jle 0x409556
mov edx, 0x10624dd3
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x158]
imul edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
sar eax, 0x1f
sar edx, 6
sub edx, eax
imul eax, edx, 0x3e8
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
sub edx, eax
imul eax, edx, 0x3e8
jmp 0x4092e4
test ebp, ebp
je 0x409556
js 0x409628
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
add esp, 0x36c
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
lea esi, [esp + 0x25c]
jmp 0x40929e
cmp dword [esp + 0x384], 0xffffffff
jne 0x4095ff
mov edi, 0xffffffff
xor ecx, ecx
jmp 0x409215
mov edi, dword [esp + 0x380]
mov ecx, 1
jmp 0x4091e6
mov edi, dword [sym.imp.WS2_32.dll_select]
jmp 0x409362
add edx, 1
mov ebx, dword [esp + 0x388]
mov dword [esp + 0x25c], edx
mov dword [esp + eax*4 + 0x260], ebx
jmp 0x40928a
mov edx, 1
lea esi, [esp + 0x25c]
jmp 0x4095c6
mov edi, dword [esp + 0x380]
mov ecx, 1
jmp 0x409215
mov eax, dword [esp + 0x384]
mov dword [esp + 0x54], 1
mov edi, 0xffffffff
xor edx, edx
mov ecx, 1
mov dword [esp + 0x58], eax
mov eax, 1
jmp 0x409200
mov dword [esp], 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ecx
or edi, 0xffffffff
jmp 0x4093b2