Function at 0x18000c850
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x40], 0
cmp qword [rdx + 0x18], 0x10
jb 0x18000c89f
mov rcx, qword [rdx]
jmp 0x18000c8a2
mov rcx, rdx
lea rdx, [rbp - 0x38]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [rbp - 0x70], eax
test eax, eax
jne 0x18000c92b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.180006c40
nop
mov r8, rax
lea rdx, str.GetFileVersionInfoSizeA_failed:
lea rcx, [rsp + 0x50]
call fcn.18000e850
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c8e5
mov rax, qword [rax]
lea rcx, vtable.std::exception.0
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.180097068
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x50], rax
lea rdx, [0x1800fd130]
lea rcx, [rbp - 0x50]
call fcn.1800996e4
nop
xor ecx, ecx
mov qword [rbp - 0x68], rcx
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.18000ea40
nop
cmp qword [rdi + 0x18], 0x10
jb 0x18000c947
mov rdi, qword [rdi]
mov rbx, qword [rbp - 0x68]
mov r9, rbx
mov r8d, dword [rbp - 0x70]
mov edx, dword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x18000c9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180006c40
nop
mov r8, rax
lea rdx, str.GetFileVersionInfoA_failed:
lea rcx, [rsp + 0x70]
call fcn.18000e850
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000c994
mov rax, qword [rax]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 1
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x50]
call fcn.180097068
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x20], rax
lea rdx, [0x1800fd130]
lea rcx, [rsp + 0x20]
call fcn.1800996e4
nop
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x58]
lea rdx, [0x1800e3268]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x18000ca43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180006c40
nop
mov r8, rax
lea rdx, str.VerQueryValueA_failed:
lea rcx, [rsp + 0x50]
call fcn.18000e850
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800017e0
lea rdx, [0x1800fd130]
lea rcx, [rsp + 0x20]
call fcn.1800996e4
nop
cmp dword [rbp - 0x70], 0
jne 0x18000ca6c
lea rdx, str.The_file_does_not_contain_a_version_number.
lea rcx, [rsp + 0x20]
call fcn.180001850
lea rdx, [0x1800fd130]
lea rcx, [rsp + 0x20]
call fcn.1800996e4
int3
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x30]
call fcn.180098a80
lea rcx, [rbp - 0x30]
call fcn.1800035c0
nop
mov rdi, qword [rbp - 0x58]
movzx edx, word [rdi + 0xa]
lea rcx, [rbp - 0x30]
call fcn.18000cdb0
mov rcx, rax
call fcn.18000e630
mov rcx, rax
mov rax, qword [rbp - 0x58]
movzx edx, word [rax + 0x10]
call fcn.18000cdb0
mov rcx, rax
call fcn.18000e630
mov rcx, rax
movzx edx, word [rdi + 0xe]
call fcn.18000cdb0
mov rcx, rax
call fcn.18000e630
mov rcx, rax
movzx edx, word [rdi + 0xc]
call fcn.18000cdb0
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.180003510
nop
lea rcx, [rbp - 0x30]
call fcn.1800029a0
nop
test rbx, rbx
je 0x18000cafc
mov rcx, rbx
call fcn.180077fd4
mov rax, rsi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.180077fb0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret