Function at 0x140084b60
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 [0x140144038]
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.140084f60
test eax, eax
je 0x140084e92
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 0x140084cea
mov ebx, r12d
cmp dword [rbp - 0x21], r12d
jbe 0x140084cdf
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rbp - 0x31]
cmp dword [rax + rcx*8 + 0x10], 0
jne 0x140084c7c
lea rdx, [rbp - 0x39]
mov ecx, dword [rax + rcx*8]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140084c7c
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 0x140084c7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140084c7c
mov edx, dword [rbp - 0x41]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov rcx, qword [rbp - 0x39]
test rax, rax
jne 0x140084c85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rbp - 0x21]
jae 0x140084cdf
jmp 0x140084c10
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x41]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140084ccc
lea rdx, [rbp - 0x29]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140084ccc
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140003ae0
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
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 0x140084e52
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.1400049c0
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.140084a80
nop
lea r9, [rsp + 0x38]
mov r8, rax
mov rdx, 0xffffffff80000003
lea rcx, [rbp + 7]
call fcn.1400863c0
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x140084d95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140084d90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140084f44
call fcn.1400a2410
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r12w
mov rdx, qword [rbp - 0x69]
cmp rdx, 8
jb 0x140084de7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140084de2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140084f4a
call fcn.1400a2410
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], 7
mov word [rsp + 0x38], r12w
mov dword [rbp - 0x21], r12d
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.140085000
test al, al
cmovne r15d, dword [rbp - 0x21]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140084e52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140084e4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140084f50
call fcn.1400a2410
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140084e92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140084e8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140084f3e
call fcn.1400a2410
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
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.1400a2ca4
mov rsi, rax
mov word [rsp + 0x20], r12w
mov r9d, ebx
mov r8, rax
lea edx, [rdi + 5]
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 0x140084ef3
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.1400049c0
mov rcx, rsi
call fcn.1400a2410
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a23f0
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
call fcn.1400a92b0
nop
call fcn.1400a92b0
nop
call fcn.1400a92b0
nop
call fcn.1400a92b0
int3