Function at 0x140006d00
Capabilities:
Check for time delay via queryperformancecounter
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r14d, r9d
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x70]
call fcn.140006930
cmp byte [rsp + 0x80], 1
je 0x140006fbc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x140006f9b
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140006f9b
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140006f9b
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x140006f9b
mov edx, dword [rax + rcx + 0x50]
cmp edx, 0x148
jb 0x140006f9b
add edx, 0xffffffff
add rdx, rax
je 0x140006f9b
mov ebp, dword [rax + rcx + 8]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400070a0
cmp byte [rsp + 0x68], 1
je 0x140006fc3
mov r15b, byte [rsp + 0x5c]
test r15b, r15b
je 0x140006f18
cmp dword [rsp + 0x58], ebp
jne 0x140006f18
cmp ebx, 1
jne 0x140006e3f
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
cmp byte [rdi + 0x18], 0
mov qword [rdi + 0x10], rax
jne 0x140006e06
mov byte [rdi + 0x18], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], 1
test r15b, r15b
je 0x140006e1a
mov byte [rsp + 0x5c], 0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400477a0
mov rax, rsi
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x140006f55
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140007220
cmp byte [rsp + 0x50], 1
je 0x140006fd4
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140007280
cmp byte [rsp + 0x38], 1
je 0x140006fee
mov bpl, byte [rsp + 0x48]
test bpl, bpl
setne al
mov r12b, byte [rsp + 0x30]
test r12b, r12b
setne cl
xor cl, al
jne 0x14000700d
mov eax, ebx
test ebx, ebx
jne 0x140006eb6
mov eax, ebx
test bpl, bpl
je 0x140006eb6
mov rcx, qword [rsp + 0x40]
xor eax, eax
cmp rcx, qword [rsp + 0x28]
setae al
cmp r14d, 1
je 0x140006ebe
mov ebx, eax
test ebx, ebx
jne 0x140007021
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cmp byte [rdi + 8], 0
mov qword [rdi], rax
jne 0x140006eec
mov byte [rdi + 8], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], ebx
test r12b, r12b
je 0x140006efc
mov byte [rsp + 0x30], 0
test bpl, bpl
je 0x140006e10
mov byte [rsp + 0x48], 0
test r15b, r15b
jne 0x140006e15
jmp 0x140006e1a
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140007100
cmp byte [rsp + 0x50], 1
je 0x140006fd4
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov r8d, ebp
call fcn.1400071c0
cmp byte [rsp + 0x38], 1
jne 0x140006dda
movups xmm0, xmmword [rsp + 0x28]
jmp 0x140006fd9
test eax, eax
jne 0x140007041
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
cmp byte [rdi + 8], 0
mov qword [rdi], rax
jne 0x140006f83
mov byte [rdi + 8], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], 0
test r15b, r15b
jne 0x140006e15
jmp 0x140006e1a
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1581954009_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000021
mov qword [rsi + 8], rax
jmp 0x140006e1a
movups xmm0, xmmword [rsp + 0x70]
jmp 0x140006fc8
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x140006e1a
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
test r15b, r15b
jne 0x140006e15
jmp 0x140006e1a
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
mov bpl, byte [rsp + 0x48]
test bpl, bpl
jne 0x140006f05
jmp 0x140006e10
mov eax, 1
cmp r14d, 1
jne 0x140006ebc
jmp 0x140006ebe
cmp ebx, 1
jne 0x14000706b
cmp byte [rdi + 0x18], 0
mov qword [rdi + 0x10], 0
jne 0x140006eec
mov byte [rdi + 0x18], 1
jmp 0x140006eec
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1581954009_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x80070507000000ed
mov qword [rsi + 8], rax
test r15b, r15b
jne 0x140006e15
jmp 0x140006e1a
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1581954009_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007050700000131
mov qword [rsi + 8], rax
test r12b, r12b
jne 0x140006ef7
jmp 0x140006efc