Function at 0x140013140
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor r15d, r15d
movsxd r13, r9d
mov r14, r8
mov ebx, edx
test rcx, rcx
jne 0x14001e59e
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
nop dword [rax + rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
cmp ebx, 1
jne 0x14001e5ed
movzx ecx, word [rsp + 0x6e]
mov eax, 0xcccccccd
mul ecx
movzx eax, word [rsp + 0x6c]
mov ecx, edx
shr ecx, 3
test r14, r14
je 0x14001e5ae
movzx r8d, word [rsp + 0x6a]
mov rdx, r13
movzx r9d, word [rsp + 0x68]
mov dword [rsp + 0x48], ecx
lea rcx, [0x14004bdd0]
mov qword [rsp + 0x40], rcx
mov rcx, r14
mov dword [rsp + 0x38], eax
lea rax, [0x14004bdf0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r8d
lea r8, str._2d_s_02d_s_02d_s_02d
mov qword [rsp + 0x20], rax
call fcn.1400133f0
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x14001324b
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140018f80
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
call fcn.140028654
nop
jmp 0x1400131ab
movzx r9d, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
mov dword [rsp + 0x38], ecx
lea rcx, [0x14004bdd0]
mov qword [rsp + 0x30], rcx
lea rcx, str._2d_s_02d_s_02d_s_02d
mov dword [rsp + 0x28], eax
lea rax, [0x14004bdf0]
mov r8, rax
mov qword [rsp + 0x20], rax
call fcn.140013448
jmp 0x14001e7e5
or rbx, 0xffffffffffffffff
cmp byte [0x140045b25], r15b
je 0x14001e750
mov r12d, r15d
call fcn.140015508
mov edi, 0x80
lea r8, [rbp - 0x50]
mov r9d, edi
mov ecx, eax
mov edx, 0x1003
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14001e66c
lea rdx, str.HH:mm:ss_t
lea rax, [rbp - 0x50]
sub rdx, rax
lea rcx, [rbp - 0x50]
lea rax, [rdi + 0x7fffff7e]
test rax, rax
je 0x14001e65d
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14001e65d
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x14001e63b
test rdi, rdi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
movzx esi, word [rbp - 0x50]
lea rdi, [rbp - 0x50]
jmp 0x14001e708
cmp si, 0x27
jne 0x14001e691
mov eax, r15d
add rdi, 2
test r12d, r12d
sete al
mov r12d, eax
jmp 0x14001e701
test r12d, r12d
je 0x14001e69c
add rdi, 2
jmp 0x14001e701
lea eax, [rsi - 0x48]
cmp ax, 0x25
ja 0x14001e701
movabs rcx, 0x2100000001
bt rcx, rax
jae 0x14001e701
mov rcx, r15
inc rcx
lea rdi, [rdi + 2]
cmp word [rdi], si
je 0x14001e6b8
mov rax, rcx
neg rax
lea r15, [rdi + rax*2]
lea rdi, [r15 + 2]
cmp rcx, 1
jne 0x14001e6fe
mov r8, rbx
xor eax, eax
inc r8
cmp word [r15 + r8*2], ax
jne 0x14001e6dd
lea r8, [r8*2 + 2]
mov rdx, r15
mov rcx, rdi
call sub.msvcrt.dll_memmove
mov word [r15], si
xor r15d, r15d
add rdi, 2
movzx esi, word [rdi]
test si, si
jne 0x14001e679
call fcn.140015508
mov ecx, eax
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x70]
mov edx, 2
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
test eax, eax
jne 0x14001e7c4
mov word [rsp + 0x70], r15w
jmp 0x14001e7c4
cmp dword [0x14003d114], r15d
lea rcx, [0x140035fb8]
movzx r9d, word [rsp + 0x68]
je 0x14001e78d
cmp r9d, 0xc
jb 0x14001e780
lea eax, [r9 - 0xc]
cmovbe eax, r9d
lea rcx, [0x140035fbc]
mov r9d, eax
jmp 0x14001e794
test r9d, r9d
jne 0x14001e794
mov r9d, 0xc
jmp 0x14001e794
lea rcx, [0x140034300]
movzx eax, word [rsp + 0x6a]
lea r8, str._02d_s_02d_s
mov qword [rsp + 0x30], rcx
mov edx, 0x20
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x70]
lea rax, [0x14004bdf0]
mov qword [rsp + 0x20], rax
call fcn.1400133f0
test r14, r14
jne 0x14001e7ec
lea rax, [rsp + 0x70]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14001e7ce
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400134a0
mov ebx, eax
jmp 0x140013255
mov rdx, r13
lea r8, [rsp + 0x70]
mov rcx, r14
call fcn.1400113e0
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x14001e7fc
jmp 0x140013255