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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rbp + 0x288], rax
mov edi, r9d
mov dword [rsp + 0x48], r9d
mov rbx, r8
mov qword [rsp + 0x50], rbx
mov r13, rdx
mov r12, rcx
mov r15, qword [rbp + 0x300]
xor esi, esi
xor r14b, r14b
mov rcx, r15
call fcn.1400028b4
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call qword [r12 + 0x48]
test eax, eax
jne 0x1400600a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400600a9
cmp eax, 0xd
jne 0x1400600a2
call fcn.1400210a0
cmp dword [rax + 8], 2
jl 0x1400600a2
call fcn.1400210a0
mov rdi, rax
lea rcx, [rbp - 0x50]
call fcn.1400194c0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x210], xmm0
mov qword [rbp + 0x220], rsi
mov qword [rbp + 0x228], 7
mov word [rbp + 0x210], si
lea rdx, str.WARN
lea rcx, [rbp + 0x210]
call fcn.140018440
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b0], xmm0
mov edx, esi
mov qword [rbp + 0x1c0], rdx
mov r8d, 7
mov qword [rbp + 0x1c8], r8
mov word [rbp + 0x1b0], si
mov ebx, esi
cmp dword [rdi + 0x10], ebx
jle 0x14005fb16
cmp ebx, 0xa
jge 0x14005fb16
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x1b0]
cmp rax, 2
jb 0x14005fae5
lea rax, [rdx + 2]
mov qword [rbp + 0x1c0], rax
cmp r8, 8
cmovae rcx, qword [rbp + 0x1b0]
mov eax, dword [0x1402cca20]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], si
jmp 0x14005faff
mov qword [rsp + 0x20], 2
lea r9, [0x1402cca20]
mov edx, 2
call fcn.140022090
inc ebx
cmp ebx, dword [rdi + 0x10]
jge 0x14005fb16
mov r8, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x1c0]
jmp 0x14005faa6
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], rsi
mov qword [rbp + 0x208], 7
mov word [rbp + 0x1f0], si
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1e0], rsi
mov qword [rbp + 0x1e8], 7
mov word [rbp + 0x1d0], si
call fcn.14023116c
mov edx, VariantTimeToDosDateTime
lea rcx, [rbp + 0x270]
call fcn.1402312bc
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x1f0]
call fcn.140018440
lea rcx, [rbp + 0xb0]
call fcn.1400194c0
nop
cmp dword [rdi + 0x14], 0
jne 0x14005fbae
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x14], eax
xor edx, edx
lea rcx, [rbp + 0xc0]
call fcn.140012fa0
jmp 0x14005fbd3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x14]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1402d3510]
lea rcx, [rbp + 0xc0]
call fcn.140021a80
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0xc8]
call fcn.14001a0c0
nop
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 8
jb 0x14005fc2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fc28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006015a
call fcn.140004144
movups xmm0, xmmword [rbp + 0x230]
movups xmmword [rbp + 0x1d0], xmm0
movups xmm1, xmmword [rbp + 0x240]
movups xmmword [rbp + 0x1e0], xmm1
movdqa xmm0, xmmword [0x1402d3560]
movdqu xmmword [rbp + 0x240], xmm0
mov word [rbp + 0x230], si
lea rcx, [rbp + 0xb0]
call fcn.1400193b0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x50]
call fcn.140222e78
mov rbx, rax
mov edx, 0x2040
lea rcx, [rsp + 0x60]
call fcn.140222e78
mov r8, rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 8
cmovae rdx, qword [rbp + 0x1f0]
mov r8, qword [rbp + 0x200]
lea rcx, [rbp - 0x40]
call fcn.140016ce0
lea rdx, [0x1402cc558]
mov rcx, rax
call fcn.140016a20
mov rdi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, dword [rbx + 8]
call qword [rbx]
mov edx, 6
lea rcx, [rsp + 0x70]
call fcn.140222ea0
mov r8, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [r8 + 8]
call qword [r8]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov word [rcx + rdi + 0x58], 0x30
mov edx, 3
lea rcx, [rbp - 0x80]
call fcn.140222e8c
mov r8, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [r8 + 8]
call qword [r8]
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 8
cmovae rdx, qword [rbp + 0x1d0]
mov r8, qword [rbp + 0x1e0]
mov rcx, rdi
call fcn.140016ce0
mov rbx, rax
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.140222ea0
mov rdi, rax
lea rdx, [0x1402cc558]
mov rcx, rbx
call fcn.140016a20
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov word [rcx + rbx + 0x58], 0x20
mov edx, 0x40
lea rcx, [rbp - 0x60]
call fcn.140222e78
mov r8, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rbp + 0x210]
cmp qword [rbp + 0x228], 8
cmovae rdx, qword [rbp + 0x210]
mov r8, qword [rbp + 0x220]
mov rcx, rbx
call fcn.140016ce0
lea rbx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rbx, qword [rbp + 0x1b0]
lea rdx, [0x1402cca70]
mov rcx, rax
call fcn.140016a20
mov rcx, rax
mov rdx, rbx
call fcn.140016a20
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14032a09c], eax
jg 0x140060160
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x38]
call fcn.14001a0c0
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14005fe9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14031b5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fe96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400601b7
call fcn.140004144
movups xmm0, xmmword [rbp + 0x250]
movups xmmword [0x14031b5e0], xmm0
movups xmm1, xmmword [rbp + 0x260]
movups xmmword [0x14031b5f0], xmm1
movdqa xmm0, xmmword [0x1402d3560]
movdqu xmmword [rbp + 0x260], xmm0
mov word [rbp + 0x250], si
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 8
jb 0x14005ff14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ff0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400601bd
call fcn.140004144
mov qword [rbp + 0x1e0], rsi
mov qword [rbp + 0x1e8], 7
mov word [rbp + 0x1d0], si
mov rdx, qword [rbp + 0x208]
cmp rdx, 8
jb 0x14005ff73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ff6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400601c3
call fcn.140004144
mov qword [rbp + 0x200], rsi
mov qword [rbp + 0x208], 7
mov word [rbp + 0x1f0], si
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 8
jb 0x14005ffd2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ffcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400601c9
call fcn.140004144
mov qword [rbp + 0x1c0], rsi
mov qword [rbp + 0x1c8], 7
mov word [rbp + 0x1b0], si
mov rdx, qword [rbp + 0x228]
cmp rdx, 8
jb 0x140060031
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006002c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060154
call fcn.140004144
mov qword [rbp + 0x220], rsi
mov qword [rbp + 0x228], 7
mov word [rbp + 0x210], si
lea rcx, [rbp - 0x50]
call fcn.1400193b0
call fcn.1400210a0
lea rdx, [0x14031b5e0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14031b5e0]
mov r8, qword [0x14031b5f0]
mov rcx, rax
call fcn.140016ce0
lea rdx, str.SetupDiGetDeviceRegistryProperty_failed_with_error:
mov rcx, rax
call fcn.140016a20
mov rcx, rax
mov edx, SafeArrayGetDim
call fcn.1400196c0
mov rcx, rax
call fcn.140017c00
xor al, al
jmp 0x140060131
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140003e80
mov rdi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
mov rdx, r13
mov rcx, qword [rsp + 0x50]
call qword [r12 + 0x48]
test eax, eax
je 0x140060120
test rdi, rdi
je 0x14006010f
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140060104
mov esi, ebx
mov r8d, esi
mov rdx, rdi
mov rcx, r15
call fcn.140002a9c
mov r14b, 1
test rdi, rdi
je 0x14006012d
mov rcx, rdi
call fcn.140004144
movzx eax, r14b
mov rcx, qword [rbp + 0x288]
xor rcx, rsp
call fcn.140220510
add rsp, 0x398
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140229804
nop
call fcn.140229804
nop
lea rcx, [0x14032a09c]
call fcn.140220854
cmp dword [0x14032a09c], 0xffffffff
jne 0x14005fe44
xorps xmm0, xmm0
movups xmmword [0x14031b5e0], xmm0
movdqa xmm1, xmmword [0x1402d3560]
movdqu xmmword [0x14031b5f0], xmm1
mov word [0x14031b5e0], si
lea rcx, [0x14026e6e0]
call fcn.140220768
lea rcx, [0x14032a09c]
call fcn.1402207e8
jmp 0x14005fe44
call fcn.140229804
nop
call fcn.140229804
nop
call fcn.140229804
nop
call fcn.140229804
int3