Function at 0x140003ee0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea r14, [0x140081360]
mov qword [rbp - 0x58], r14
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x140003f3e
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140081360], rax
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x140003f67
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140081368], rax
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x140003f90
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140081370], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea r8d, [rax + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
je 0x140003fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004285
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.1400042c0
nop
mov rcx, qword [rsp + 0x30]
or edi, 0xffffffff
cmp dword [rcx - 0x10], 0
je 0x1400040c5
lea edx, [rdi + 0x5d]
call fcn.140024be0
test rax, rax
jne 0x140004013
mov eax, edi
jmp 0x140004022
mov rdx, qword [rsp + 0x30]
sub rax, rdx
sar rax, 1
test eax, eax
je 0x140004069
lea r8d, [rax + 1]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140005b50
nop
mov rdx, rax
lea rcx, [0x140081368]
call fcn.140005c60
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004064
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx - 0x18]
mov rbx, qword [0x140081360]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400040c5
cmp dword [rbx + 0x10], 0
jl 0x1400040b9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400040b9
call fcn.1400035a0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400040ac
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [0x140081360], rax
jmp 0x1400040c5
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140006460
mov dword [rsp + 0x3c], 0
lea rdx, [rsp + 0x3c]
mov rcx, qword [0x140081360]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x1400040ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004234
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140005ef0
nop
mov rbx, qword [rsp + 0x60]
mov r9, rbx
mov r8d, esi
xor edx, edx
mov rcx, qword [0x140081360]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140004125
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004226
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x68]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004252
cmp dword [rsp + 0x38], 4
jb 0x140004252
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call fcn.140022cd0
mov rax, qword [rsp + 0x68]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rbp - 0x50]
call fcn.140006010
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400041b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004226
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004226
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x4c]
lea rdx, str._u__u__u__u
call fcn.1400065a0
lea rcx, [0x140081370]
cmp eax, 4
jne 0x14000421b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x4c]
lea rdx, str._u._u._u._u
call fcn.140005ec0
jmp 0x140004226
mov rdx, qword [rsp + 0x50]
call fcn.140006550
nop
test rbx, rbx
je 0x140004234
mov rcx, rbx
call fcn.1400210e8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140004285
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140004285
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test rbx, rbx
je 0x140004267
mov rcx, rbx
call fcn.1400210e8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140004285
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.140021430
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