Function at 0x140007150
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 [0x140054018]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x70]
call fcn.140006d80
cmp byte [rsp + 0x80], 1
je 0x14000740c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x1400073eb
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400073eb
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400073eb
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x1400073eb
mov edx, dword [rax + rcx + 0x50]
cmp edx, 0x148
jb 0x1400073eb
add edx, 0xffffffff
add rdx, rax
je 0x1400073eb
mov ebp, dword [rax + rcx + 8]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400074f0
cmp byte [rsp + 0x68], 1
je 0x140007413
mov r15b, byte [rsp + 0x5c]
test r15b, r15b
je 0x140007368
cmp dword [rsp + 0x58], ebp
jne 0x140007368
cmp ebx, 1
jne 0x14000728f
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 0x140007256
mov byte [rdi + 0x18], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], 1
test r15b, r15b
je 0x14000726a
mov byte [rsp + 0x5c], 0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140045f60
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 0x1400073a5
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140007670
cmp byte [rsp + 0x50], 1
je 0x140007424
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400076d0
cmp byte [rsp + 0x38], 1
je 0x14000743e
mov bpl, byte [rsp + 0x48]
test bpl, bpl
setne al
mov r12b, byte [rsp + 0x30]
test r12b, r12b
setne cl
xor cl, al
jne 0x14000745d
mov eax, ebx
test ebx, ebx
jne 0x140007306
mov eax, ebx
test bpl, bpl
je 0x140007306
mov rcx, qword [rsp + 0x40]
xor eax, eax
cmp rcx, qword [rsp + 0x28]
setae al
cmp r14d, 1
je 0x14000730e
mov ebx, eax
test ebx, ebx
jne 0x140007471
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 0x14000733c
mov byte [rdi + 8], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], ebx
test r12b, r12b
je 0x14000734c
mov byte [rsp + 0x30], 0
test bpl, bpl
je 0x140007260
mov byte [rsp + 0x48], 0
test r15b, r15b
jne 0x140007265
jmp 0x14000726a
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140007550
cmp byte [rsp + 0x50], 1
je 0x140007424
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov r8d, ebp
call fcn.140007610
cmp byte [rsp + 0x38], 1
jne 0x14000722a
movups xmm0, xmmword [rsp + 0x28]
jmp 0x140007429
test eax, eax
jne 0x140007491
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 0x1400073d3
mov byte [rdi + 8], 1
mov byte [rsi + 0x10], 0
mov dword [rsi], 0
test r15b, r15b
jne 0x140007265
jmp 0x14000726a
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000021
mov qword [rsi + 8], rax
jmp 0x14000726a
movups xmm0, xmmword [rsp + 0x70]
jmp 0x140007418
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x14000726a
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
test r15b, r15b
jne 0x140007265
jmp 0x14000726a
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
mov bpl, byte [rsp + 0x48]
test bpl, bpl
jne 0x140007355
jmp 0x140007260
mov eax, 1
cmp r14d, 1
jne 0x14000730c
jmp 0x14000730e
cmp ebx, 1
jne 0x1400074bb
cmp byte [rdi + 0x18], 0
mov qword [rdi + 0x10], 0
jne 0x14000733c
mov byte [rdi + 0x18], 1
jmp 0x14000733c
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x80070507000000ed
mov qword [rsi + 8], rax
test r15b, r15b
jne 0x140007265
jmp 0x14000726a
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007050700000131
mov qword [rsi + 8], rax
test r12b, r12b
jne 0x140007347
jmp 0x14000734c