Function at 0x1400522d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
xor r15d, r15d
mov dword [rsp + 0x20], r15d
call fcn.140052120
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14005269f
mov r9d, 0x104
lea r8, [rbp + 0x90]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14005269f
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14005269f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
cmp rsi, 0x1000
jb 0x1400523b2
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400526cc
call fcn.140053b84
mov rcx, rax
test rax, rax
je 0x14005268e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400523ba
mov rcx, rsi
call fcn.140053b84
mov qword [rsp + 0x68], rax
lea rbx, [rax + rsi]
mov qword [rsp + 0x78], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], rbx
mov r9, qword [rsp + 0x68]
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140052659
mov qword [rsp + 0x60], r15
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x60]
lea rdx, [0x140069eec]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140052659
mov rax, qword [rsp + 0x60]
mov edi, dword [rax + 0x10]
mov r14d, dword [rax + 0x14]
mov ebx, edi
shr ebx, 0x10
mov esi, r14d
shr esi, 0x10
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140069cc0]
mov qword [rbp - 0x70], rax
lea rax, [0x140069b74]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], r12
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], r15
mov dword [rbp + 0x18], r15d
movzx edx, bx
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.140053420
movzx edx, di
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.140053420
movzx edx, si
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.140053420
movzx edx, r14w
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x20], 5
mov ecx, dword [rbp + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140052562
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax]
test rdx, rdx
je 0x140052562
mov rax, qword [rbp - 0x38]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x10]
cmovb rdx, qword [rbp + 0x10]
sub rdx, r9
jmp 0x14005258a
test cl, 4
jne 0x1400525c2
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400525c2
mov rax, qword [rbp - 0x40]
mov r9, qword [rax]
mov rax, qword [rbp - 8]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x1400525c2
lea rcx, [rsp + 0x28]
cmp rdx, 7
ja 0x1400525bc
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x28], r15w
jmp 0x1400525c2
call fcn.14004a490
nop
lea rdx, [rsp + 0x28]
lea rcx, [0x140074298]
call fcn.140049570
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140052619
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005393c
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r12
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call fcn.140053210
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov bl, 1
jmp 0x14005265b
xor bl, bl
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005269a
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052695
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052695
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005393c
movzx eax, bl
jmp 0x1400526a1
xor al, al
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400537a0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14003d300
int3