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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x530
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400caba8]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r13, rdx
mov r12, rcx
and word [rsp + 0x30], 0
xor ebx, ebx
lea rcx, [0x14009e900]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
lea rdx, [0x14009e8e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ebp, [rbx + 1]
test rax, rax
je 0x1400565a5
call rax
mov word [rsp + 0x30], ax
movzx edx, ax
mov ecx, edx
mov edi, 0x3ff
and ecx, edi
movzx ebx, cx
and dx, 0xfc00
movzx ecx, dx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x58], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x5c], eax
lea ebx, [rbp + 1]
lea rdx, str.GetSystemDefaultUILanguage
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140056714
call rax
mov word [rsp + 0x30], ax
movzx ecx, ax
mov eax, ecx
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x60], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x64], eax
lea ebx, [rbp + 3]
jmp 0x140056714
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x14005669a
and qword [rsp + 0xb0], rbx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056714
mov dword [rsp + 0x4c], 0x20
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005668a
cmp dword [rsp + 0x48], ebp
jne 0x14005668a
lea r8, [rsp + 0x50]
lea rdx, [0x14009e85c]
lea rcx, [rsp + 0xb8]
call fcn.1400766d0
cmp eax, ebp
jne 0x14005668a
mov eax, dword [rsp + 0x50]
mov word [rsp + 0x30], ax
movzx ecx, ax
mov eax, ecx
mov edi, 0x3ff
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x58], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x5c], eax
mov ebx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140056714
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140056714
and word [rsp + 0x30], bx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [0x140055c68]
mov r8, rbp
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
movzx r11d, word [rsp + 0x30]
test r11w, r11w
je 0x140056714
movzx ecx, r11w
mov eax, ecx
mov edi, 0x3ff
and eax, edi
movzx ebx, ax
and cx, 0xfc00
movzx ecx, cx
or ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x58], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [rsp + 0x5c], eax
mov ebx, 2
movsxd rax, ebx
mov dword [rsp + rax*4 + 0x58], 0x800
add ebx, ebp
and word [rsp + 0x2ea], 0
and word [rsp + 0x2e8], 0
mov r8d, 0x105
lea rdx, [rsp + 0xe0]
lea rsi, [0x140000000]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14005675c
xor eax, eax
jmp 0x1400569fa
mov edi, 0x38
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400758d0
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], 0x3e8
mov qword [rsp + 0xa8], rsi
mov dword [rsp + 0x7c], 0x88
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x38]
call fcn.140055c80
nop
mov rdx, qword [0x1400d2268]
test rdx, rdx
je 0x1400567df
mov rax, qword [rsp + 0x38]
cmp rax, 0xffffffffffffffff
jne 0x14005680e
lea rcx, [rsp + 0x78]
call rdx
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
setne cl
test cl, cl
je 0x14005680e
jmp 0x1400567e4
mov rax, qword [rsp + 0x38]
mov r8, qword [0x1400d2278]
test r8, r8
je 0x14005680e
cmp rax, 0xffffffffffffffff
je 0x14005680e
cmp qword [rsp + 0x40], 0
jne 0x14005680e
lea rdx, [rsp + 0x40]
mov rcx, rax
call r8
mov rax, qword [rsp + 0x38]
xor edi, edi
movsxd rbp, ebx
test ebx, ebx
jle 0x1400569b3
mov ecx, dword [rsp + rdi*4 + 0x58]
cmp ecx, 0x800
jne 0x14005686a
lea r8, [0x14009e818]
mov edx, 4
lea rcx, [rsp + 0xb0]
call fcn.140072cc0
test eax, eax
je 0x14005688a
cmp eax, 0xc
je 0x14005693c
cmp eax, 0x16
je 0x140056936
cmp eax, 0x22
je 0x140056936
cmp eax, 0x50
jne 0x140056930
jmp 0x14005688a
mov r9d, 4
lea r8, [rsp + 0xb0]
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14005691e
call fcn.140075620
mov esi, dword [rax]
call fcn.140075620
and dword [rax], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9, r12
mov edx, 0x112
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x2f0]
call fcn.1400755a0
mov ebx, eax
call fcn.140075620
cmp dword [rax], 0
je 0x1400568f0
call fcn.140075620
cmp dword [rax], 0
je 0x1400568f7
cmp dword [rax], 0xc
je 0x140056958
cmp dword [rax], 0x16
je 0x14005694d
cmp dword [rax], 0x22
je 0x14005694d
cmp dword [rax], 0x50
jne 0x140056942
jmp 0x1400568f7
call fcn.140075620
mov dword [rax], esi
cmp ebx, 0xffffffff
je 0x140056917
cmp ebx, 0x112
jae 0x140056917
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
jmp 0x140056919
xor ebx, ebx
test rbx, rbx
jne 0x140056963
add rdi, 1
cmp rdi, rbp
jge 0x1400569ae
jmp 0x14005681b
call fcn.140046214
int3
call fcn.140046214
int3
call fcn.1400461cc
int3
mov ecx, 0x80004005
call fcn.140010c90
int3
mov ecx, 0x80070057
call fcn.140010c90
int3
mov ecx, 0x8007000e
call fcn.140010c90
nop
mov rax, qword [0x1400d2270]
test rax, rax
je 0x1400569a9
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400569a9
mov r8, qword [0x1400d2280]
test r8, r8
je 0x1400569a7
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400569a7
and qword [rsp + 0x40], 0
xor ecx, ecx
call r8
mov rax, qword [0x1400d2270]
mov rcx, qword [rsp + 0x38]
call rax
mov rax, rbx
jmp 0x1400569fa
mov rax, qword [rsp + 0x38]
mov r8, qword [0x1400d2270]
test r8, r8
je 0x1400569f8
cmp rax, 0xffffffffffffffff
je 0x1400569f8
mov r9, qword [0x1400d2280]
test r9, r9
je 0x1400569f2
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400569f2
and qword [rsp + 0x40], 0
xor ecx, ecx
call r9
mov r8, qword [0x1400d2270]
mov rax, qword [rsp + 0x38]
mov rcx, rax
call r8
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140072370
mov rbx, qword [rsp + 0x570]
add rsp, 0x530
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret