Function at 0x140034d5c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
test rdx, rdx
je 0x140035188
cmp word [rdx], r13w
je 0x1400351ab
lea edi, [r13 + 7]
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
lea r15, [rcx + 0x20]
mov qword [r15 + 0x18], rdi
mov qword [r15 + 0x10], r13
mov word [r15], r13w
mov qword [rcx + 0x40], r13
mov qword [rcx + 0x48], r13
lea r12, [rcx + 0x50]
mov qword [r12 + 0x18], rdi
mov qword [r12 + 0x10], r13
mov word [r12], r13w
lea r14, [rcx + 0x70]
mov qword [r14 + 0x18], rdi
mov qword [r14 + 0x10], r13
mov word [r14], r13w
mov dword [rsp + 0x20], 1
cmp word [rdx], r13w
jne 0x140034e12
mov r8d, r13d
jmp 0x140034e20
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r13w
jne 0x140034e16
call fcn.1400064dc
mov eax, 0x5c
mov word [rbp + 0x10], ax
lea r9d, [rax - 0x5b]
or r8, 0xffffffffffffffff
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.14001c83c
cmp rax, 0xffffffffffffffff
je 0x140034ec4
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea r8, [rax + 1]
or r9, 0xffffffffffffffff
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003cc4
mov dword [rsp + 0x20], 3
lea rax, [rsp + 0x70]
cmp rbx, rax
je 0x140034eac
cmp qword [rbx + 0x18], 8
jb 0x140034e93
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400067b8
cmp qword [rbp - 0x78], 8
jb 0x140034ec4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov dword [rbx + 0x90], r13d
lea rdx, [rbp + 0x18]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov edi, eax
mov dword [rbp + 0x10], edi
test eax, eax
jne 0x140034f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x715
je 0x1400350eb
cmp eax, 2
jne 0x140035139
jmp 0x1400350eb
mov qword [rsp + 0x78], r13
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r13, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400351ce
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140035116
mov r9, rax
mov r8d, dword [rbp + 0x10]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
je 0x1400350d7
mov rcx, rdi
call fcn.1400355e4
mov dword [rbp + 0x10], eax
lea r9, [0x1400df060]
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140035418
mov rsi, rax
cmp r15, rax
je 0x140034fd2
cmp qword [r15 + 0x18], 8
jb 0x140034fb5
mov rcx, qword [r15]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r15 + 0x18], 7
xor eax, eax
mov qword [r15 + 0x10], rax
mov word [r15], ax
mov rdx, rsi
mov rcx, r15
call fcn.1400067b8
cmp qword [rsp + 0x48], 8
jb 0x140034feb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea r9, [0x1400df0f0]
mov r15d, dword [rbp + 0x10]
mov r8d, r15d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140035418
mov rsi, rax
cmp r12, rax
je 0x140035046
cmp qword [r12 + 0x18], 8
jb 0x140035026
mov rcx, qword [r12]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r12 + 0x18], 7
xor eax, eax
mov qword [r12 + 0x10], rax
mov word [r12], ax
mov rdx, rsi
mov rcx, r12
call fcn.1400067b8
cmp qword [rsp + 0x48], 8
jb 0x14003505f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea r9, [0x1400df0d0]
mov r8d, r15d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140035418
mov rsi, rax
cmp r14, rax
je 0x1400350b1
cmp qword [r14 + 0x18], 8
jb 0x140035094
mov rcx, qword [r14]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r14 + 0x18], 7
xor eax, eax
mov qword [r14 + 0x10], rax
mov word [r14], ax
mov rdx, rsi
mov rcx, r14
call fcn.1400067b8
cmp qword [rsp + 0x48], 8
jb 0x1400350ca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea rdx, [rbx + 0x40]
mov rcx, rdi
call fcn.1400351f8
nop
mov r8, rdi
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400be5a0
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Call_to_HeapAlloc___returned_0
lea rcx, [rsp + 0x70]
call fcn.140034c20
lea rdx, [0x1401188a0]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, str.Call_to_GetFileVersionInfoSize___failed
lea rcx, [rsp + 0x30]
call fcn.1400062e8
nop
call fcn.14000abc8
mov r9d, edi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
call fcn.140023830
nop
mov rcx, rax
call fcn.140003b38
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140034c20
lea rdx, [0x1401188a0]
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Executable_parameter_is_NULL
lea rcx, [rsp + 0x30]
call fcn.140034c20
lea rdx, [0x1401188a0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, str.Executable_parameter_points_to_an_empty_string
lea rcx, [rsp + 0x30]
call fcn.140034c20
lea rdx, [0x1401188a0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, str.Call_to_GetProcessHeap___returned_0
lea rcx, [rbp - 0x30]
call fcn.140034c20
lea rdx, [0x1401188a0]
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll__CxxThrowException
int3