Function at 0x180007ce4
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 0x180007d1b
lea eax, [rbx + 0xb]
jmp 0x180007f6b
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, r12
call fcn.1800192cc
test eax, eax
jne 0x180007dcb
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 0x180007db6
mov rcx, qword [0x180052eb0]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180007db6
mov r8d, dword [rsp + 0x70]
mov r9, rax
xor edx, edx
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180007da4
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
lea rdx, [0x180049880]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180007da4
mov rax, qword [rsp + 0x20]
mov edi, dword [rax + 8]
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180052eb0]
mov r8, r13
xor edx, edx
shr edi, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [0x180052560]
xor eax, eax
xor ecx, ecx
mov rdx, r8
cmp dil, byte [rdx]
jb 0x180007de5
lea rax, [rcx + rcx*4]
add rax, r8
add ecx, 1
add rdx, 5
cmp ecx, 3
jb 0x180007dd9
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [0x180052e20], rax
call fcn.180004c94
test eax, eax
jne 0x180007e59
cmp dword [rsp + 0x78], 0xc
jne 0x180007e59
mov r8, qword [rsp + 0x70]
mov eax, dword [rbp + 0x58]
cmp dword [r8], eax
jne 0x180007e39
cmp qword [r8 + 4], rbx
je 0x180007e39
mov eax, dword [rbp + 0x50]
cmp qword [r8 + 4], rax
jae 0x180007e39
mov rax, qword [r8 + 4]
lea rbx, [r12 + rax]
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180007e59
mov r9, qword [0x180052e20]
jmp 0x180007f88
mov eax, dword [rbp + 0x58]
lea rdx, [0x1800581ba]
mov rcx, r12
mov qword [0x180052e18], r14
mov qword [0x180052e0c], r12
mov dword [0x180052e08], eax
call fcn.18001a6f4
test rax, rax
mov r11, rax
je 0x180007f69
lea rdx, [0x1800581c3]
mov rcx, r12
call fcn.18001a6f4
test rax, rax
mov rdx, rax
je 0x180007f69
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 0x180007f69
mov r9, qword [0x180052e20]
cmp qword [r8 + rdi], 0
jne 0x180007f5c
movzx r10d, byte [r9 + 4]
lea rax, [r8 + r10*8]
cmp qword [rax + rdi + 8], 4
jne 0x180007f5c
lea rcx, [r8 + r10*8 + 0x20]
cmp rcx, rbp
ja 0x180007f5c
xor ecx, ecx
test r10d, r10d
lea rbx, [r8 + rdi + 8]
jle 0x180007f2c
mov rdx, rbx
cmp qword [rdx], rsi
jb 0x180007f2c
lea rax, [rsi + r13]
cmp qword [rdx], rax
ja 0x180007f2c
add ecx, 1
add rdx, 8
cmp ecx, r10d
jl 0x180007f12
cmp ecx, r10d
jne 0x180007f5c
xor edx, edx
lea r11, [rbx + r10*8 + 8]
xor ecx, ecx
cmp qword [r11 + rcx*8], rsi
jb 0x180007f57
lea rax, [rsi + r13]
cmp qword [r11 + rcx*8], rax
ja 0x180007f57
add rcx, 1
add edx, 1
cmp rcx, 2
jl 0x180007f3a
cmp edx, 2
je 0x180007f82
add r8d, 1
cmp r8d, ebp
jb 0x180007ee1
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 [0x180052380], rcx
movzx eax, byte [r9 + 2]
lea rcx, [rbx + rax*8]
mov qword [0x1800523a8], rcx
movzx eax, byte [r9 + 3]
lea rcx, [rbx + rax*8]
mov qword [0x1800523d0], rcx
lea rcx, [0x180052378]
call fcn.1800182a8
test eax, eax
jne 0x180007f6b
lea rcx, [0x1800523a0]
xor edx, edx
call fcn.1800182a8
test eax, eax
jne 0x180007f6b
lea rcx, [0x1800523c8]
xor edx, edx
call fcn.1800182a8
test eax, eax
jne 0x180007f6b
mov rax, qword [0x1800523e8]
lea rcx, [0x180052440]
mov r8, r12
mov qword [0x180052530], rax
mov rax, qword [0x180052398]
mov edx, 6
mov qword [0x180052538], rax
mov rax, qword [0x1800523c0]
mov qword [0x180052540], rax
mov rax, qword [0x180052ff0]
or dword [rax + 0x34], 1
call fcn.180018524
jmp 0x180007f6b