Function at 0x14006c830
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402bb010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea edx, [rsi + 2]
mov r8d, 0x100
call qword [0x1401a9630]
mov ebx, eax
test eax, eax
je 0x14006ca02
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea edx, [rsi + 3]
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsInitKeyContext_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3d5
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], sil
lea r8d, [rsi + 0xb]
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x68]
call fcn.140055cb0
lea rcx, [rbp - 0x60]
call qword [0x1401a9120]
lea rcx, [rbp + 0x18]
call qword [0x1401a9198]
jmp 0x14006d2a1
lea rcx, [rsp + 0x50]
call qword [0x1401a9e80]
nop
mov r8d, 0x17
lea rdx, str.HuaweiHMSCOREkmskey
mov rcx, rax
call fcn.140057820
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x50]
call fcn.140047920
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x28]
call qword [0x1401a9810]
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call qword [0x1401a9638]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.1400524a0
test ebx, ebx
je 0x14006cbfb
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 0x1c
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
mov edx, 3
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsSetKeyFilePath_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3de
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
jmp 0x14006d274
lea rdx, [0x140228d20]
mov rcx, rdi
call qword [0x1401a9660]
mov ebx, eax
test eax, eax
je 0x14006cd74
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 0x4c
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
mov edx, 3
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsSetKeyCaller_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3e5
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
jmp 0x14006d274
lea rdx, [0x140228d20]
mov rcx, rdi
call qword [0x1401a9628]
mov ebx, eax
test eax, eax
je 0x14006ceed
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 0x10c
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
mov edx, 3
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsSetKeyAlias_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3ec
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
jmp 0x14006d274
mov dl, 1
mov rcx, rdi
call qword [0x1401a9670]
mov ebx, eax
test eax, eax
je 0x14006d061
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 0x40c
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
mov edx, 3
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsSetKeyFilePathLower_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3f3
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
jmp 0x14006d274
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1402f2128], eax
jle 0x14006d0db
lea rcx, [0x1402f2128]
call fcn.14016f07c
cmp dword [0x1402f2128], 0xffffffff
jne 0x14006d0db
movdqa xmm0, xmmword [0x14024d4c0]
movdqu xmmword [0x1402f2118], xmm0
mov byte [0x1402f2108], 0
mov r8d, 7
lea rdx, str.UNKNOWN
lea rcx, [0x1402f2108]
call fcn.140047980
lea rcx, [0x140190dc0]
call fcn.14016f484
nop
lea rcx, [0x1402f2128]
call fcn.14016f01c
lea rdx, [0x1402f2108]
lea rcx, [rsp + 0x28]
call fcn.140054ae0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call qword [0x1401a9658]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140047920
test ebx, ebx
je 0x14006d293
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.1401706d2
lea rax, [0x140227eb8]
mov qword [rbp - 0x80], rax
lea rax, [0x140227c80]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x20], 0x300c
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
mov edx, 3
lea rcx, [rbp - 0x68]
call fcn.140057c70
nop
lea rdx, str.UcsKmsSetKeyCountryCode_ret_
lea rcx, [rbp - 0x70]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.EncriptUtils::InitKeyContext
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x3fa
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140057bc0
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x28]
call fcn.140047980
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x68]
call fcn.140055cb0
lea rcx, [rbp - 0x60]
call qword [0x1401a9120]
lea rcx, [rbp + 0x18]
call qword [0x1401a9198]
jmp 0x14006d295
mov ebx, esi
lea rcx, [rbp + 0x80]
call fcn.140047920
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14016ee40
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret