Function at 0x140020470
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rax - 0x58], 0
mov rsi, r9
mov r14, r8
mov dword [rax - 0x60], 0x2000000
mov r15, rdx
mov dword [rax - 0x68], 3
xor r9d, r9d
mov dword [rbp - 0x1c], 0
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400206e1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x1c]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x140020546
lea ecx, [rax + 5]
call fcn.14002bb50
test eax, eax
je 0x14002071d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x18], eax
mov r9d, 0x31
lea r8, str.mcshieldclienthotfix::GetFileVerison
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExemcshieldclienthotfix.h
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x2c]
lea rax, str.Failed_to_GetFileVersionInfoSize_of__s__error___d
mov qword [rsp + 0x20], rax
call fcn.140008410
jmp 0x14002071d
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400205ae
lea ecx, [rax + 5]
call fcn.14002bb50
test eax, eax
je 0x14002071d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x20], eax
lea r9d, [rbx + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
lea r8, str.mcshieldclienthotfix::GetFileVerison
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExemcshieldclienthotfix.h
lea rax, str.Failed_to_LocalAlloc_memory_of_size__d__error___d
mov qword [rsp + 0x20], rax
call fcn.1400116d0
jmp 0x14002071d
mov r8d, dword [rbp - 0x20]
mov r9, rbx
mov edx, dword [rbp - 0x1c]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1400205ff
lea ecx, [rax + 5]
call fcn.14002bb50
test eax, eax
je 0x140020674
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x18], eax
mov r9d, 0x3e
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_GetFileVersionInfo_of_file__s__error___d
jmp 0x140020657
lea r9, [rbp - 0x20]
mov qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
mov rcx, rbx
lea rdx, [0x140085440]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140020682
lea ecx, [rax + 5]
call fcn.14002bb50
test eax, eax
je 0x140020674
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x18], eax
mov r9d, 0x46
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_VerQueryValue_of_file__s__error__d
lea r8, str.mcshieldclienthotfix::GetFileVerison
mov qword [rsp + 0x20], rax
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExemcshieldclienthotfix.h
mov ecx, 5
call fcn.140008410
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14002071d
mov rcx, qword [rbp - 0x10]
mov rdi, qword [rbp + 0x40]
movzx eax, word [rcx + 0xa]
mov dword [r15], eax
movzx eax, word [rcx + 8]
mov dword [r14], eax
movzx eax, word [rcx + 0xe]
mov dword [rsi], eax
movzx eax, word [rcx + 0xc]
mov ecx, 1
mov dword [rdi], eax
call fcn.14002bb50
test eax, eax
je 0x1400206d4
mov qword [rsp + 0x48], rdi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
call fcn.1400215f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x14002071f
mov ecx, 1
call fcn.14002bb50
test eax, eax
je 0x14002071d
lea rax, [rbp + 0x20]
mov r9d, 0x2a
mov qword [rsp + 0x28], rax
lea r8, str.mcshieldclienthotfix::GetFileVerison
lea rax, str._s_doesnt_exist
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExemcshieldclienthotfix.h
mov qword [rsp + 0x20], rax
call fcn.140008340
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret