Function at 0x140160530
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1b8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp byte [rcx + 0x17], 0
jns 0x14016055c
mov rcx, qword [rdi]
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140160623
mov ebp, eax
mov ecx, eax
call fcn.1400dae4c
mov rsi, rax
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140160583
mov rcx, qword [rdi]
xor edx, edx
mov r8d, ebp
mov r9, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140160646
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x58]
mov qword [r8], rax
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x14018a618]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
setne dil
je 0x140160658
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm1
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x30], eax
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx], xmm0
mov eax, dword [rbx + 0x18]
and dword [rbx + 0x1c], eax
test rsi, rsi
je 0x140160605
mov rcx, rsi
call fcn.1400dae54
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400dc300
mov eax, edi
add rsp, 0x1b8
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.1400b3f70
test al, al
je 0x140160642
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x140160777
xor edi, edi
jmp 0x140160605
mov ecx, 1
call fcn.1400b3f70
test al, al
jne 0x1401606b6
xor edi, edi
jmp 0x1401605f8
mov ecx, 1
call fcn.1400b3f70
test al, al
je 0x1401605f8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinmodule_version.cc
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov r8d, 0x30
mov r9d, 1
call fcn.14012f9d0
lea rcx, [rsp + 0x80]
lea rdx, str.VerQueryValue
mov r8d, 0xd
call fcn.140113430
mov rcx, rbx
call fcn.14012fa50
jmp 0x1401605f8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinmodule_version.cc
lea rcx, [rsp + 0x70]
mov r8d, 0x26
mov r9d, 1
call fcn.14012f9d0
lea rcx, [rsp + 0x80]
lea rdx, str.GetFileVersionInfo:
mov r8d, 0x14
call fcn.140113430
mov rbx, rax
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140160708
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rax
test rax, rax
js 0x140160830
je 0x140160726
test rdi, rdi
je 0x140160843
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400ad480
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14016074c
mov r8, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rcx, rbx
mov rdx, rdi
call fcn.140113430
cmp byte [rsp + 0x6f], 0
jns 0x140160768
mov rcx, qword [rsp + 0x58]
call fcn.1400dae18
lea rcx, [rsp + 0x70]
call fcn.14012fa50
jmp 0x140160654
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinmodule_version.cc
lea rcx, [rsp + 0x70]
mov r8d, 0x1f
mov r9d, 1
call fcn.14012f9d0
lea rcx, [rsp + 0x80]
lea rdx, str.GetFileVersionInfoSize:
mov r8d, 0x18
call fcn.140113430
mov rsi, rax
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401607c9
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
test rax, rax
js 0x140160830
je 0x1401607df
test rdi, rdi
je 0x140160843
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400ad480
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140160805
mov r8, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rdi
call fcn.140113430
cmp byte [rsp + 0x6f], 0
jns 0x140160821
mov rcx, qword [rsp + 0x58]
call fcn.1400dae18
lea rcx, [rsp + 0x70]
call fcn.14012fa50
jmp 0x140160642
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140114030
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140114030
int3