Function at 0x1400cedf0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401d2800]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, rcx
xor r12d, r12d
xorps xmm6, xmm6
lea rax, str.HasWebView__
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], reloc.SHLWAPI.dll_SHCreateMemStream
call fcn.1400c6d20
test al, al
je 0x1400cf4fb
mov rdi, qword [rdi + 0x80]
mov qword [rbp - 0x28], r12
mov rax, qword [rdi]
mov rbx, qword [rax]
lea rcx, [rbp - 0x28]
call fcn.14000d400
mov r8, rax
lea rdx, [0x14015d1c0]
mov rcx, rdi
call rbx
nop
xorps xmm1, xmm1
xorps xmm0, xmm0
mov rcx, qword [rbp - 0x28]
test rcx, rcx
jne 0x1400cef03
mov dword [rbp - 0x50], 0x2d7
mov dword [rbp - 0x4c], 9
lea rbx, str.D:_a_work1_sdev_src_nhhostingwebhostwinWebViewInstance.cpp
mov qword [rbp - 0x48], rbx
lea rdi, str.void___cdecl_Microsoft::NativeHost::WebHostDepr::WebViewInstance::SetRequiredPermissions_void_
mov qword [rbp - 0x40], rdi
movdqa xmmword [rbp - 0x70], xmm0
mov rax, qword [0x1401d24a8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm1
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::destructor_void____ptr64]
jmp 0x1400cf438
mov qword [rbp - 0x30], r12
lea rax, str.webView13__get_Profile_profile_
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x20
mov rax, qword [rcx]
mov qword [rbp - 0x30], r12
lea rdx, [rbp - 0x30]
call qword [rax + 0x348]
mov dword [rsp + 0x40], eax
shr eax, 0x1f
test al, al
jne 0x1400cf47d
call qword [sym.imp.olknh.dll_struct_Microsoft::NativeHost::AppConfig::Settings_const____ptr64___cdecl_Microsoft::NativeHost::AppConfig::Get_void_]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140007070
nop
xorps xmm1, xmm1
xorps xmm0, xmm0
cmp qword [rbp - 0x10], 0
jne 0x1400cefd5
mov dword [rsp + 0x60], 0x2db
mov dword [rsp + 0x64], 9
lea rbx, str.D:_a_work1_sdev_src_nhhostingwebhostwinWebViewInstance.cpp
mov qword [rsp + 0x68], rbx
lea rdi, str.void___cdecl_Microsoft::NativeHost::WebHostDepr::WebViewInstance::SetRequiredPermissions_void_
mov qword [rsp + 0x70], rdi
movdqa xmmword [rbp - 0x50], xmm0
mov rax, qword [0x1401d24b0]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x70], xmm0
movdqa xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::destructor_void____ptr64]
jmp 0x1400cf3d4
mov qword [rbp - 0x80], r12
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rdi, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.14000d400
mov r8, rax
lea rdx, [0x14015d1e0]
mov rcx, rbx
call rdi
nop
lea rax, str.Unsupported_WebView2_API_version_found__failed_to_SetPermissionState
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x44
lea rax, str.profile4
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 8
lea rbx, str.D:_a_work1_sdev_src_nhhostingwebhostwinWebViewInstance.cpp
lea rdi, str.void___cdecl_Microsoft::NativeHost::WebHostDepr::WebViewInstance::SetRequiredPermissions_void_
mov rax, qword [rbp - 0x80]
test rax, rax
jne 0x1400cf0ca
mov dword [rsp + 0x60], 0x2de
mov dword [rsp + 0x64], 9
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rax, qword [0x1401d24b8]
movups xmm1, xmmword [rax]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
nop
mov byte [rsp + 0x44], 0
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.nh.dll_void___cdecl_Microsoft::NativeHost::ErrorChecks::LogCheckFailedMessage_struct_Microsoft::NativeHost::ErrorChecks::CheckFailureContext_const____ptr64__class_std::optional_int__]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::destructor_void____ptr64]
mov rax, qword [rbp - 0x80]
xorps xmm1, xmm1
xorps xmm0, xmm0
test rax, rax
jne 0x1400cf140
mov dword [rsp + 0x60], 0x2df
mov dword [rsp + 0x64], 9
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
movdqa xmmword [rbp - 0x50], xmm0
mov rax, qword [0x1401d24b8]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x70], xmm0
movdqa xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::destructor_void____ptr64]
jmp 0x1400cf3c4
mov esi, 1
mov dword [rbp], esi
mov dword [rbp + 4], esi
lea rax, str.MICROPHONE
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0xa
mov dword [rbp + 0x18], 3
mov dword [rbp + 0x1c], esi
lea rax, str.GEOLOCATION
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], SHCreateMemStream
mov dword [rbp + 0x30], 6
mov dword [rbp + 0x34], esi
lea rax, str.CLIPBOARD_READ
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0xe
mov dword [rbp + 0x48], 7
mov dword [rbp + 0x4c], esi
lea rax, str.MULTI_DOWNLOAD
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0xe
movdqu xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r12
movdqu xmmword [rsp + 0x70], xmm0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r12
lea ecx, [rsi + 0x27]
call fcn.14011ec0c
mov r15, rax
movaps xmm0, xmmword [rbp]
movups xmmword [rax + 0x10], xmm0
movsd xmm1, qword [rbp + 0x10]
movsd qword [rax + 0x20], xmm1
mov qword [rsp + 0x78], rax
mov r14, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rsi
lea rdi, [rbp + 0x18]
nop
mov qword [rsp + 0x48], r12
mov ecx, 0x28
call fcn.14011ec0c
mov rbx, rax
movups xmm0, xmmword [rdi]
movups xmmword [rax + 0x10], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rax + 0x20], xmm1
mov qword [r14], rax
mov qword [rax + 8], r14
mov qword [rsp + 0x48], r12
mov r14, rax
mov qword [rsp + 0x70], rax
inc rsi
mov qword [rsp + 0x68], rsi
add rdi, 0x18
lea rax, [rbp + 0x60]
cmp rdi, rax
jne 0x1400cf210
lea rax, [rbp - 0x60]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r12
mov ecx, 0x28
call fcn.14011ec0c
mov r14, rax
test rsi, rsi
jne 0x1400cf283
mov qword [rax], rax
mov qword [rax + 8], rax
jmp 0x1400cf291
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [r15 + 8], r14
mov qword [rbx], r14
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x60], r14
mov rdi, qword [rax]
cmp rdi, r14
je 0x1400cf388
lea r15, method.Microsoft::NativeHost::CBootHealthCheck.virtual_16
lea r13, method.Microsoft::NativeHost::CBootHealthCheck.virtual_16
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x78]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400b3400
nop
mov rcx, qword [rax]
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova r8, qword [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rdi + 0x14]
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call rsi
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cf315
mov qword [rsp + 0x40], r12
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
test ebx, ebx
jns 0x1400cf375
mov dword [rsp + 0x68], ebx
mov byte [rsp + 0x78], 6
movups xmm2, xmmword [rdi + 0x18]
mov byte [rbp - 0x38], 0xe
mov qword [rbp + 0x68], r15
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x70], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [rbp + 0x80], xmm1
mov qword [rbp + 0x88], r13
movups xmmword [rbp + 0x90], xmm2
movsd xmm0, qword [rbp - 0x38]
movsd qword [rbp + 0xa0], xmm0
lea rax, vtable.Microsoft::NativeHost::WebHostDepr::FailedToSetPermissionType.0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_void___cdecl_Microsoft::NativeHost::Log_struct_Microsoft::NativeHost::Logging::ILogEvent_const____ptr64_]
mov rax, qword [rdi]
mov rdi, rax
cmp rax, r14
jne 0x1400cf2c0
mov r14, qword [rbp - 0x60]
mov rax, qword [r14 + 8]
mov qword [rax], r12
mov rcx, qword [r14]
test rcx, rcx
je 0x1400cf3b5
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x28
call fcn.14011ec48
mov rcx, rbx
test rbx, rbx
jne 0x1400cf3a0
mov edx, 0x28
mov rcx, qword [rbp - 0x60]
call fcn.14011ec48
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400cf3d4
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1400cf417
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cf412
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cf412
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011ec48
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400cf438
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400cf448
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14011e980
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x60], 0x2d9
mov dword [rsp + 0x64], 9
lea rbx, str.D:_a_work1_sdev_src_nhhostingwebhostwinWebViewInstance.cpp
mov qword [rsp + 0x68], rbx
lea rdi, str.void___cdecl_Microsoft::NativeHost::WebHostDepr::WebViewInstance::SetRequiredPermissions_void_
mov qword [rsp + 0x70], rdi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
mov rax, qword [0x1401d23d8]
movups xmm1, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm1
movdqa xmmword [rbp - 0x50], xmm6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400b3980
nop
mov dword [rbp - 0x50], 0x2d5
mov dword [rbp - 0x4c], 9
lea rbx, str.D:_a_work1_sdev_src_nhhostingwebhostwinWebViewInstance.cpp
mov qword [rbp - 0x48], rbx
lea rdi, str.void___cdecl_Microsoft::NativeHost::WebHostDepr::WebViewInstance::SetRequiredPermissions_void_
mov qword [rbp - 0x40], rdi
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x50], xmm0
mov rax, qword [0x1401d21c8]
movups xmm1, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm1
movdqa xmmword [rbp - 0x70], xmm6
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x60]
call qword [sym.imp.nh.dll_public:_void___cdecl_Microsoft::NativeHost::ErrorChecks::CheckFailureContext::constructor_class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____class_std::basic_string_view_char__struct_std::char_traits_char____unsigned_int__struct_std::source_location____ptr64]
nop
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140021160
int3