Function at 0x140077bd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xcf8
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0xce0], rax
mov rdi, rcx
movzx ebp, r8b
movzx esi, dl
lea rcx, [rsp + 0xad2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
movzx ebx, r9b
mov word [rsp + 0xad0], r12w
call fcn.1400ad2f0
lea rcx, [rsp + 0x4a2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x4a0], r12w
call fcn.1400ad2f0
mov rcx, r12
mov qword [rsp + 0x70], rcx
test bl, bl
jne 0x140077c67
lea r8, [rsp + 0x70]
lea rdx, [fcn.140077bd0]
lea ecx, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x4a0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x4a0]
lea rcx, [rsp + 0xad0]
mov edx, 0x104
call fcn.1400aeb10
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], r12w
call fcn.1400ad2f0
mov r9d, 1
lea rdx, [rsp + 0x290]
lea r8d, [r9 + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.WeatherTool
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.dump
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140077d27
lea rdx, [rsp + 0x290]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], r12w
call fcn.1400ad2f0
mov r9d, 1
lea rdx, [rsp + 0x80]
lea r8d, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x80], r12w
jne 0x140077d84
mov r9d, 1
lea rdx, [rsp + 0x80]
xor ecx, ecx
lea r8d, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.WeatherTool
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r13, str.1.2.2.9220
lea rcx, [rsp + 0x80]
mov rdx, r13
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [0x1400eec58]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140077f61
lea r8, [0x1400eec40]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140077f61
lea r9, [rsp + 0x290]
lea rdx, [rsp + 0x80]
lea rcx, str.allinone
mov r8, r13
call fcn.14009acd0
test eax, eax
je 0x140077f61
lea rcx, str.0x1033
call fcn.1400a3250
lea rcx, [0x1400eed38]
call fcn.1400a3740
lea rcx, str.dump.toptools100.com
call fcn.1400a33b0
lea rcx, str.dump.toptools100.com
call fcn.1400a35d0
lea rcx, str.WeatherTool_Crash
call fcn.1400a38a0
lea rcx, [rsp + 0x6b2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x6b0], r12w
call fcn.1400ad2f0
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x6b0]
mov edx, 0x104
call fcn.1400aeb10
lea rdx, [0x1400eecb8]
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r9, [rsp + 0x6b0]
lea r8, [0x1400eecb4]
lea rdx, [0x1400eeca0]
lea rcx, [0x1400eec80]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0xad0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov byte [rsp + 0x68], bl
mov byte [rsp + 0x60], r12b
mov byte [rsp + 0x58], r12b
mov byte [rsp + 0x50], bpl
mov byte [rsp + 0x48], sil
mov rdx, rax
lea rax, [rsp + 0x290]
lea r8, [rsp + 0x4a0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x80]
lea rcx, str.allinone
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
call fcn.1400986f0
cmp eax, 1
sete al
mov byte [0x14012cd40], al
jmp 0x140077f63
xor al, al
mov rcx, qword [rsp + 0xce0]
xor rcx, rsp
call fcn.1400ad2c0
add rsp, 0xcf8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret