Function at 0x1400071a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movsxd rsi, r9d
mov rdi, r8
mov ebx, edx
test rcx, rcx
jne 0x14002120a
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
cmp ebx, 1
jne 0x14002125a
movzx ecx, word [rsp + 0x6e]
mov eax, 0xcccccccd
mul ecx
movzx eax, word [rsp + 0x6c]
mov ecx, edx
shr ecx, 3
test rdi, rdi
je 0x14002121a
movzx r8d, word [rsp + 0x6a]
mov rdx, rsi
movzx r9d, word [rsp + 0x68]
mov dword [rsp + 0x48], ecx
lea rcx, [0x14003bb58]
mov qword [rsp + 0x40], rcx
mov rcx, rdi
mov dword [rsp + 0x38], eax
lea rax, [0x14003bb78]
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.140012610
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140007285
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400173b0
add rsp, 0x1d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rsp + 0x50]
call fcn.140024b80
nop
jmp 0x1400071f1
movzx r9d, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
mov dword [rsp + 0x38], ecx
lea rcx, [0x14003bb58]
mov qword [rsp + 0x30], rcx
lea rcx, str._2d_s_02d_s_02d_s_02d
mov dword [rsp + 0x28], eax
lea rax, [0x14003bb78]
mov r8, rax
mov qword [rsp + 0x20], rax
call fcn.14001242c
nop
jmp 0x140007291
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x208], r12
cmp byte [0x1400502b9], 0
je 0x14002140a
mov qword [rsp + 0x1d0], r13
xor r12d, r12d
mov qword [rsp + 0x1c8], r14
mov r13d, r12d
mov qword [rsp + 0x1c0], r15
call fcn.14000b0d0
mov r14d, 0x80
lea r8, [rbp - 0x50]
mov r9d, r14d
mov ecx, eax
mov edx, 0x1003
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400212f7
lea rdx, str.HH:mm:ss_t
lea rax, [rbp - 0x50]
sub rdx, rax
lea rcx, [rbp - 0x50]
lea rax, [r14 + 0x7fffff7e]
test rax, rax
je 0x1400212e8
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400212e8
mov word [rcx], ax
add rcx, 2
sub r14, 1
jne 0x1400212c6
test r14, r14
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
movzx r15d, word [rbp - 0x50]
lea r14, [rbp - 0x50]
test r15w, r15w
je 0x1400213b9
movabs rcx, 0x2100000001
cmp r15w, 0x27
jne 0x14002132d
mov eax, r12d
add r14, 2
test r13d, r13d
sete al
mov r13d, eax
jmp 0x1400213a6
test r13d, r13d
je 0x140021338
add r14, 2
jmp 0x1400213a6
lea eax, [r15 - 0x48]
cmp ax, 0x25
ja 0x1400213a6
movzx eax, ax
bt rcx, rax
jae 0x1400213a6
mov rcx, r12
inc rcx
lea r14, [r14 + 2]
cmp word [r14], r15w
je 0x14002134e
mov rax, rcx
neg rax
lea r12, [r14 + rax*2]
lea r14, [r12 + 2]
cmp rcx, 1
jne 0x140021399
mov r8, rbx
cmp word [r12 + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140021373
lea r8, [r8*2 + 2]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.msvcrt.dll_memmove]
mov word [r12], r15w
xor r12d, r12d
movabs rcx, 0x2100000001
movzx r15d, word [r14 + 2]
add r14, 2
test r15w, r15w
jne 0x140021314
call fcn.14000b0d0
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]
mov r15, qword [rsp + 0x1c0]
mov r14, qword [rsp + 0x1c8]
mov r13, qword [rsp + 0x1d0]
test eax, eax
jne 0x14002147e
mov word [rsp + 0x70], r12w
jmp 0x14002147e
cmp dword [0x14003911c], 0
lea rcx, [0x140031c00]
movzx r9d, word [rsp + 0x68]
je 0x140021447
cmp r9d, 0xc
jb 0x14002143a
lea eax, [r9 - 0xc]
cmovbe eax, r9d
lea rcx, [0x140031c04]
mov r9d, eax
jmp 0x14002144e
test r9d, r9d
jne 0x14002144e
mov r9d, 0xc
jmp 0x14002144e
lea rcx, [0x140030364]
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, [0x14003bb78]
mov qword [rsp + 0x20], rax
call fcn.140012610
mov r12, qword [rsp + 0x208]
test rdi, rdi
jne 0x1400214ad
lea rax, [rsp + 0x70]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140021490
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14001247c
nop
jmp 0x140007291
mov rdx, rsi
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140011620
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400214bd
jmp 0x14000728f