Function at 0x140040b20
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x178], rax
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x40], ebx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140040b57
mov rcx, qword [rcx]
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x140040c74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x140040c10
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x140040b86
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rdi + 0x10]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov rbx, rax
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_module_version.cc
mov r9d, 0x1f
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea rcx, [rsp + 0x50]
call fcn.14002db60
mov rcx, rax
lea rdx, str.GetFileVersionInfoSize:
call fcn.140009610
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140040bff
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000a0e0
mov ebx, 3
test bl, 2
je 0x140040c22
and ebx, 0xfffffffd
lea rcx, [rsp + 0x50]
call fcn.14002df10
test bl, 1
je 0x140040c6d
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x140040c6d
mov rcx, qword [rsp + 0x158]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040c68
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040c68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
xor al, al
jmp 0x140040e34
mov rcx, rbp
call fcn.1400d4a80
cmp qword [rdi + 0x18], 8
mov rbx, rax
mov rcx, rdi
jb 0x140040c8c
mov rcx, qword [rdi]
mov r9, rbx
mov r8d, ebp
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140040d8f
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x140040cae
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rdi + 0x10]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov rdi, rax
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_module_version.cc
mov r9d, 0x26
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea rcx, [rsp + 0x50]
call fcn.14002db60
mov rcx, rax
lea rdx, str.GetFileVersionInfo:
call fcn.140009610
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140040d27
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.14000a0e0
lea rcx, [rsp + 0x50]
call fcn.14002df10
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x140040df4
mov rcx, qword [rsp + 0x158]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d82
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040d82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
xor dil, dil
jmp 0x140040e23
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [0x1400e175c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140040df9
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_module_version.cc
mov r9d, 0x30
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea rcx, [rsp + 0x50]
call fcn.14002db60
mov rcx, rax
lea rdx, str.VerQueryValue
call fcn.140009610
lea rcx, [rsp + 0x50]
call fcn.14002df10
xor dil, dil
jmp 0x140040e23
mov rax, qword [rsp + 0x48]
mov dil, 1
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rax + 0x30]
mov dword [rsi + 0x30], eax
mov eax, dword [rsi + 0x18]
and dword [rsi + 0x1c], eax
test rbx, rbx
je 0x140040e30
mov rcx, rbx
call fcn.1400d4a4c
movzx eax, dil
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400d4b20
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret