Function at 0x180007fd8
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]
mov rbp, rax
test rax, rax
jne 0x18000800f
lea eax, [rbx + 0xb]
jmp 0x180008256
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, r12
call fcn.180019610
test eax, eax
jne 0x1800080bf
mov r13, qword [rsp + 0x70]
xor edx, edx
xor edi, edi
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1800080aa
mov rcx, qword [0x180059270]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1800080aa
mov r8d, dword [rsp + 0x70]
mov r9, rax
xor edx, edx
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180008098
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
lea rdx, [0x18004e880]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180008098
mov rax, qword [rsp + 0x20]
mov edi, dword [rax + 8]
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059270]
mov r8, r13
xor edx, edx
shr edi, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [0x180058750]
xor eax, eax
xor ecx, ecx
mov rdx, r8
cmp dil, byte [rdx]
jb 0x1800080d9
lea rax, [rcx + rcx*4]
add rax, r8
inc ecx
add rdx, 5
cmp ecx, 3
jb 0x1800080cd
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [0x1800591e0], rax
call fcn.180004ea4
test eax, eax
jne 0x18000814c
cmp dword [rsp + 0x78], 0xc
jne 0x18000814c
mov r8, qword [rsp + 0x70]
mov eax, dword [rbp + 0x58]
cmp dword [r8], eax
jne 0x18000812c
cmp qword [r8 + 4], rbx
je 0x18000812c
mov eax, dword [rbp + 0x50]
cmp qword [r8 + 4], rax
jae 0x18000812c
mov rax, qword [r8 + 4]
lea rbx, [r12 + rax]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x18000814c
mov r9, qword [0x1800591e0]
jmp 0x180008273
mov eax, dword [rbp + 0x58]
lea rdx, [0x18005e126]
mov rcx, r12
mov qword [0x1800591d8], r14
mov qword [0x1800591cc], r12
mov dword [0x1800591c8], eax
call fcn.18001a870
mov r11, rax
test rax, rax
je 0x180008254
lea rdx, [0x18005e12f]
mov rcx, r12
call fcn.18001a870
mov rdx, rax
test rax, rax
je 0x180008254
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
mov ebp, eax
test eax, eax
je 0x180008254
mov r9, qword [0x1800591e0]
cmp qword [r8 + rdi], 0
jne 0x18000824c
movzx r10d, byte [r9 + 4]
lea rax, [r8 + r10*8]
cmp qword [rax + rdi + 8], 4
jne 0x18000824c
lea rcx, [r8 + r10*8 + 0x20]
cmp rcx, rbp
ja 0x18000824c
xor ecx, ecx
lea rbx, [r8 + rdi + 8]
test r10d, r10d
jle 0x18000821e
mov rdx, rbx
cmp qword [rdx], rsi
jb 0x18000821e
lea rax, [rsi + r13]
cmp qword [rdx], rax
ja 0x18000821e
inc ecx
add rdx, 8
cmp ecx, r10d
jl 0x180008205
cmp ecx, r10d
jne 0x18000824c
xor edx, edx
lea r11, [rbx + r10*8 + 8]
xor ecx, ecx
cmp qword [r11 + rcx*8], rsi
jb 0x180008247
lea rax, [rsi + r13]
cmp qword [r11 + rcx*8], rax
ja 0x180008247
inc rcx
inc edx
cmp rcx, 2
jl 0x18000822c
cmp edx, 2
je 0x18000826d
inc r8d
cmp r8d, ebp
jb 0x1800081d4
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 [0x180058570], rcx
movzx eax, byte [r9 + 2]
lea rcx, [rbx + rax*8]
mov qword [0x180058598], rcx
movzx eax, byte [r9 + 3]
lea rcx, [rbx + rax*8]
mov qword [0x1800585c0], rcx
lea rcx, [0x180058568]
call fcn.18001841c
test eax, eax
jne 0x180008256
lea rcx, [0x180058590]
xor edx, edx
call fcn.18001841c
test eax, eax
jne 0x180008256
lea rcx, [0x1800585b8]
xor edx, edx
call fcn.18001841c
test eax, eax
jne 0x180008256
mov rax, qword [0x1800585d8]
lea rcx, [0x180058630]
mov r8, r12
mov qword [0x180058720], rax
mov rax, qword [0x180058588]
mov edx, 6
mov qword [0x180058728], rax
mov rax, qword [0x1800585b0]
mov qword [0x180058730], rax
mov rax, qword [0x1800593b0]
or dword [rax + 0x34], 1
call fcn.18001869c
jmp 0x180008256