Function at 0x180006f84
Capabilities:
Access pe header
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, rdx
mov r12, rcx
xor ebx, ebx
xor dil, dil
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
mov rbp, rax
jne 0x180006fbb
lea eax, [rbx + 0xb]
jmp 0x18000720b
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, r12
call fcn.1800165ac
test eax, eax
jne 0x18000706b
mov r13, qword [rsp + 0x70]
xor edx, edx
xor edi, edi
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [rsp + 0x70], eax
je 0x180007056
mov rcx, qword [0x18002f7f8]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180007056
mov r8d, dword [rsp + 0x70]
mov r9, rax
xor edx, edx
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180007044
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
lea rdx, [0x1800296ec]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180007044
mov rax, qword [rsp + 0x20]
mov edi, dword [rax + 8]
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18002f7f8]
mov r8, r13
xor edx, edx
shr edi, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [0x18002f0d0]
xor eax, eax
xor ecx, ecx
mov rdx, r8
cmp dil, byte [rdx]
jb 0x180007085
lea rax, [rcx + rcx*4]
add rax, r8
add ecx, 1
add rdx, 5
cmp ecx, 3
jb 0x180007079
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [0x18002f7f0], rax
call fcn.1800045b8
test eax, eax
jne 0x1800070f9
cmp dword [rsp + 0x78], 0xc
jne 0x1800070f9
mov r8, qword [rsp + 0x70]
mov eax, dword [rbp + 0x58]
cmp dword [r8], eax
jne 0x1800070d9
cmp qword [r8 + 4], rbx
je 0x1800070d9
mov eax, dword [rbp + 0x50]
cmp qword [r8 + 4], rax
jae 0x1800070d9
mov rax, qword [r8 + 4]
lea rbx, [r12 + rax]
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1800070f9
mov r9, qword [0x18002f7f0]
jmp 0x180007228
mov eax, dword [rbp + 0x58]
lea rdx, [0x1800331aa]
mov rcx, r12
mov qword [0x18002f7e8], r14
mov qword [0x18002f7dc], r12
mov dword [0x18002f7d8], eax
call fcn.180017868
test rax, rax
mov r11, rax
je 0x180007209
lea rdx, [0x1800331b3]
mov rcx, r12
call fcn.180017868
test rax, rax
mov rdx, rax
je 0x180007209
mov esi, dword [rax + 0xc]
mov eax, dword [rax + 0x10]
mov edi, dword [r11 + 0xc]
add rsi, r12
cmp dword [rdx + 8], eax
cmova eax, dword [rdx + 8]
add rdi, r12
mov r13d, eax
mov eax, dword [r11 + 0x10]
cmp dword [r11 + 8], eax
cmova eax, dword [r11 + 8]
xor r8d, r8d
test eax, eax
mov ebp, eax
je 0x180007209
mov r9, qword [0x18002f7f0]
cmp qword [r8 + rdi], 0
jne 0x1800071fc
movzx r10d, byte [r9 + 4]
lea rax, [r8 + r10*8]
cmp qword [rax + rdi + 8], 4
jne 0x1800071fc
lea rcx, [r8 + r10*8 + 0x20]
cmp rcx, rbp
ja 0x1800071fc
xor ecx, ecx
test r10d, r10d
lea rbx, [r8 + rdi + 8]
jle 0x1800071cc
mov rdx, rbx
cmp qword [rdx], rsi
jb 0x1800071cc
lea rax, [rsi + r13]
cmp qword [rdx], rax
ja 0x1800071cc
add ecx, 1
add rdx, 8
cmp ecx, r10d
jl 0x1800071b2
cmp ecx, r10d
jne 0x1800071fc
xor edx, edx
lea r11, [rbx + r10*8 + 8]
xor ecx, ecx
cmp qword [r11 + rcx*8], rsi
jb 0x1800071f7
lea rax, [rsi + r13]
cmp qword [r11 + rcx*8], rax
ja 0x1800071f7
add rcx, 1
add edx, 1
cmp rcx, 2
jl 0x1800071da
cmp edx, 2
je 0x180007222
add r8d, 1
cmp r8d, ebp
jb 0x180007181
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ebx, r8d
add rbx, rdi
movzx eax, byte [r9 + 1]
xor edx, edx
lea rcx, [rbx + rax*8]
mov qword [0x18002eef0], rcx
movzx eax, byte [r9 + 2]
lea rcx, [rbx + rax*8]
mov qword [0x18002ef18], rcx
movzx eax, byte [r9 + 3]
lea rcx, [rbx + rax*8]
mov qword [0x18002ef40], rcx
lea rcx, [0x18002eee8]
call fcn.180015588
test eax, eax
jne 0x18000720b
lea rcx, [0x18002ef10]
xor edx, edx
call fcn.180015588
test eax, eax
jne 0x18000720b
lea rcx, [0x18002ef38]
xor edx, edx
call fcn.180015588
test eax, eax
jne 0x18000720b
mov rax, qword [0x18002ef58]
lea rcx, [0x18002efb0]
mov r8, r12
mov qword [0x18002f0a0], rax
mov rax, qword [0x18002ef08]
mov edx, 6
mov qword [0x18002f0a8], rax
mov rax, qword [0x18002ef30]
mov qword [0x18002f0b0], rax
mov rax, qword [0x18002f910]
or dword [rax + 0x34], 1
call fcn.180015804
jmp 0x18000720b