Function at 0x140029bb0
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov r14d, r15d
mov dword [rbp - 0x31], r15d
lea rdx, [rbp - 0x31]
mov rcx, qword [rcx]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x140029ef2
mov ecx, ebx
call fcn.140160c3c
mov r13, rax
test rax, rax
je 0x140029ef2
mov r9, rax
mov r8d, ebx
mov edx, dword [rbp - 0x31]
mov rcx, qword [rdi]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140029eea
cmp dword [0x14029e124], r15d
je 0x140029cca
mov dword [rbp - 0x2d], r15d
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x39], r15d
mov edi, r15d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140029cc3
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029c97
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x2d]
call rax
movzx eax, word [rbp - 0x39]
mov dword [rbp - 0x39], eax
lea edi, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x140029cc3
mov eax, dword [rbp - 0x2d]
cmp eax, 6
jne 0x140029cb4
cmp dword [rbp - 0x29], 4
je 0x140029cb9
jmp 0x140029cc3
cmp eax, 0xa
jb 0x140029cc3
mov dword [0x1402b4cbc], 1
mov dword [0x14029e124], r15d
cmp dword [0x1402b4cbc], r14d
je 0x140029e92
cmp dword [0x14029e120], r14d
je 0x140029db1
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029daa
xor ecx, ecx
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], rcx
lea rcx, [rbp - 0x19]
call rax
mov rax, qword [rbp - 0x19]
cmp ax, 0xc
ja 0x140029d4a
mov ecx, 0x1240
bt ecx, eax
jae 0x140029d4a
mov dword [0x1402b4cb8], 1
jmp 0x140029daa
mov word [rbp - 0x3d], r15w
mov word [rbp - 0x41], r15w
lea rcx, [0x1401fa368]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140029da1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x3d]
call rbx
test eax, eax
je 0x140029da1
mov ecx, 0xaa64
mov eax, r15d
cmp word [rbp - 0x41], cx
sete al
jmp 0x140029da4
mov eax, r15d
mov dword [0x1402b4cb8], eax
mov dword [0x14029e120], r15d
cmp dword [0x1402b4cb8], r14d
jne 0x140029e92
mov dword [rbp - 0x35], r15d
lea r9, [rbp - 0x35]
lea r8, [rbp - 0x49]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140029e92
mov rdi, r15
mov eax, dword [rbp - 0x35]
test rax, 0xfffffffffffffffc
jbe 0x140029e92
mov r12d, 0xffffffff
nop dword [rax]
call fcn.14000a6a0
mov rcx, rax
test rax, rax
je 0x14002a0ab
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rbp - 0x69], rax
mov rax, qword [rbp - 0x49]
movzx r9d, word [rax + rdi*4 + 2]
movzx r8d, word [rax + rdi*4]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rbp - 0x69]
call fcn.140024500
mov qword [rbp - 0x59], r15
mov dword [rbp - 0x25], r15d
lea r9, [rbp - 0x25]
lea r8, [rbp - 0x59]
mov rbx, qword [rbp - 0x69]
mov rdx, rbx
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140029f1c
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140029e7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc rdi
mov eax, dword [rbp - 0x35]
shr rax, 2
cmp rdi, rax
jb 0x140029e00
mov qword [rbp - 0x51], r15
mov dword [rbp - 0x21], r15d
lea r9, [rbp - 0x21]
lea r8, [rbp - 0x51]
lea rdx, [0x1401f991c]
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140029eea
mov r8, qword [rbp - 0x51]
movzx eax, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx r9d, word [r8 + 8]
movzx r8d, word [r8 + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, [0x1401f9920]
mov rcx, rsi
call fcn.140024500
mov r14d, 1
mov rcx, r13
call fcn.1401606e8
mov eax, r14d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rbp - 0x25]
mov rdx, qword [rbp - 0x59]
mov rcx, rsi
call fcn.14000cfe0
xor r15b, r15b
mov rdx, qword [rsi]
movsxd rdi, dword [rdx - 0x10]
xor eax, eax
test edi, edi
jle 0x140029fd6
lea r8d, [rax + 0x2e]
nop dword [rax]
nop dword [rax + rax]
cdqe
lea r14, [rax + rax]
lea rax, [rdx + r14]
cmp word [rax], 0x2c
jne 0x140029f9f
test r15b, r15b
jne 0x140029f97
mov r15b, 1
test edi, edi
js 0x14002a0b6
mov rdx, qword [rsi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140029f97
mov edx, edi
mov rcx, rsi
call fcn.14000cf20
mov rdx, qword [rsi]
mov r8d, 0x2e
lea rax, [rdx + r14]
mov word [rax], r8w
add rax, 2
sub rax, rdx
sar rax, 1
cmp eax, edi
jl 0x140029f50
test r15b, r15b
je 0x140029fd6
test edi, edi
js 0x14002a0c1
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x14002a0c1
mov dword [rax - 0x10], edi
mov rax, qword [rsi]
xor r15d, r15d
mov word [rax + rdi*2], r15w
jmp 0x140029fd9
xor r15d, r15d
mov rax, qword [rsi]
movsxd rdi, dword [rax - 0x10]
test edi, edi
js 0x14002a0cc
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edi
or ecx, edx
jge 0x14002a006
mov edx, edi
mov rcx, rsi
call fcn.14000cf20
mov rax, qword [rsi]
mov rdx, rax
lea r11, [rax + rdi*2]
cmp rax, r11
jae 0x14002a04c
lea r10, [rax + 2]
cmp word [rax], 0x20
je 0x14002a044
lea r9, [rdx + 2]
mov r8, r15
cmp rdx, r9
je 0x14002a044
cmp r8, 1
jae 0x14002a044
movzx ecx, word [rax]
mov word [rdx], cx
add rax, 2
add rdx, 2
inc r8
cmp rdx, r9
jne 0x14002a028
mov rax, r10
cmp r10, r11
jb 0x14002a012
mov word [rdx], r15w
sub rax, rdx
sar rax, 1
sub edi, eax
js 0x14002a0a0
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x14002a0a0
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
mov r14d, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, r14d
jg 0x14002a08e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
cmp dword [rax - 0x10], 0
jne 0x140029eea
jmp 0x140029e92
mov ecx, 0x80070057
call fcn.14000ca90
nop
mov ecx, 0x80004005
call fcn.14000ca90
nop
mov ecx, 0x80070057
call fcn.14000ca90
int3
mov ecx, 0x80070057
call fcn.14000ca90
int3
mov ecx, 0x80070057
call fcn.14000ca90
int3