Function at 0x10001016c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor ebp, ebp
mov rbx, rcx
lea r13d, [rbp + 1]
mov qword [rax + 0x18], rbp
mov dword [rax + 0x10], ebp
mov sil, r13b
call sub.MFC42u.dll_CPropertySet::GetClassID
lea r12, str.Options
mov rdi, rax
cmp rax, rbp
je 0x1000101e4
lea rax, [rsp + 0x88]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x1000101db
mov rcx, qword [rsp + 0x88]
mov sil, bpl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 2
lea r8, str.Wrap
mov rdx, r12
mov r9d, edi
mov rcx, rbx
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
cmp eax, ebp
jl 0x1000392e4
cmp eax, edi
jg 0x1000392e4
lea r8, str.ShowStatusBar
mov r9d, r13d
mov rdx, r12
mov rcx, rbx
mov dword [rbx + 0x244], eax
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
lea r8, str.ShowRuler
mov r9d, r13d
mov rdx, r12
mov rcx, rbx
mov dword [rbx + 0x23c], eax
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
lea r8, [rsp + 0x70]
mov r9d, edi
mov edx, SafeArrayGetDim
mov ecx, COleDropTarget::XDropTarget::AddRef
mov word [rsp + 0x70], bp
mov dword [rbx + 0x240], eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [rsp + 0x70], 0x31
mov r9d, ebp
lea r8, str.Units
mov rdx, r12
setne r9b
mov rcx, rbx
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
mov r14d, 3
lea r8, str.Maximized
cmp eax, ebp
mov rdx, r12
mov rcx, rbx
cmovl eax, ebp
cmp eax, 4
cmovge eax, r14d
xor r9d, r9d
mov dword [rbx + 0x340], eax
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
lea r9, [rsp + 0x80]
mov dword [rbx + reloc.MFC42u.dll_CString::CString], eax
lea rax, [rsp + 0x78]
lea r8, str.FrameRect
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sub.MFC42u.dll_COleResizeBar::GetRuntimeClass
cmp eax, ebp
je 0x10002a103
mov rcx, qword [rsp + 0x80]
cmp rcx, rbp
je 0x10002a103
movdqu xmm0, xmmword [rcx]
movdqu xmmword [rbx + reloc.MFC42u.dll_CSocketFile::CSocketFile], xmm0
call sub.msvcrt.dll_free
jmp 0x100010309
lea r8, str.PrintPageNum
mov r9d, r13d
mov rdx, r12
mov rcx, rbx
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
lea r9, [rsp + 0x80]
lea r8, str.PageMargin
mov dword [rbx + 0x1f8], eax
lea rax, [rsp + 0x78]
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sub.MFC42u.dll_COleResizeBar::GetRuntimeClass
cmp eax, ebp
je 0x10002a122
mov rcx, qword [rsp + 0x80]
cmp rcx, rbp
je 0x10002a122
movdqu xmm0, xmmword [rcx]
movdqu xmmword [rbx + 0x1fc], xmm0
call sub.msvcrt.dll_free
jmp 0x100010374
mov edi, 5
cmp sil, bpl
jne 0x1000103cd
lea r8, str.DefaultFormat
mov r9d, edi
mov rdx, r12
mov rcx, rbx
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
cmp eax, ebp
mov r11d, eax
jl 0x1000392eb
cmp eax, 0xf
jge 0x1000392eb
cmp r11d, r14d
je 0x1000392f3
movsxd rax, r11d
lea rdx, [rax + rax*4]
lea rax, [0x1000f7058]
add rdx, rdx
cmp dword [rax + rdx*8], ebp
je 0x1000392f3
mov edi, r11d
mov edx, edi
mov ecx, r14d
mov dword [0x1000f6140], edi
mov dword [0x1000f6180], edi
call fcn.100005cd8
lea rcx, [0x1000fc240]
mov r8d, eax
mov edx, 0x1438
call sub.ntdll.dll_WinSqmSetDWORD
lea r8, [0x1000b6a30]
xor r9d, r9d
mov rdx, r12
mov rcx, rbx
call sub.MFC42u.dll_COleServerDoc::GetRuntimeClass
cmp eax, ebp
jne 0x1000392fb
mov edx, r13d
mov ecx, 0xb
call fcn.100005abc
mov dword [rbx + 0x234], eax
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rbx + reloc.MFC42u.dll_CSocketFile::CSocketFile]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetRect]
nop
jmp 0x100010309
mov edx, CRuntimeClassconstCDaoTableDef::classCDaoTableDef
mov r8d, Ordinal_1442
lea rcx, [rbx + 0x1fc]
mov r9d, edx
mov dword [rsp + 0x20], r8d
call qword [sym.imp.USER32.dll_SetRect]
nop
jmp 0x100010374
mov eax, edi
jmp 0x10001020e
mov r11d, edi
jmp 0x1000103a7
mov r11d, edi
jmp 0x1000103ca
mov dword [rbx + 0x230], r13d
jmp 0x100010414