Function at 0x1400d2ab0
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r8
mov qword [rsp + 0x30], r8
mov r14, rdx
mov r13, rcx
call fcn.1400a86f0
test r13, r13
lea rbx, [rax + 0x140]
jne 0x1400d2b04
or dword [rbx + 0x10], 0x104
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rbx + 0x24], eax
mov dword [rbx + 0x20], eax
jmp 0x1400d2cc7
lea rax, [r13 + 0x40]
mov qword [rsp + 0x98], rbp
mov qword [rbx], r13
test rax, rax
mov qword [rsp + 0x40], r12
mov qword [rbx + 8], rax
je 0x1400d2b90
cmp byte [rax], 0
je 0x1400d2b90
mov esi, reloc.OLEAUT32.dll_SafeArrayAccessData
mov ecx, 1
xor ebp, ebp
lea r15, [0x140000000]
nop
nop
test ecx, ecx
je 0x1400d2b8b
mov rcx, qword [rbx + 8]
lea eax, [rbp + rsi]
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov r12, rdi
add r12, r12
mov rdx, qword [r15 + r12*8 + 0x105d70]
call fcn.1400dfbe0
test eax, eax
mov ecx, eax
jne 0x1400d2b7b
lea rax, [r15 + r12*8 + 0x105d78]
mov qword [rbx + 8], rax
jmp 0x1400d2b87
test eax, eax
jns 0x1400d2b84
lea esi, [rdi - 1]
jmp 0x1400d2b87
lea ebp, [rdi + 1]
cmp ebp, esi
jle 0x1400d2b40
mov r15, qword [rsp + 0x30]
mov rax, qword [rbx]
mov dword [rbx + 0x10], 0
test rax, rax
je 0x1400d2c5f
cmp byte [rax], 0
je 0x1400d2c5f
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400d2bc4
cmp byte [rax], 0
je 0x1400d2bc4
mov rcx, rbx
call fcn.1400d2980
jmp 0x1400d2bcc
mov rcx, rbx
call fcn.1400d2a30
cmp dword [rbx + 0x10], 0
jne 0x1400d2cba
mov esi, 0x40
mov ecx, 1
xor ebp, ebp
test ecx, ecx
je 0x1400d2c3d
mov rcx, qword [rbx]
lea eax, [rbp + rsi]
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
lea rax, [0x140000000]
mov r12, rdi
add r12, r12
mov rdx, qword [rax + r12*8 + 0x105960]
call fcn.1400dfbe0
test eax, eax
mov ecx, eax
jne 0x1400d2c29
lea rax, [0x140000000]
lea rax, [rax + r12*8 + 0x105968]
mov qword [rbx], rax
jmp 0x1400d2c35
test eax, eax
jns 0x1400d2c32
lea esi, [rdi - 1]
jmp 0x1400d2c35
lea ebp, [rdi + 1]
cmp ebp, esi
jle 0x1400d2be2
test ecx, ecx
jne 0x1400d2cba
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400d2c55
cmp byte [rax], 0
je 0x1400d2c55
mov rcx, rbx
call fcn.1400d2980
jmp 0x1400d2cba
mov rcx, rbx
call fcn.1400d2a30
jmp 0x1400d2cba
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x1400d2ca7
cmp byte [rdi], 0
je 0x1400d2ca7
or rcx, 0xffffffffffffffff
xor eax, eax
mov edx, 1
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 3
lea rcx, [0x1400d2280]
sete al
mov dword [rbx + 0x1c], eax
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [rbx + 0x10], 4
jne 0x1400d2cba
mov dword [rbx + 0x10], 0
jmp 0x1400d2cba
mov dword [rbx + 0x10], 0x104
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rbx + 0x24], eax
mov dword [rbx + 0x20], eax
mov rbp, qword [rsp + 0x98]
mov r12, qword [rsp + 0x40]
cmp dword [rbx + 0x10], 0
je 0x1400d2e5d
test r13, r13
je 0x1400d2d34
lea rax, [r13 + 0x80]
test rax, rax
je 0x1400d2d34
cmp byte [rax], 0
je 0x1400d2d34
lea rdi, [0x140105ef8]
mov rsi, rax
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
je 0x1400d2d34
lea rdi, [0x140105ef4]
mov rsi, rax
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400d2d5a
mov ecx, dword [rbx + 0x24]
mov r9d, 8
lea r8, [rsp + 0x30]
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d2e5d
lea rax, [rsp + 0x30]
jmp 0x1400d2d5a
mov ecx, dword [rbx + 0x24]
lea r8, [rsp + 0x30]
mov r9d, 8
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d2e5d
lea rax, [rsp + 0x30]
mov rcx, rax
call fcn.1400dd5a0
test eax, eax
mov edi, eax
je 0x1400d2e5d
cmp eax, 0xfde8
je 0x1400d2e5d
cmp eax, 0xfde9
je 0x1400d2e5d
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1400d2e5d
mov ecx, dword [rbx + 0x20]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1400d2e5d
test r14, r14
je 0x1400d2dc4
movzx eax, word [rbx + 0x20]
mov word [r14], ax
movzx eax, word [rbx + 0x24]
mov word [r14 + 4], di
mov word [r14 + 2], ax
test r15, r15
je 0x1400d2e56
cmp word [r14], 0x814
jne 0x1400d2e07
lea r8, str.Norwegian_Nynorsk
mov edx, 0x40
mov rcx, r15
call fcn.1400bb9d0
test eax, eax
je 0x1400d2e22
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call fcn.1400a8c10
jmp 0x1400d2e22
mov ecx, dword [rbx + 0x20]
mov r9d, 0x40
mov r8, r15
mov edx, 0x1001
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d2e5d
mov ecx, dword [rbx + 0x24]
lea r8, [r15 + 0x40]
mov edx, 0x1002
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d2e5d
mov r9d, 0xa
lea rdx, [r15 + 0x80]
mov ecx, edi
lea r8d, [r9 + 6]
call fcn.1400e00f0
mov eax, 1
jmp 0x1400d2e5f
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a1970
add rsp, 0x48
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret