Function at 0x14003a520
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, dword [0x14005161c]
cmp edx, 0xffffffff
je 0x14003a56f
test edx, edx
je 0x14003a784
movzx eax, word [0x140053870]
mov word [0x140053864], ax
jmp 0x14003a784
xor ebx, ebx
mov dword [0x14005161c], ebx
call fcn.14003a7b4
mov word [0x140053870], ax
lea esi, [rbx + 1]
test ax, ax
je 0x14003a5c9
movzx ecx, ax
lea r9d, [rbx + 0x10]
lea r8, [rbp + 0x27]
lea edx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
je 0x14003a6c5
mov eax, 0x800
test word [rbp + 0x35], ax
je 0x14003a6c5
mov edx, esi
mov dword [0x14005161c], edx
jmp 0x14003a6cb
mov ecx, 0x4a
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x14003a6c5
xor eax, eax
mov dword [rbp + 7], 0xc
mov qword [rbp + 0x17], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov dword [rbp + 0x1f], eax
mov r9d, 0x20019
lea rax, [rbp + 0xf]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14003a6c5
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x17]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
mov byte [rbp + 0x22], bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov dl, byte [rbp + 0x17]
lea r8, [rbp + 0x17]
mov ecx, ebx
jmp 0x14003a69e
shl ecx, 4
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14003a67d
add ecx, 0xffffffd0
jmp 0x14003a693
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14003a689
add ecx, 0xffffffc9
jmp 0x14003a693
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x14003a698
add ecx, 0xffffffa9
movsx eax, dl
add ecx, eax
add r8, rsi
mov dl, byte [r8]
test dl, dl
jne 0x14003a66e
and ecx, 0x3ff
cmp ecx, esi
je 0x14003a6b1
cmp ecx, 0xd
jne 0x14003a6c5
mov edx, esi
mov word [0x140053870], cx
mov dword [0x14005161c], edx
jmp 0x14003a77d
mov edx, dword [0x14005161c]
test edx, edx
jne 0x14003a776
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov qword [rsp + 0x58], rbx
lea rdx, str.static
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExW]
nop dword [rax + rax]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
test eax, eax
je 0x14003a76c
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
nop dword [rax + rax]
bt eax, 0x16
mov rcx, rdi
mov eax, dword [0x14005161c]
cmovb eax, esi
mov dword [0x14005161c], eax
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
mov edx, dword [0x14005161c]
test edx, edx
je 0x14003a784
movzx ecx, word [0x140053870]
mov word [0x140053864], cx
mov eax, edx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret