Function at 0x140083a40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
mov qword [rbp - 0x31], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea ecx, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov r15d, eax
call fcn.140083d30
lea rdi, [r12 - 1]
test eax, eax
je 0x140083c86
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r12w
mov dword [rsp + 0x30], 2
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
xor edx, edx
xor ecx, ecx
lea r8d, [r12 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x140083bdc
mov ebx, r12d
cmp dword [rbp - 0x21], r12d
jbe 0x140083bd1
nop dword [rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rbp - 0x31]
cmp dword [rax + rcx*8 + 0x10], 0
jne 0x140083b5c
lea rdx, [rbp - 0x39]
mov ecx, dword [rax + rcx*8]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140083b5c
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140083b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140083b5c
mov edx, dword [rbp - 0x41]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov rcx, qword [rbp - 0x39]
test rax, rax
jne 0x140083b65
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rbp - 0x21]
jae 0x140083bd1
jmp 0x140083af0
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x41]
mov r8, rsi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140083bbe
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140083bbe
mov rdx, qword [rbp - 0x29]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140083ba0
lea rcx, [rbp - 0x19]
call fcn.1400040b0
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
cmp qword [rbp - 9], 0
je 0x140083c7d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], r12
mov r8d, 6
lea rdx, str.Nation
lea rcx, [rsp + 0x38]
call fcn.140004fe0
nop
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae r8, qword [rbp - 0x19]
lea rdx, str._sControl_PanelInternationalGeo
lea rcx, [rbp - 0x61]
call fcn.1400838d0
nop
lea r9, [rsp + 0x38]
mov r8, rax
mov rdx, 0xffffffff80000003
lea rcx, [rbp + 7]
call fcn.140085330
nop
lea rcx, [rbp - 0x61]
call fcn.1400053f0
nop
lea rcx, [rsp + 0x38]
call fcn.1400053f0
mov dword [rbp - 0x21], r12d
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.140083dd0
test al, al
cmovne r15d, dword [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.1400053f0
nop
lea rcx, [rbp - 0x19]
call fcn.1400053f0
mov word [rsp + 0x20], r12w
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rdi
mov rcx, rax
call fcn.1400a2da4
mov rsi, rax
mov word [rsp + 0x20], r12w
mov r9d, ebx
mov r8, rax
mov edx, 4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140083ce2
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140004fe0
mov rcx, rsi
call fcn.1400a2510
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a24f0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret