Function at 0x180098780
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x20]
xorps xmm4, xmm4
movaps xmmword [rbp + 0x50], xmm4
movaps xmmword [rbp + 0x60], xmm4
xor eax, eax
mov qword [rbp + 0x70], rax
mov rax, qword [0x180169c40]
mov qword [rbp + 0x40], rax
mov rsi, rcx
test dword [rsp], esp
sub rsp, 0xb0
lea rdi, [rsp + 0x20]
call fcn.1800010c6
cmp byte [rax], 0
jne 0x18009885a
mov rcx, rsi
call fcn.1800976c0
test eax, eax
je 0x180098853
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800987ef
add rcx, 0xc
jmp 0x1800987f1
xor ecx, ecx
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x30], rcx
mov r8, rdi
mov qword [rbp + 0x28], r8
mov edx, 0x5c
mov dword [rbp + 0x3c], edx
mov r9d, 0x55
mov dword [rbp + 0x38], r9d
lea rcx, [rbp]
call fcn.180002d50
mov rcx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov edx, dword [rbp + 0x3c]
mov r9d, dword [rbp + 0x38]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov esi, eax
lea rcx, [rbp]
call fcn.180002da0
xor ecx, ecx
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x70], rcx
test esi, esi
setne sil
movzx esi, sil
jmp 0x180098b36
xor esi, esi
jmp 0x180098b36
mov qword [rbp + 0xc0], rsi
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x180098870
add rbx, 0xc
jmp 0x180098872
xor ebx, ebx
mov qword [rbp + 0x68], rbx
mov rcx, rbx
mov qword [rbp + 0x28], rcx
mov r8, rdi
mov qword [rbp + 0x30], r8
mov edx, 0x5c
mov dword [rbp + 0x38], edx
mov r9d, 0x55
mov dword [rbp + 0x3c], r9d
lea rcx, [rbp]
call fcn.180002d50
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov edx, dword [rbp + 0x38]
mov r9d, dword [rbp + 0x3c]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov esi, eax
lea rcx, [rbp]
call fcn.180002da0
xor r8d, r8d
mov qword [rbp + 0x68], r8
mov qword [rbp + 0x68], r8
mov r8d, esi
test r8d, r8d
jne 0x1800988d8
xor esi, esi
jmp 0x180098b36
dec r8d
mov rcx, rdi
xor edx, edx
call fcn.18007c860
mov rsi, qword [rbp + 0xc0]
lea rcx, [rsi + 8]
mov rdx, rax
call fcn.180002bf0
mov qword [rbp + 0xc0], rsi
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x180098912
mov qword [rbp + 0x48], rbx
lea rcx, [rbx + 0xc]
jmp 0x180098918
xor ecx, ecx
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x30], rcx
mov r8, rdi
mov qword [rbp + 0x28], r8
mov edx, 0x20000071
mov dword [rbp + 0x3c], edx
mov r9d, 2
mov dword [rbp + 0x38], r9d
lea rcx, [rbp]
call fcn.180002d50
mov rcx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov edx, dword [rbp + 0x3c]
mov r9d, dword [rbp + 0x38]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov esi, eax
lea rcx, [rbp]
call fcn.180002da0
xor edx, edx
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x60], rdx
test esi, esi
jne 0x180098976
xor esi, esi
jmp 0x180098b36
cmp dword [rdi], 0
setne dl
mov rsi, qword [rbp + 0xc0]
mov byte [rsi + 0x1ba], dl
lea rcx, [rsi + 0x10]
mov rdx, qword [rbp + 0x48]
call fcn.180002bf0
cmp byte [rsi + 0x1ba], 0
je 0x180098a44
mov qword [rbp + 0xc0], rsi
lea rcx, [rsi + 0x18]
mov rdx, qword [rbp + 0x48]
call fcn.180002bf0
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x1800989c6
lea rcx, [rbx + 0xc]
jmp 0x1800989c8
xor ecx, ecx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x28], rcx
mov rdx, rdi
mov qword [rbp + 0x30], rdx
mov r8d, 0x55
mov dword [rbp + 0x38], r8d
lea rcx, [rbp]
call fcn.180002d50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov r8d, dword [rbp + 0x38]
call sub.KERNEL32.dll_ResolveLocaleName
mov ebx, eax
lea rcx, [rbp]
call fcn.180002da0
mov r8d, ebx
xor ecx, ecx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x58], rcx
test r8d, r8d
jg 0x180098a1f
xor esi, esi
jmp 0x180098b36
dec r8d
mov rcx, rdi
xor edx, edx
call fcn.18007c860
mov rsi, qword [rbp + 0xc0]
lea rcx, [rsi + 0x38]
mov rdx, rax
call fcn.180002bf0
jmp 0x180098b31
lea rcx, [rsi + 0x38]
mov rdx, qword [rbp + 0x48]
call fcn.180002bf0
mov qword [rbp + 0xc0], rsi
lea rcx, [rsi + 0x18]
mov rdx, qword [rbp + 0x48]
call fcn.180002bf0
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x180098a78
mov qword [rbp + 0x48], rbx
lea rcx, [rbx + 0xc]
jmp 0x180098a7e
xor ecx, ecx
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x30], rcx
mov r8, rdi
mov qword [rbp + 0x28], r8
mov edx, 0x20000001
mov dword [rbp + 0x38], edx
mov r9d, 2
mov dword [rbp + 0x3c], r9d
lea rcx, [rbp]
call fcn.180002d50
mov rcx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov edx, dword [rbp + 0x38]
mov r9d, dword [rbp + 0x3c]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov esi, eax
lea rcx, [rbp]
call fcn.180002da0
xor ecx, ecx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x50], rcx
test esi, esi
jne 0x180098ad9
xor esi, esi
jmp 0x180098b36
mov ecx, dword [rdi]
mov rsi, qword [rbp + 0xc0]
mov dword [rsi + 0x1b4], ecx
mov ecx, dword [rsi + 0x1b4]
cmp ecx, 0xc00
je 0x180098b31
cmp ecx, 0x1000
je 0x180098b31
mov rbx, qword [rbp + 0x48]
lea rcx, [rbx + 0xc]
mov r8d, dword [rbx + 8]
mov edx, 0x5f
call fcn.1800d7f30
test eax, eax
jle 0x180098b31
mov rcx, rbx
mov r8d, eax
xor edx, edx
call fcn.18007e860
lea rcx, [rsi + 0x18]
mov rdx, rax
call fcn.180002bf0
mov esi, 1
movzx eax, sil
lea rcx, [0x180169c40]
mov rcx, qword [rcx]
cmp qword [rbp + 0x40], rcx
je 0x180098b4f
call fcn.180003120
nop
lea rsp, [rbp + 0x78]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret