Function at 0x1000162fc
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x80], r9
mov r15, r8
mov r12, rdx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x168]
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x78], rax
call qword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____ptr64___cdecl_Base::String::GetBaseStringManager_void_]
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
cmp rax, r14
setne cl
cmp ecx, r14d
jne 0x100016388
mov ecx, 0x80004005
call qword [sym.imp.PhotoBase.dll_void___cdecl_ATL::BaseAtlThrow_long_int_]
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea r13, [rax + 0x18]
mov qword [rsp + 0x70], r13
mov edi, r14d
mov dword [rsp + 0x40], r14d
mov word [rsp + 0xb0], r14w
xor edx, edx
lea r8d, [rdx + 0x3e]
lea rcx, [rsp + 0xb2]
call sub.msvcrt.dll_memset
mov r9d, 0x20
lea r8, [rsp + 0xb0]
mov edx, 0x1014
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, r14d
je 0x10001651c
mov qword [rsp + 0x88], r14
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.msvcrt.dll_wcstol]
mov esi, 1
sub eax, esi
je 0x100016514
cmp eax, esi
jne 0x100016521
mov edi, esi
mov dword [rsp + 0x40], esi
lea rdx, [0x100008858]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcspbrk]
cmp rax, r14
je 0x100016521
mov word [rsp + 0x98], r14w
xor eax, eax
mov qword [rsp + 0x9a], rax
mov qword [rsp + 0xa2], rax
mov dword [rsp + 0xaa], eax
lea r9d, [rsi + 0xa]
lea r8, [rsp + 0x98]
lea edx, [rsi + 0x12]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, r14d
je 0x100016521
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov rdi, rcx
mov ecx, esi
sub ecx, dword [r13 - 8]
mov eax, dword [r13 - 0xc]
sub eax, edi
or eax, ecx
jge 0x1000164b5
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.100010734
mov r13, qword [rsp + 0x70]
mov edx, r14d
cmp edx, edi
jge 0x1000164ea
movsxd r9, edx
movzx r8d, word [r15 + r9*2]
lea eax, [r8 - 0x30]
cmp ax, 9
ja 0x1000164e0
movzx eax, r8w
movzx ecx, word [rsp + rax*2 + 0x38]
cmp cx, r14w
cmovne r8w, cx
mov word [r13 + r9*2], r8w
add edx, esi
jmp 0x1000164b8
cmp edi, r14d
jl 0x100016509
cmp edi, dword [r13 - 0xc]
jg 0x100016509
mov dword [r13 - 0x10], edi
movsxd rax, edi
mov word [r13 + rax*2], r14w
mov r15, r13
mov edi, esi
jmp 0x100016521
mov ecx, 0x80070057
call qword [sym.imp.PhotoBase.dll_void___cdecl_ATL::BaseAtlThrow_long_int_]
mov edi, esi
mov dword [rsp + 0x40], esi
jmp 0x100016521
mov esi, 1
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipGetStringFormatDigitSubstitution
cmp eax, r14d
je 0x100016538
mov dword [rbx + 8], eax
mov r14d, dword [rsp + 0x50]
cmp edi, r14d
je 0x100016559
mov edx, 0x400
mov r8d, edi
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipSetStringFormatDigitSubstitution
test eax, eax
je 0x100016559
mov dword [rbx + 8], eax
mov edx, 0xffffffec
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x16
jae 0x100016681
lea rdx, [rsp + 0x44]
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipGetStringFormatFlags
test eax, eax
je 0x100016587
mov dword [rbx + 8], eax
mov edx, dword [rsp + 0x44]
or edx, esi
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipSetStringFormatFlags
test eax, eax
je 0x10001659c
mov dword [rbx + 8], eax
lea rdx, [rsp + 0x58]
mov rcx, qword [r12]
call sub.gdiplus.dll_GdipGetTextRenderingHint
test eax, eax
je 0x1000165b3
mov dword [r12 + 8], eax
mov edi, dword [rsp + 0x58]
cmp edi, 5
je 0x10001660a
test edi, edi
jne 0x100016605
and dword [rsp + 0x48], edi
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x100016605
cmp dword [rsp + 0x48], edi
je 0x100016605
and dword [rsp + 0x4c], edi
xor r9d, r9d
lea r8, [rsp + 0x4c]
xor edx, edx
mov ecx, 0x200a
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x100016605
test byte [rsp + 0x4c], 2
jne 0x10001660a
xor sil, sil
jmp 0x100016621
mov edx, 4
mov rcx, qword [r12]
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x100016621
mov dword [r12 + 8], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x80]
mov rdx, r15
mov rcx, r12
call fcn.10001615c
test sil, sil
je 0x100016661
mov edx, edi
mov rcx, qword [r12]
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x100016661
mov dword [r12 + 8], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipSetStringFormatFlags
test eax, eax
je 0x10001671f
mov dword [rbx + 8], eax
mov edi, dword [rsp + 0x40]
jmp 0x100016723
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + 0xc]
sub eax, dword [rcx + 4]
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mov eax, dword [rcx + 8]
sub eax, dword [rcx]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movd xmm1, dword [rcx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rcx]
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x60], xmm0
movss dword [rsp + 0x64], xmm1
movss dword [rsp + 0x68], xmm2
movss dword [rsp + 0x6c], xmm3
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1000166d6
mov rax, qword [rax + 8]
jmp 0x1000166d8
xor eax, eax
mov rcx, qword [rbx]
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1000166ed
mov r9, qword [rdx]
jmp 0x1000166f0
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
or r8d, 0xffffffff
mov rdx, r15
mov rcx, qword [r12]
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x100016723
mov dword [r12 + 8], eax
jmp 0x100016723
mov edi, dword [rsp + 0x40]
cmp edi, r14d
je 0x10001673f
mov edx, 0x400
mov r8d, r14d
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipSetStringFormatDigitSubstitution
test eax, eax
je 0x10001673f
mov dword [rbx + 8], eax
lea rdx, [r13 - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10001675b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.10002c840
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret