Function at 0x1400a7870
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x338], rbx
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, r8
mov r15, rdx
mov qword [rbp - 0x60], rdx
mov r13, rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x48], r8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str.VarFileInfoTranslation
test rdx, 0xffffffffffff0000
jne 0x1400a7914
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x1400a7925
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004fb0
jmp 0x1400a7925
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rsp + 0x50]
call fcn.14000c510
nop
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.StringFileInfo040904e4_
test rdx, 0xffffffffffff0000
jne 0x1400a7972
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x1400a7983
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004fb0
jmp 0x1400a7983
mov r8d, 0x19
lea rcx, [rsp + 0x40]
call fcn.14000c510
nop
mov rax, qword [r14]
or rsi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jne 0x1400a79c4
lea rcx, [rbp - 0x78]
call fcn.1400a3220
nop
mov rdx, rax
mov rcx, r14
call fcn.14000fc40
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a79c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rcx, qword [r14]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
jne 0x1400a7a4e
lea rdx, [0x140117ea0]
mov rcx, r13
call fcn.14000fdc0
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7a0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7a2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400a7a46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r13
jmp 0x1400a7ef0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000fcd0
nop
mov r12, qword [rsp + 0x60]
mov qword [rbp - 0x68], r12
mov r9, r12
mov r8d, edi
xor edx, edx
mov rcx, qword [r14]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400a7b14
lea rdx, [0x140117ea0]
mov rcx, r13
call fcn.14000fdc0
mov dword [rsp + 0x30], 1
cmp qword [rsp + 0x60], 0
je 0x1400a7ac0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7aef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7b0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400a7a2b
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400a7b67
cmp dword [rsp + 0x48], 4
jne 0x1400a7b67
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
mov eax, ecx
shr eax, 0x10
movzx r9d, cx
mov dword [rsp + 0x20], eax
lea r8, str.StringFileInfo_04X_04X_
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCR100.dll_swprintf_s]
jmp 0x1400a7b87
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r9d, ax
lea r8, str.StringFileInfo_04X04B0_
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCR100.dll_swprintf_s]
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x40]
test rax, 0xffffffffffff0000
jne 0x1400a7bdb
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x1400a7cda
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140004fb0
jmp 0x1400a7cda
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400a7c51
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400a7cda
cmp dword [rdx + 0x10], eax
jge 0x1400a7c24
cmp dword [rbx - 0xc], eax
jge 0x1400a7c19
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x1400a7cda
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7c3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
jmp 0x1400a7cda
mov r15d, dword [rbx - 0x10]
lea r12, [rbp - 0x40]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x1400a7c6e
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400a7c90
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001b30
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x1400a7cb5
lea r8, [rbx + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400a7cbf
lea r8, [rbp - 0x40]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400a7ee5
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r15 + rbx], ax
mov r12, qword [rbp - 0x68]
mov r15, qword [rbp - 0x60]
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140005090
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400a7e07
mov r8, r15
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14000fac0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rdx, qword [rax]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueW
test eax, eax
sete dil
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7d54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1400a7e07
lea rdx, [0x140117ea0]
mov rcx, r13
call fcn.14000fdc0
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7d94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rsp + 0x60], 0
je 0x1400a7db1
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7de2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7e02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400a7a2b
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.14000fdc0
nop
mov rcx, qword [rbp - 0x80]
add rcx, 0xffffffffffffffe8
call fcn.140001b90
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7e52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7e72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rsp + 0x60], 0
je 0x1400a7e8f
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7ec0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a7ee0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400a7a2b
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400d6f80
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret