Function at 0x140038ec8
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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, dword [0x140050334]
cmp edx, 0xffffffff
je 0x140038f17
test edx, edx
je 0x1400390f0
movzx eax, word [0x140051738]
mov word [0x14005172c], ax
jmp 0x1400390f0
xor ebx, ebx
mov dword [0x140050334], ebx
call fcn.140039120
mov word [0x140051738], ax
lea esi, [rbx + 1]
test ax, ax
je 0x140038f6b
movzx ecx, ax
lea r9d, [rbx + 0x10]
lea r8, [rbp + 0x27]
lea edx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14003904f
mov eax, 0x800
test word [rbp + 0x35], ax
je 0x14003904f
mov edx, esi
mov dword [0x140050334], edx
jmp 0x140039055
mov ecx, 0x4a
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14003904f
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]
test eax, eax
jne 0x14003904f
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]
mov rcx, qword [rbp + 0xf]
mov byte [rbp + 0x22], bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [rbp + 0x17]
lea r8, [rbp + 0x17]
mov ecx, ebx
jmp 0x140039028
shl ecx, 4
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140039007
add ecx, 0xffffffd0
jmp 0x14003901d
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x140039013
add ecx, 0xffffffc9
jmp 0x14003901d
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x140039022
add ecx, 0xffffffa9
movsx eax, dl
add ecx, eax
add r8, rsi
mov dl, byte [r8]
test dl, dl
jne 0x140038ff8
and ecx, 0x3ff
cmp ecx, esi
je 0x14003903b
cmp ecx, 0xd
jne 0x14003904f
mov edx, esi
mov word [0x140051738], cx
mov dword [0x140050334], edx
jmp 0x1400390e9
mov edx, dword [0x140050334]
test edx, edx
jne 0x1400390e2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
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]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400390d8
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x16
mov rcx, rdi
mov eax, dword [0x140050334]
cmovb eax, esi
mov dword [0x140050334], eax
call qword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x140050334]
test edx, edx
je 0x1400390f0
movzx ecx, word [0x140051738]
mov word [0x14005172c], cx
mov eax, edx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003c810
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