Function at 0x14000499c
Capabilities:
Check os version
Get geographical location
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x8c8]
sub rsp, 0x9b0
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov ebx, ecx
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x802
call sub.msvcrt.dll_memset
xor r15d, r15d
movzx r14d, r15w
cmp ebx, 0x641
jb 0x140004a1d
mov r9d, 0x401
mov word [rsp + 0x20], r15w
lea r8, [rbp + 0x90]
mov edx, ebx
or rcx, 0xffffffffffffffff
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
mov edi, eax
test eax, eax
jne 0x140004af5
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rcx, str.KERNEL32
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004a81
lea rdx, str.GetUserDefaultUILanguage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004a78
call qword [0x14000a618]
movzx ecx, ax
mov r9d, 0xa
lea r8, [rsp + 0x58]
mov edx, 0x20001004
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
cmovne edi, dword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x30], r15
lea rax, [rbp + 0x90]
mov dword [rsp + 0x28], 0x401
mov r8d, ebx
movzx r9d, r14w
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140004ad2
add eax, 0xfffffffe
mov ecx, eax
add rcx, rcx
cmp rcx, 0x802
jae 0x140004caf
mov word [rbp + rcx + 0x90], r15w
jmp 0x140004af5
mov r9d, ebx
lea r8, str.Install_error__i
mov edx, 0x401
lea rcx, [rbp + 0x90]
call fcn.1400012d0
test eax, eax
js 0x140004c83
cmp dword [0x1400100ec], r15d
mov rcx, qword [0x14000fdd0]
jne 0x140004c26
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x140004c26
lea rax, [rsp + 0x68]
mov ebx, 0x11c
mov esi, 1
mov qword [rsp + 0x58], rax
mov r8d, ebx
mov dword [rsp + 0x60], esi
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140004bf1
cmp dword [rsp + 0x74], 6
jb 0x140004bf1
mov edx, 0x200
lea ecx, [rsi + 0x3f]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140004bf1
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x140004b8d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r9d, 0x100
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov dword [rsp + 0x60], r9d
mov edx, 0x1c
mov word [rsp + 0x20], r15w
or rcx, 0xffffffffffffffff
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
test eax, eax
je 0x140004bf1
mov r8, qword [rsp + 0x58]
lea r9, [rbp + 0x90]
mov rax, qword [0x14000e058]
xor edx, edx
mov qword [rsp + 0x38], r15
xor ecx, ecx
mov qword [rsp + 0x30], 0xfffe
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
call qword [0x14000a618]
test eax, eax
jns 0x140004c13
mov word [rsp + 0x28], r15w
lea rdx, [rbp + 0x90]
mov r9d, 0x10
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.msi.dll_MsiProvideQualifiedComponentExW]
cmp dword [rsp + 0x60], esi
jle 0x140004c83
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004c83
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004c83
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000fdd0]
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x20], r15
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000fdd0]
lea r9, [rsp + 0x50]
mov r8d, 4
mov qword [rsp + 0x20], r15
lea rdx, [0x14000bb20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140008d90
lea r11, [rsp + 0x9b0]
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
call fcn.140008f64
int3