Function at 0x18007bd70
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x180152040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
mov rbx, 0xffffffffffffffff
cmp eax, 0x103
ja 0x18007be4d
lea rax, [rbp - 0x70]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18007bde0
lea rsi, [rdi + 0x68]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.180033a00
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18007be30
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
cmp rdx, 0xf
jbe 0x18007be1f
mov rsi, qword [rsi]
movzx eax, word [0x18012bd98]
mov byte [rsi + rcx], al
mov byte [rsi + rcx + 1], 0
jmp 0x18007be4d
mov qword [rsp + 0x20], 1
lea r9, [0x18012bd98]
mov edx, 1
mov rcx, rsi
call fcn.180011300
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea r9, [rdi + 8]
cmp qword [r9 + 0x18], 0xf
jbe 0x18007be6f
mov r9, qword [r9]
lea r8, [rdi + 0x68]
cmp qword [r8 + 0x18], 0xf
jbe 0x18007be7d
mov r8, qword [r8]
lea rdx, [0x18012ccb8]
lea rcx, [rbp + 0xa0]
call fcn.18002baa0
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
test eax, eax
je 0x18007bffe
mov ecx, esi
call fcn.1800ecc54
mov r14, rax
mov r9, rax
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x18007bff6
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.StringFileInfo040904B0ProductVersion
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x18007bff6
cmp dword [rsp + 0x30], esi
je 0x18007bff6
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x18007bff6
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
nop
inc rbx
cmp byte [rdx + rbx], sil
jne 0x18007bf30
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.180008430
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.180098fe0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x18007bf97
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007bf92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18007bf92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ec9a4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 0xf
jbe 0x18007bfb4
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x18007bff6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x18
lea r8, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0xa0], rax
mov eax, dword [rsp + 0x48]
mov qword [rdi + 0xa8], rax
mov rcx, r14
call fcn.1800ec9a4
mov eax, dword [rsp + 0x78]
mov dword [rdi + 0x8c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rdi + 0x90], eax
mov eax, dword [rbp - 0x80]
mov dword [rdi + 0x94], eax
mov eax, dword [rbp - 0x7c]
mov dword [rdi + 0x98], eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800ec4b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret