Function at 0x180106e40
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x180157688]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xe8], 0
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xec], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xd8], 0
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x128], 0
jne 0x180106eed
mov dword [rsp + 0xe8], 0x57
jmp 0x180107127
mov rcx, qword [rsp + 0x120]
call fcn.180104710
lea rdx, [rsp + 0xc0]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0xec], eax
cmp dword [rsp + 0xec], 0
jne 0x180106f32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xe8], eax
jmp 0x180107127
mov eax, dword [rsp + 0xec]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x120]
call fcn.180104710
mov r9, qword [rsp + 0xd0]
mov r8d, dword [rsp + 0xec]
mov edx, dword [rsp + 0xc0]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
je 0x180106fa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xe8], eax
jmp 0x180107127
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xc8]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsp + 0xd0]
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
je 0x180106fe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xe8], eax
jmp 0x180107127
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax]
shr rax, 0x10
movzx eax, ax
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0xc8]
mov ecx, dword [rcx]
and rcx, 0xffff
movzx ecx, cx
and rcx, 0xffff
movzx ecx, cx
shl ecx, 0x10
or eax, ecx
mov dword [rsp + 0x30], eax
lea rax, [0x180133560]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.180003110
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xd0]
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
je 0x180107087
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xe8], eax
jmp 0x180107127
cmp qword [rsp + 0xe0], 0
jne 0x1801070a7
mov dword [rsp + 0xe8], 0xe8
jmp 0x180107127
cmp dword [rsp + 0xd8], 0x40
ja 0x18010711c
mov eax, dword [rsp + 0xd8]
mov r8, qword [rsp + 0xe0]
mov rdx, rax
mov rcx, qword [rsp + 0x128]
call fcn.180003250
mov dword [rsp + 0x34], 0
jmp 0x1801070e4
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xd8]
cmp dword [rsp + 0x34], eax
jae 0x18010711a
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x180107118
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x128]
mov word [rcx + rax*2], 0x2c
jmp 0x1801070da
jmp 0x180107127
mov dword [rsp + 0xe8], 8
cmp qword [rsp + 0xd0], 0
je 0x18010714f
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x100]
call fcn.180124250
add rsp, 0x110
pop rdi
ret