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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140015a45
mov eax, 0x80004003
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rcx + 0x50], 0
jne 0x140015a55
add rcx, 0xffffffffffffff90
call fcn.140015450
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140015a70
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400188e0
mov eax, 0x80004005
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r13, rdx
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140018912
mov rax, r14
jmp 0x140018923
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rsp + 0xa8], rax
cmp qword [rdi], rsi
je 0x140018940
test rax, rax
jne 0x140018940
mov ecx, 0x8007000e
call fcn.140002460
nop
lea rcx, str.WebServices
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rdx, str.WebServices
lea rcx, [rsp + 0xa8]
call fcn.14000c020
test eax, eax
jns 0x140018970
mov ecx, eax
call fcn.140002460
int3
mov rbp, r14
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x90], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018b0c
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x90], r14d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, str.CountryCode
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018af4
mov eax, dword [rsp + 0xa0]
cmp eax, 1
je 0x140018a17
cmp eax, 2
jne 0x140018af4
mov edi, dword [rsp + 0x90]
shr edi, 1
mov ecx, edi
mov eax, 2
mul rcx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r12, rax
lea eax, [rdi + rdi]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, str.CountryCode
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018aa0
mov eax, dword [rsp + 0xa0]
cmp eax, 1
je 0x140018a8c
cmp eax, 2
jne 0x140018aa0
test r12, r12
je 0x140018aa0
cmp dword [rsp + 0x90], 0
jne 0x140018aa0
mov word [r12], r14w
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140018ae5
test r12, r12
jne 0x140018abe
mov rax, r14
jmp 0x140018ad7
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
jne 0x140018ad7
mov ecx, 0x8007000e
call fcn.140002460
int3
mov qword [r13], rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140018aea
mov esi, 0x80004005
mov rcx, r12
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x140018af9
mov esi, 0x80004005
test rbp, rbp
je 0x140018b11
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, r14
jmp 0x140018b11
mov esi, 0x80004005
test rbp, rbp
je 0x140018b20
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret