Function at 0x140004b58
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor ebx, ebx
mov r13, rcx
mov qword [rsp + 0x30], rbx
call fcn.1400045d0
mov dword [0x140016078], eax
xor edx, edx
and eax, 0x20
mov rcx, r13
or eax, 2
mov edi, ebx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400050a7
test byte [0x140016078], 0x20
jne 0x1400050a9
lea rax, [rsp + 0x30]
mov r9d, 0x104
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x190]
mov rdx, r13
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
nop dword [rax + rax]
test eax, eax
je 0x140005098
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x140004c2c
lea rax, [rbp + 0x190]
mov r15d, ebx
mov qword [rsp + 0x30], rax
jmp 0x140004c37
lea r15, [rbp + 0x190]
mov word [rax - 2], bx
xor r9d, r9d
lea rdx, [0x14000c620]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
je 0x140004eda
mov eax, dword [0x140016078]
test al, 4
je 0x140004f3d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx r14d, ax
mov r12d, 0x404
mov eax, 0xc04
cmp r14w, r12w
jne 0x140004cdb
mov r9d, 0x20
lea r8, [rbp + 0x150]
mov ecx, r12d
mov r14d, eax
lea edx, [r9 - 0x18]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
je 0x140004cdb
mov r8d, 3
lea rdx, [0x14000c68c]
lea rcx, [rbp + 0x150]
call qword [sym.imp.msvcrt.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
je 0x140004cdb
movzx r14d, r12w
lea r9, [rbp - 0x10]
movzx ecx, r14w
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.140004ae0
test eax, eax
je 0x140004ed1
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x140004d20
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004d23
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
test r9, r9
je 0x140004d4d
lea r8, [rbp + 0xa0]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004d50
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
cmp word [rbp - 0x10], bx
je 0x140004d84
test r9, r9
je 0x140004d78
lea r8, [rbp - 0x10]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov rdi, rax
jmp 0x140004d7b
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
mov eax, 0xc04
cmp r14w, ax
je 0x140004cd7
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
nop dword [rax + rax]
movzx r12d, ax
cmp ax, r14w
je 0x140004e5c
lea r9, [rbp - 0x10]
movzx ecx, ax
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.140004ae0
test eax, eax
je 0x140004eda
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x140004df1
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004df4
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
test r9, r9
je 0x140004e1e
lea r8, [rbp + 0xa0]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004e21
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
cmp word [rbp - 0x10], bx
je 0x140004e61
test r9, r9
je 0x140004e4e
lea r8, [rbp - 0x10]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004e51
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
jmp 0x140004e61
mov r9, qword [rsp + 0x30]
mov ecx, 0x409
cmp cx, r14w
je 0x140004eb6
cmp cx, r12w
je 0x140004eb6
xor r9d, r9d
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.140004ae0
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x140004eaa
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004ead
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
test r9, r9
je 0x140004ece
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov rdi, rax
jmp 0x140004ed1
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
test sil, 1
je 0x140005093
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
call fcn.1400045d0
test al, 0x38
je 0x140005071
mov rax, qword [rsp + 0x30]
lea r8, [0x14000c698]
mov r9, r15
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.140004410
xor r8d, r8d
lea rcx, [rbp + 0x190]
lea edx, [r8 + 1]
call fcn.1400044e0
jmp 0x140005090
test al, 3
je 0x140004eda
call fcn.1400048bc
lea r9, [rbp - 0x10]
movzx ecx, ax
lea r8, [rbp + 0xa0]
movzx r14d, ax
lea rdx, [rsp + 0x40]
call fcn.140004ae0
test eax, eax
je 0x140004eda
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x140004f8c
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
test rdi, rdi
jne 0x14000505d
test r9, r9
je 0x140004fb6
lea r8, [rbp + 0xa0]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004fb9
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
cmp word [rbp - 0x10], bx
je 0x140004fee
test r9, r9
je 0x140004fe6
lea r8, [rbp - 0x10]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140004fe9
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
mov ecx, 0x409
cmp cx, r14w
je 0x140005039
xor r9d, r9d
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.140004ae0
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x140005031
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x140005034
mov rdi, rbx
test rdi, rdi
jne 0x14000505d
test r9, r9
je 0x140005051
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140004848
mov rdi, rax
jmp 0x140005054
mov rdi, rbx
test rdi, rdi
je 0x140004eda
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rax, rdi
jmp 0x1400050a9
call fcn.1400045d0
and eax, 0x26
mov rcx, r13
setne bl
xor edx, edx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov rax, rsi
jmp 0x1400050a9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140007d40
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret