Function at 0x140028f70
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea r14, [0x1403f2580]
mov qword [rsp + 0x40], r14
call fcn.1400284f0
mov rcx, rax
test rax, rax
jne 0x140028fd0
mov ecx, 0x80004005
call fcn.140028e20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x1403f2580], rax
call fcn.1400284f0
mov rcx, rax
test rax, rax
jne 0x140028ff9
mov ecx, 0x80004005
call fcn.140028e20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x1403f2588], rax
call fcn.1400284f0
mov rcx, rax
test rax, rax
jne 0x140029022
mov ecx, 0x80004005
call fcn.140028e20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x1403f2590], rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea r8d, [rax + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
je 0x140029075
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400292b8
xor eax, eax
mov qword [rbp - 0x78], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x78]
call fcn.140028050
nop
mov rcx, qword [rbp - 0x78]
or edi, 0xffffffff
cmp dword [rcx - 0x10], 0
je 0x140029100
lea edx, [rdi + 0x5d]
call fcn.14028e070
test rax, rax
jne 0x1400290a8
mov eax, edi
jmp 0x1400290b3
sub rax, qword [rbp - 0x78]
sar rax, 1
test eax, eax
je 0x1400290f4
lea r8d, [rax + 1]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.140028700
nop
mov rdx, rax
lea rcx, [0x1403f2588]
call fcn.1400287c0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400290f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbp - 0x78]
mov rcx, r14
call fcn.1400287c0
mov dword [rbp - 0x6c], 0
lea rdx, [rbp - 0x6c]
mov rcx, qword [0x1403f2580]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140029129
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140029269
xor eax, eax
mov qword [rbp - 0x58], rax
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.140028850
nop
mov rbx, qword [rbp - 0x58]
mov r9, rbx
mov r8d, esi
xor edx, edx
mov rcx, qword [0x1403f2580]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140029164
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002925b
mov dword [rbp - 0x70], 0
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x50]
lea rdx, [0x140327fc0]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140029286
cmp dword [rbp - 0x70], 4
jb 0x140029286
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call fcn.14028e7e0
mov rax, qword [rsp + 0x50]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rbp - 0x50]
call fcn.1400288c0
mov qword [rsp + 0x48], 0
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400291f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002925b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002925b
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x5c]
lea rdx, str._u__u__u__u
call fcn.140028930
lea rcx, [0x1403f2590]
cmp eax, 4
jne 0x140029250
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x60]
mov r8d, dword [rbp - 0x5c]
lea rdx, str._u._u._u._u
call fcn.140028af0
jmp 0x14002925b
mov rdx, qword [rsp + 0x48]
call fcn.140028f30
nop
test rbx, rbx
je 0x140029269
mov rcx, rbx
call fcn.14026e340
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400292b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400292b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test rbx, rbx
je 0x14002929b
mov rcx, rbx
call fcn.14026e340
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400292b8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rax, r14
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret