Function at 0x140041938
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 [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, dword [0x14005933c]
cmp edx, 0xffffffff
je 0x140041987
test edx, edx
je 0x140041b9c
movzx eax, word [0x14005a7a8]
mov word [0x14005a79c], ax
jmp 0x140041b9c
xor ebx, ebx
mov dword [0x14005933c], ebx
call fcn.140041bcc
mov word [0x14005a7a8], ax
lea esi, [rbx + 1]
test ax, ax
je 0x1400419e1
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 0x140041add
mov eax, 0x800
test word [rbp + 0x35], ax
je 0x140041add
mov edx, esi
mov dword [0x14005933c], edx
jmp 0x140041ae3
mov ecx, 0x4a
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140041add
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 0x140041add
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 0x140041ab6
shl ecx, 4
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140041a95
add ecx, 0xffffffd0
jmp 0x140041aab
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x140041aa1
add ecx, 0xffffffc9
jmp 0x140041aab
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x140041ab0
add ecx, 0xffffffa9
movsx eax, dl
add ecx, eax
add r8, rsi
mov dl, byte [r8]
test dl, dl
jne 0x140041a86
and ecx, 0x3ff
cmp ecx, esi
je 0x140041ac9
cmp ecx, 0xd
jne 0x140041add
mov edx, esi
mov word [0x14005a7a8], cx
mov dword [0x14005933c], edx
jmp 0x140041b95
mov edx, dword [0x14005933c]
test edx, edx
jne 0x140041b8e
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 0x140041b84
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 [0x14005933c]
cmovb eax, esi
mov dword [0x14005933c], eax
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
mov edx, dword [0x14005933c]
test edx, edx
je 0x140041b9c
movzx ecx, word [0x14005a7a8]
mov word [0x14005a79c], cx
mov eax, edx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400017f0
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