Function at 0x180006b20
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4c8]
sub rsp, 0x5a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x72]
call fcn.180011020
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180006bc7
lea rax, str.error_getting_exe_path
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.18000d188
lea rdx, [0x18002dc48]
lea rcx, [rsp + 0x40]
call fcn.18000d988
int3
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [rsp + 0x28], ebx
mov ecx, dword [0x180031de8]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xd
sub r8d, edx
cmp r8d, 5
jne 0x180006c0e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
test ebx, ebx
jne 0x180006c3f
lea rax, str.error_get_version_info_size
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.18000d188
lea rdx, [0x18002dc48]
lea rcx, [rsp + 0x40]
call fcn.18000d988
int3
mov rcx, rbx
call fcn.18000c0d0
mov r13, rax
mov qword [rsp + 0x58], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.180011020
call fcn.1800065a0
mov esi, 1
test al, al
jne 0x180006ccb
xor r13d, r13d
mov r12d, r13d
lea r10, [rbp + 0x180]
mov ebx, dword [0x180031de8]
nop dword [rax]
movzx r15d, bl
sub r15b, r12b
mov r11d, esi
mov r14d, 5
mov rcx, r13
mov r9d, esi
nop word [rax + rax]
inc r9d
inc rcx
cmp rcx, 0xe
jl 0x180006ca0
inc r11d
add r10, 0xe
dec r14
jne 0x180006c90
inc r12d
cmp r12d, 0xb
jl 0x180006c80
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov r9, r13
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x180006d11
lea rax, str.error_get_version_info
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.18000d188
lea rdx, [0x18002dc48]
lea rcx, [rsp + 0x40]
call fcn.18000d988
int3
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x38]
lea rdx, [0x180026d00]
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x180006dd8
mov r8d, dword [0x180031de8]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x11
jne 0x180006d74
dec r8d
mov dword [0x180031de8], r8d
cmp dword [rsp + 0x20], 0
je 0x180006d9b
mov rbx, qword [rsp + 0x38]
call fcn.180006500
mov r8d, dword [0x180031de8]
cmp dword [rbx], 0xfeef04bd
jne 0x180006d9b
movzx eax, word [rbx + 0xa]
mov dword [rdi + 0x58], eax
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 5
jne 0x180006dd8
cmp r8d, esi
jle 0x180006dd2
mov eax, r8d
cdq
idiv esi
inc esi
add esi, edx
cmp esi, r8d
jl 0x180006dc3
mov dword [0x180031de8], esi
mov rcx, r13
call fcn.18000d404
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.18000c100
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret