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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
cmp edx, 1
jne 0x18001e3d9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x2c], 0x604
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov r8, qword [0x1801534b8]
lea rcx, [0x1801534d0]
xor r9d, r9d
xor edx, edx
call fcn.180019e00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor edx, edx
mov qword [0x1801534b8], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.18009b770
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.ludashi
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.18009b770
lea r8, str.LogComputerZ7.log.on
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, str.LogComputerZ7.log
mov dword [0x180153400], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x18001e4dd
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x30]
cmp rax, 0x10000
jae 0x18001e394
lea rax, [rsp + 0x30]
movzx edx, ax
call fcn.180012a10
jmp 0x18001e39e
lea rdx, [rsp + 0x30]
call fcn.180012540
lea rdx, [rsp + 0x20]
lea rcx, [0x180153410]
call fcn.180013b30
mov rdx, qword [rsp + 0x20]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001e4b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x18001e4b7
test edx, edx
jne 0x18001e4b7
mov rdi, qword [0x180156438]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x180153530]
test rbx, rbx
je 0x18001e417
cmp dword [rbx + 8], 0
jle 0x18001e417
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rbx, qword [0x180153530]
mov qword [rsp + 0x478], rsi
xor esi, esi
test rbx, rbx
je 0x18001e447
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001e436
call fcn.18009e648
mov qword [rbx], rsi
mov edx, 0x10
mov qword [rbx + 8], rsi
mov rcx, rbx
call fcn.180050b00
lea rcx, [rdi + 0x18]
mov qword [0x180153530], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180153528]
test rbx, rbx
je 0x18001e496
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001e474
call fcn.18009e648
mov qword [rbx], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18001e486
call fcn.18009e648
mov qword [rbx + 8], rsi
mov edx, 0x18
mov dword [rbx + 0x10], esi
mov rcx, rbx
call fcn.180050b00
lea rcx, [0x1801534d0]
call fcn.18001c020
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [0x1801534b8], rsi
mov rsi, qword [rsp + 0x478]
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180050f90
mov rbx, qword [rsp + 0x480]
add rsp, 0x460
pop rdi
ret
mov ecx, 0x80004005
call fcn.180010a30
int3