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

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x118
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x180]
xor r12d, r12d
mov r15, r8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x188]
mov rdi, rdx
mov qword [rsp + 0x80], rdx
mov rsi, rcx
mov qword [rsp + 0xa8], rcx
lea rcx, [r11 - 0x88]
lea rdx, [0x100349a70]
lea r8d, [r12 + 0x28]
mov rbx, r12
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r9
mov r14, r12
mov rbp, r12
mov qword [r11 - 0xd0], r12
mov qword [r11 - 0x60], rbx
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x40], r12
call sub.msvcrt.dll_memcpy
mov r13, r12
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xa0], eax
cmp qword [rsp + 0x68], rbx
jne 0x1000588bc
mov esi, 0x80070057
mov r15, qword [rsp + 0x40]
lea rdi, [0x100331948]
mov rax, qword [0x100331948]
cmp rax, rdi
je 0x10005874d
test byte [rax + 0x3c], 2
je 0x1000586e9
mov rcx, qword [rax + 0x30]
lea r8, [0x1000213a8]
mov edx, 0x16
mov r9d, esi
call fcn.100050618
call fcn.100248ac0
nop
or byte [rcx + 0x2b183032], ch
adc eax, eax
lodsd eax, dword [rsi]
add dword [rax], eax
mov al, 0xc
test eax, 0x8b484032
add eax, 0x2d9242
cmp rax, rdi
je 0x10005874d
mov eax, dword [rax + 0x3c]
mov ecx, 0x2000008
and eax, ecx
cmp eax, ecx
jne 0x10005874d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x100331948]
lea r9, [0x100037710]
sub eax, dword [rsp + 0xa0]
mov rcx, qword [rcx + 0x30]
lea r8, [0x1000214f0]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.100076e34
test r12, r12
je 0x10005875c
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
xor r12d, r12d
cmp rcx, r12
je 0x100058774
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x10005879a
call fcn.10022d6f0
nop
mov ch, 0xa
add al, ah
sbb bl, bl
xor ah, byte [rax + 0x5032db1c]
hlt
cmp r13, r12
je 0x1000587a8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0xe0]
cmp rdi, r12
je 0x1000587d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0xe0], r12
mov rdi, qword [rsp + 0xd8]
cmp rdi, r12
je 0x100058812
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.1003048e8
nop
sbb eax, dword [rax]
add byte [rax + 0x74], ah
or byte [rdx], dh
mov al, 0xc4
invalid
cmp r15, r12
je 0x100058841
call fcn.100041938
nop
cli
xor dword [rax + 0x4c], edx
je 0x100058850
push rax
xor eax, 0x3c500000
cli
xor dword [rax - 0x7392ea01], esp
cli
dec dword [rbp - 0x75]
invalid
cmp rbp, r12
je 0x10005884f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, r12
cmp ebx, esp
je 0x10005885d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.100041938
nop
cwde
stosb byte [rdi], al
xor ah, byte [rax + 0x1012f0e5]
invalid
cmp qword [rsp + 0x70], rbx
je 0x1000586aa
cmp qword [rsp + 0x78], rbx
je 0x1000586aa
mov rax, qword [0x1003477c0]
mov qword [rsp + 0x90], rax
lea r14, [rax + 8]
test r14, r14
je 0x1000588f2
mov rcx, r14
call fcn.10004cfe8
lea rcx, [0x100037730]
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
call fcn.1002fa81c
nop
pop rax
sbb eax, 0x1f0012
add byte [rax + 0x54], ah
mov dl, 0x32
rcl byte [rax - 0x4e], 0x32
push rax
test eax, eax
jne 0x100058b6d
cmp qword [rsi + 0x10], rbx
jne 0x1000589ef
call fcn.1000f8a58
nop
std
add dword [rax], eax
xor byte [rbx + rcx*4], dl
xor ah, byte [rax - 0x6fdcb094]
sbb byte [rbx - 0x74b39fce], cl
mov esp, 0x9024
add byte [rbp + rcx*4 - 0x74], cl
and al, 0x98
add byte [rax], al
add byte [rbp + rcx*4 + 5], cl
or esi, ebp
std
dec dword [rcx - 0x75]
iretd
mov r15, qword [rsi + 0x10]
test r15, r15
jne 0x100058a02
mov esi, 0xc004f002
jmp 0x1000586af
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1000522c4
call fcn.10006fffc
nop
pushfq
pop rdx
xor dh, al
movabs al, byte [0xd80000002930325a]
ror byte es:[ebx + 0xfc085f0], 1
mov byte [rax + 0x48fffffc], al
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rcx, r15
call fcn.100065e0c
test al, al
jne 0x100058a4f
mov esi, 0xc004f012
jmp 0x1000586af
mov rax, qword [r15 + 8]
movsxd r12, dword [rsp + 0x58]
add r12, r12
mov r12, qword [rax + r12*8 + 8]
mov rcx, r12
mov rax, qword [r12]
call qword [rax + 8]
mov rax, qword [r12]
lea r8, [rsp + 0xb0]
lea rdx, [0x100037780]
mov rcx, r12
call qword [rax + 0x30]
mov edi, 0x80070002
mov esi, eax
cmp eax, edi
jne 0x100058b5a
mov rax, qword [r12]
lea r8, [rsp + 0xb0]
lea rdx, [0x100037730]
mov rcx, r12
call qword [rax + 0x30]
mov esi, eax
cmp eax, edi
je 0x100058a45
test eax, eax
js 0x1000586af
cmp dword [rsp + 0xb8], 2
je 0x100058acd
mov esi, 0xc004f01e
jmp 0x1000586af
mov r15d, 4
mov rdx, r15
lea ecx, [r15 + 0x3c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x100058af2
mov esi, 0x8007000e
jmp 0x1000586af
mov rcx, qword [rsp + 0xc0]
mov rdx, rax
mov rbx, rax
call fcn.1000752f8
call fcn.1000f8a58
nop
sub dword [rax], eax
add byte [rax], al
lodsb al, byte [rsi]
mov dword [rdx], esi
push rax
fcomp qword [rdi + 0x23]
loopne 0x100058ac8
mov dword [rdx], esi
mov al, 0xe8
cld
sbb al, 0x2a
add byte [rax + 0x10270c88], dl
invalid
test eax, eax
je 0x100058a45
jns 0x100059300
jmp 0x1000586af
lea rsi, [0x1000377c0]
mov rdi, r15
mov ecx, 0xb
repe cmpsw word [rsi], word [rdi]
jne 0x100058cb6
mov rdi, qword [rsp + 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.10005287c
mov esi, eax
test eax, eax
js 0x1000586af
call fcn.100248ac0
nop
sub byte [rcx], dl
xor ah, byte [rax]
cmp al, 0x3f
and byte [rdi + rdi], bh
sub esi, dword [rax + 0x20000009]
sub al, 0x11
xor dh, byte [rax]
call fcn.1002fa81c
nop
pop rax
popfq
sub edx, dword [rax + 0x2f]
add byte [rax], al
loopne 0x100058bad
or dh, byte [rdx]
jo 0x100058bad
or dh, byte [rdx]
invalid
mov esi, 0x8000ffff
jmp 0x1000586af
mov esi, eax
test eax, eax
jmp 0x100058b62
call fcn.10004ca44
nop
stc
or al, 0x22
movabs al, byte [0x1032bfa01032bfa4]
xchg dword [rax], eax
add byte [rax], al
mov r8d, 0x14
lea rsi, [0x1000377d8]
mov rdi, r15
mov rcx, r8
repe cmpsw word [rsi], word [rdi]
jne 0x100058dcd
mov rdi, qword [rsp + 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.10005287c
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [0x100347830]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov esi, eax
test eax, eax
js 0x1000586af
call fcn.10004ca44
nop
stc
and byte [rsi + 0x60], cl
jl 0x100058d88
xor dh, al
js 0x100058d8c
xor dl, al
test dword [rcx], 0x8b483000
and al, 0x50
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
test eax, eax
js 0x1000586af
cmp dword [rsp + 0x48], 1
jne 0x100058c2b
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0xb0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0xf8]
call fcn.100052790
mov esi, eax
and al, 0xb0
add byte [rax], al
add byte [rax - 0x73], cl
xchg esp, eax
and al, 0xf8
add byte [rax], al
add al, ch
neg byte [rcx - 0xf740001]
test eax, eax
js 0x1000586af
mov rax, qword [rsp + 0x78]
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0xf8]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1000c75ac
jmp 0x100058cad
mov eax, 0xc
lea rsi, [0x100037800]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x100058ecd
mov rdi, qword [rsp + 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.10005287c
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [0x100347830]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
test eax, eax
js 0x1000586af
cmp dword [rsp + 0x48], 1
jne 0x100058c2b
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0xb0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0xf8]
call fcn.100052790
call fcn.100296c1c
nop
mov dl, 0xd4
mov eax, 0x802cbe94
xor ch, dh
xor dword [rax + 0x6b], esi
add byte [rax], al
and byte [rbx + 0xfc085f0], cl
mov byte [rbx], cl
clc
invalid
lea rsi, [0x100037818]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
mov edx, 0x15
lea rsi, [0x100037588]
mov rdi, r15
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea rsi, [0x1000375b8]
lea ecx, [rdx - 3]
mov rdi, r15
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea eax, [rdx + 4]
lea rsi, [0x1000375e0]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea rsi, [0x100037618]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea eax, [rdx + 0xe]
lea rsi, [0x100037830]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
call fcn.100248ac0
nop
rcl byte [rdi + 0x32], 0x50
nop
mov edx, 0x1ff6026
add byte [rax - 0x3fcda83c], dl
lea rsi, [0x100037880]
mov rdi, r15
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea rsi, [0x1000378c8]
mov rdi, r15
mov rcx, r8
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea rsi, [0x1000378f0]
mov rdi, r15
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
lea rsi, [0x100037920]
lea ecx, [rdx + 6]
mov rdi, r15
repe cmpsw word [rsi], word [rdi]
je 0x1000591f4
call fcn.10004ca44
nop
hlt
mov rdi, qword [rsp + 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.10005287c
mov esi, eax
test eax, eax
js 0x1000586af
call fcn.1003048e8
nop
add eax, dword [rax]
adc byte [rax + 0x3dd032e2], 0x94
or al, 0x70
mov edx, fs
xor dl, al
mov rcx, qword [0x100347830]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
test eax, eax
js 0x1000586af
cmp dword [rsp + 0x48], 1
jne 0x100058c2b
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0xb0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov esi, eax
test eax, eax
js 0x1000586af
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0xf8]
call fcn.100052790
mov esi, eax
test eax, eax
js 0x1000586af
mov rax, qword [rsp + 0x78]
lea rdx, [rsp + 0xf8]
lea rcx, [0x1000379e0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov r9, r15
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.1000c7af8
call fcn.10006fffc
nop
in al, 0x31
and byte [rax - 0x1c], dl
xor dword [rax - 5], eax
add dword [rax], eax
adc al, 0x95
and byte cs:[rbx + 0x7c8b4cf0], cl
and al, 0x40
mov r15, qword [rsp + 0x40]
lea rdi, [0x100331948]
test esi, esi
js 0x1000586bb
jmp 0x1000586e9