Function at 0x4585d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [ebp + 0xc]
push esi
lea esi, [edx + 0x1f]
mov dword [esp + 0x20], eax
push edi
mov edi, ecx
shl esi, 4
add esi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], esi
mov ecx, dword [edi]
cmp dword [esi + 4], 2
mov eax, dword [edi + edx*4 + 0x1a8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], eax
jne 0x458621
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [ecx], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
jne 0x458707
mov eax, dword [ecx + 0x218]
xor edx, edx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov edx, dword [esp + 0xc]
test eax, eax
mov edi, 0x493e0
setg cl
mov edx, dword [edx + 0x21c]
test edx, edx
jle 0x458654
or ecx, 2
sub ecx, 1
je 0x45866c
sub ecx, 1
je 0x45866a
sub ecx, 1
jne 0x458673
cmp eax, edx
cmovge eax, edx
jmp 0x45866c
mov eax, edx
cdq
mov edi, eax
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [esp + 0x34], 0
mov eax, 0x10624dd3
sub esp, 0x10
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [esp + 0x40], edx
sub esi, ecx
mov ecx, dword [esp + 0x1c]
imul eax, esi, 0x3e8
movups xmm0, xmmword [ecx + 0x7e0]
mov dword [esp + 0x48], eax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax], xmm0
call fcn.00449500
mov ecx, dword [esp + 0x30]
add esp, 0x20
sub edi, eax
mov eax, edi
sbb ecx, edx
or eax, ecx
jne 0x4586e0
or edi, 0xffffffff
mov dword [esp + 0x14], edi
test edi, edi
js 0x458915
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x20]
call fcn.00456bf0
test eax, eax
jne 0x45892b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 8]
cmp eax, 1
je 0x45871d
cmp eax, 2
je 0x45871d
cmp eax, 3
jne 0x458870
mov eax, dword [ecx + 0x218]
xor edx, edx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov edx, dword [esp + 0xc]
test eax, eax
mov edi, 0x493e0
setg cl
mov edx, dword [edx + 0x21c]
test edx, edx
jle 0x458746
or ecx, 2
sub ecx, 1
je 0x45875e
sub ecx, 1
je 0x45875c
sub ecx, 1
jne 0x458765
cmp eax, edx
cmovge eax, edx
jmp 0x45875e
mov eax, edx
cdq
mov edi, eax
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [esp + 0x34], 0
mov eax, 0x10624dd3
sub esp, 0x10
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [esp + 0x40], edx
sub esi, ecx
mov ecx, dword [esp + 0x1c]
imul eax, esi, 0x3e8
movups xmm0, xmmword [ecx + 0x7e0]
mov dword [esp + 0x48], eax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax], xmm0
call fcn.00449500
mov ecx, dword [esp + 0x30]
add esp, 0x20
sub edi, eax
mov eax, edi
sbb ecx, edx
or eax, ecx
jne 0x4587d2
or edi, 0xffffffff
mov dword [esp + 0x14], edi
test edi, edi
js 0x458915
mov esi, dword [esp + 0x1c]
mov esi, dword [esi + 8]
cmp esi, 2
je 0x4587eb
cmp esi, 3
jne 0x458825
xor eax, eax
cmp dword [ebp + 8], eax
cmovne edi, eax
mov eax, edi
cdq
push edx
push eax
or eax, 0xffffffff
cmp esi, 3
cmove eax, dword [esp + 0x34]
or ecx, 0xffffffff
cmp esi, 2
push eax
cmove ecx, dword [esp + 0x38]
call fcn.00443550
add esp, 0xc
test eax, eax
js 0x4588f2
je 0x4588da
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x20]
call fcn.00457b40
test eax, eax
jne 0x45892b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
cmp dword [ebp + 8], eax
je 0x458707
mov ecx, dword [esi + 8]
cmp ecx, 1
je 0x45892b
cmp ecx, 2
je 0x45892b
cmp ecx, 3
je 0x45892b
jmp 0x458703
cmp eax, 4
jne 0x458888
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.00457f20
test eax, eax
jne 0x45892b
cmp dword [esi + 8], 5
jne 0x4588c9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 4], 2
mov dword [edi + eax*4 + 0x1c0], 0x4583c0
mov dword [edi + eax*4 + 0x1c8], 0x4580d0
mov eax, 1
mov dword [ecx], eax
xor eax, eax
mov dword [esi + 8], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [ecx], eax
mov dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x458915
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [ecx], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select_poll_on_SSL_socket__errno:__d
push dword [esp + 0x14]
call fcn.004415c0
add esp, 0xc
mov eax, 0x23
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.SSL_connection_timeout
push dword [esp + 0x10]
call fcn.004415c0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
mov esp, ebp
pop ebp
ret