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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2430]
mov eax, 0x2530
call fcn.14003d0d0
sub rsp, rax
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x2420], rax
lea rdi, [rcx + 0x28]
xor esi, esi
mov ebx, 0x80004005
cmp qword [rdi], rsi
je 0x140027cc7
xor eax, eax
jmp 0x140027fee
mov r15d, 0x105
lea rdx, [rsp + 0x60]
mov r8d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140027fec
lea rcx, [rsp + 0x60]
call fcn.1400182b8
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rax
call fcn.140016f30
test eax, eax
js 0x140027fec
lea rcx, str.wmploc.dll
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
mov word [rbp + 0x13d0], si
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140027d53
mov r9d, 0x824
lea r8, [rbp + 0x13d0]
mov edx, 0x126b
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14d, 0x1048
cmp si, word [rbp + 0x13d0]
je 0x140027d79
mov edx, 0x5b
lea rcx, [rbp + 0x13d0]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x140027d8f
lea r8, str.https:__go.microsoft.com_fwlink__LinkId52492sv2
mov rdx, r14
lea rcx, [rbp + 0x13d0]
call fcn.1400014f8
lea rdx, [rsp + 0x40]
lea rcx, [0x140043308]
call fcn.14001a9e8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx ecx, word [rsp + 0x40]
lea r9, [rbp + 0x13d0]
mov dword [rsp + 0x30], eax
lea r8, str._sversion_slocale_xuserlocale_x
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x170]
lea rcx, [rbp + 0x380]
mov qword [rsp + 0x20], rax
mov rdx, r14
call fcn.1400017b4
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
or r12, 0xffffffffffffffff
cmp eax, r12d
je 0x140027e1f
mov r9d, eax
lea r8, str.geoid_x
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140001734
test eax, eax
js 0x140027e1f
lea r8, [rsp + 0x60]
mov rdx, r14
lea rcx, [rbp + 0x380]
call fcn.14000165c
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 4
test eax, eax
jne 0x140027f70
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TestParameter
mov dword [rsp + 0x44], 0x20a
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027ef9
cmp dword [rsp + 0x40], 1
jne 0x140027ef9
lea rcx, [rsp + 0x60]
jmp 0x140027ee7
cmp word [rax], 0x2d
lea rbx, [rax + 2]
cmovne rbx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wtol]
test eax, eax
je 0x140027ee5
lea r8, [0x140045ca8]
mov rdx, r14
lea rcx, [rbp + 0x380]
call fcn.14000165c
mov r8, rbx
lea rcx, [rbp + 0x380]
mov rdx, r14
call fcn.14000165c
xor ecx, ecx
lea rdx, [0x140045ca4]
call qword [sym.imp.msvcrt.dll_wcstok]
test rax, rax
jne 0x140027ea4
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Partner
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x44], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027f65
cmp dword [rsp + 0x40], r15d
jne 0x140027f65
mov eax, dword [rsp + 0x48]
lea r9, [rbp + 0x380]
lea r8, str._spartner_lu
mov dword [rsp + 0x20], eax
mov rdx, r14
lea rcx, [rbp + 0x380]
call fcn.1400017b4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.parchx64archx64
mov rdx, r14
lea rcx, [rbp + 0x380]
call fcn.14000165c
mov r14d, 2
test rdi, rdi
je 0x140028043
mov rcx, qword [rdi]
test rcx, rcx
je 0x140027fa5
call fcn.14003c408
mov qword [rdi], rsi
lea rax, [rbp + 0x380]
mov rbx, r12
inc rbx
cmp word [rax + rbx*2], si
jne 0x140027faf
inc rbx
mov rax, r14
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.14003c460
mov qword [rdi], rax
test rax, rax
jne 0x140028019
mov ebx, 0x8007000e
mov r8d, ebx
lea rdx, str.__Could_not_retrieve_service_information_URL:_0x_x._r_n
mov ecx, r14d
call fcn.1400168a8
mov eax, ebx
mov rcx, qword [rbp + 0x2420]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x2530]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r8, [rbp + 0x380]
mov rdx, rbx
mov rcx, rax
call fcn.140001470
mov ebx, eax
test eax, eax
jns 0x140028048
mov rcx, qword [rdi]
test rcx, rcx
je 0x140028048
call fcn.14003c408
mov qword [rdi], rsi
jmp 0x140028048
mov ebx, 0x80004003
test ebx, ebx
js 0x140027fda
mov r8, qword [rdi]
lea rdx, str.__Services_information_URL_is_:__S._r_n
mov ecx, r15d
call fcn.1400168a8
jmp 0x140027fec