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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8a0]
sub rsp, 0x9a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x890], rax
mov ebx, ecx
xor r12d, r12d
lea rcx, [rbp + 0x82]
mov word [rbp + 0x80], r12w
xor edx, edx
mov r8d, 0x800
call sub.msvcrt.dll_memset
movzx r15d, r12w
cmp ebx, 0x641
jb 0x140004c3c
mov r9d, 0x401
mov word [rsp + 0x20], r12w
lea r8, [rbp + 0x80]
mov edx, ebx
or rcx, 0xffffffffffffffff
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
mov esi, eax
test eax, eax
jne 0x140004d1d
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rcx, str.KERNEL32
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140004ca9
lea rdx, str.GetUserDefaultUILanguage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140004ca0
mov rcx, rax
call qword [0x14000a410]
call r14
movzx ecx, ax
lea r8, [rsp + 0x48]
mov r9d, 0xa
mov edx, 0x20001004
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
cmovne esi, dword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x30], r12
lea rax, [rbp + 0x80]
mov dword [rsp + 0x28], 0x401
mov r8d, ebx
movzx r9d, r15w
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140004cfa
add eax, 0xfffffffe
mov ecx, eax
add rcx, rcx
cmp rcx, 0x802
jae 0x140004edb
mov word [rbp + rcx + 0x80], r12w
jmp 0x140004d1d
mov r9d, ebx
lea r8, str.Install_error__i
mov edx, 0x401
lea rcx, [rbp + 0x80]
call fcn.1400012e0
test eax, eax
js 0x140004eb0
cmp dword [0x14000f780], r12d
mov rcx, qword [0x14000f6e8]
jne 0x140004e53
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x140004e53
lea rax, [rsp + 0x58]
mov ebx, 0x11c
mov edi, 1
mov qword [rsp + 0x48], rax
mov r8d, ebx
mov dword [rsp + 0x50], edi
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140004e1e
cmp dword [rsp + 0x64], 6
jb 0x140004e1e
mov edx, 0x200
lea ecx, [rdi + 0x3f]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140004e1e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x140004db5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r9d, 0x100
mov qword [rsp + 0x48], rbx
mov r8, rbx
mov dword [rsp + 0x50], r9d
mov edx, 0x1c
mov word [rsp + 0x20], r12w
or rcx, 0xffffffffffffffff
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
test eax, eax
je 0x140004e1e
mov rbx, qword [0x14000e078]
mov rcx, rbx
call qword [0x14000a410]
mov r8, qword [rsp + 0x48]
lea r9, [rbp + 0x80]
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x30], 0xfffe
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
call rbx
test eax, eax
jns 0x140004e40
mov word [rsp + 0x28], r12w
lea rdx, [rbp + 0x80]
mov r9d, 0x10
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.msi.dll_MsiProvideQualifiedComponentExW]
cmp dword [rsp + 0x50], edi
jle 0x140004eb0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004eb0
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004eb0
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000f6e8]
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x20], r12
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000f6e8]
lea r9, [rsp + 0x40]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [0x14000b5d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140009220
lea r11, [rsp + 0x9a0]
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.1400094c8
int3