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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor ebx, ebx
movzx ebp, dx
mov r12, rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rcx
call fcn.1000321e0
mov dword [0x100084a10], eax
and al, 0x20
mov rcx, r12
neg al
sbb r8d, r8d
xor edx, edx
and r8d, 0x1e
add r8d, 2
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp rax, rbx
mov rsi, rax
jne 0x100031c1b
xor eax, eax
jmp 0x1000321ac
mov eax, dword [0x100084a10]
mov rdi, rbx
test al, 0x60
jne 0x1000321a9
test al, 0x78
mov r14d, ebx
mov r15d, ebx
setne r14b
test al, 0x66
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
setne r15b
lea rax, [rsp + 0x290]
mov r9d, 0x104
xor r8d, r8d
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebx
je 0x100031c14
mov rax, qword [rsp + 0x30]
cmp rax, rbx
jne 0x100031c89
lea rax, [rsp + 0x290]
mov r13, rbx
mov qword [rsp + 0x30], rax
jmp 0x100031c95
lea r13, [rsp + 0x290]
mov word [rax - 2], bx
lea r8, [0x10000ac60]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
cmp rax, rbx
je 0x100031f8e
cmp bp, bx
jne 0x10003213c
mov eax, dword [0x100084a10]
test al, 4
je 0x100031fe9
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, 0x404
movzx ebp, ax
jne 0x100031d27
mov r9d, 0x20
lea r8, [rsp + 0x250]
mov ecx, 0x404
lea edx, [r9 - 0x18]
mov bp, 0xc04
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x100031d27
lea rdx, [0x10000accc]
lea rcx, [rsp + 0x250]
mov r8d, 3
call sub.msvcrt.dll_wcsncmp
neg eax
sbb bp, bp
and bp, 0xf800
add bp, 0xc04
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
movzx ecx, bp
call fcn.1000323ec
cmp eax, ebx
je 0x10003212e
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x100031d7a
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031d7d
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp r9, rbx
je 0x100031db2
lea r8, [rsp + 0x1a0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031db5
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp word [rsp + 0xf0], bx
je 0x100031dfb
cmp r9, rbx
je 0x100031def
lea r8, [rsp + 0xf0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov rdi, rax
jmp 0x100031df2
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp bp, 0xc04
jne 0x100031e0b
mov bp, 0x404
jmp 0x100031d27
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp ax, bp
movzx r12d, ax
je 0x100031efc
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
movzx ecx, ax
call fcn.1000323ec
cmp eax, ebx
je 0x100031f89
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x100031e71
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031e74
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp r9, rbx
je 0x100031ea5
lea r8, [rsp + 0x1a0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031ea8
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp word [rsp + 0xf0], bx
je 0x100031f01
cmp r9, rbx
je 0x100031ee3
lea r8, [rsp + 0xf0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031ee6
mov rdi, rbx
cmp rdi, rbx
je 0x100031f01
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rdi
jmp 0x1000321ac
mov r9, qword [rsp + 0x30]
mov cx, 0x409
cmp bp, cx
je 0x100031f5b
cmp r12w, cx
je 0x100031f5b
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call fcn.1000323ec
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x100031f53
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100031f56
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp r9, rbx
je 0x100031f7d
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov rdi, rax
jmp 0x100031f80
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
mov r12, qword [rsp + 0x38]
test sil, 1
je 0x1000321a9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp r14d, ebx
je 0x100032192
mov rax, qword [rsp + 0x30]
lea r8, [0x10000acd8]
lea rcx, [rsp + 0x290]
mov r9, r13
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.10003186c
xor r8d, r8d
lea rcx, [rsp + 0x290]
lea edx, [r8 + 1]
call fcn.1000319d4
jmp 0x1000321a6
test al, 3
je 0x100031f8e
call fcn.100032464
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
movzx ecx, ax
movzx ebp, ax
call fcn.1000323ec
cmp eax, ebx
je 0x100031f8e
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x100032046
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
cmp rdi, rbx
jne 0x100031eeb
cmp r9, rbx
je 0x10003207b
lea r8, [rsp + 0x1a0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x10003207e
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp word [rsp + 0xf0], bx
je 0x1000320c9
cmp r9, rbx
je 0x1000320bd
lea r8, [rsp + 0xf0]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x1000320c0
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
mov cx, 0x409
cmp bp, cx
je 0x100032121
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call fcn.1000323ec
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x100032115
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov r9, qword [rsp + 0x30]
mov rdi, rax
jmp 0x100032118
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
cmp r9, rbx
je 0x10003212b
xor r8d, r8d
jmp 0x100032178
mov rdi, rbx
cmp rdi, rbx
jne 0x100031eeb
jmp 0x100031f8e
test byte [0x100084a10], 7
je 0x100031f8e
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
movzx ecx, bp
call fcn.1000323ec
cmp eax, ebx
je 0x100031f8e
mov r9, qword [rsp + 0x30]
cmp r9, rbx
je 0x10003212e
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.100031aa0
mov rdi, rax
jmp 0x10003212e
cmp r15d, ebx
mov rcx, r12
setne bl
xor edx, edx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov rax, rsi
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.10006bd80
mov rbx, qword [rsp + 0x500]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret