Function at 0x180012da0
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x180028040]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r14d, r14d
mov dword [rbp - 0x50], r14d
cmp byte [0x180028d05], r14b
je 0x180012dfa
mov dword [0x1800280b4], r14d
mov dword [0x1800280b0], r14d
mov dword [0x1800280b8], r14d
mov rdx, qword [0x180028d28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x180012e20
lea rcx, [rsp + 0x30]
call fcn.180005870
nop
mov r8d, 0x11
lea rdx, str.MelonLoaderLogs
lea rcx, [rsp + 0x30]
call fcn.180005490
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180012eba
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012eb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012eb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movdqa xmm0, xmmword [0x180022130]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1800130e7
mov eax, 0x4000
test word [rbp - 0x2a], ax
je 0x1800130e7
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
call fcn.1800135f0
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rsi, rdx
sar rsi, 0xb
mov rax, rsi
shr rax, 0x3f
add rsi, rax
movabs rax, 0x20c49ba5e353f7cf
imul rsi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x3e8
sub rsi, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x50], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp]
call fcn.180005210
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.18000ece0
lea rdx, [0x1800210b4]
mov rcx, rax
call fcn.1800056a0
lea rdx, [0x180021e80]
mov rcx, rax
call fcn.1800056a0
lea rcx, [rbp + 0x100]
mov qword [rsp + 0x50], rcx
lea rcx, str._y__m__d__H__M__S
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
inc rcx
cmp byte [rcx], 0
jne 0x180013005
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.180017370
mov rcx, rax
lea rdx, [0x18002064c]
call fcn.1800056a0
mov rbx, rax
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov byte [r8 + rax + 0x58], 0x30
mov edx, 3
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
lea rdx, str..log
mov rcx, rax
call fcn.1800056a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov dword [rbp - 0x50], 5
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov rcx, r14
mov rdx, qword [rbp + 0x88]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x180013118
mov rax, qword [rbp + 0x58]
mov rbx, qword [rax]
test rbx, rbx
je 0x180013118
mov rax, qword [rbp + 0x38]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0x80]
cmovb rbx, qword [rbp + 0x80]
sub rbx, r9
mov rcx, r9
jmp 0x18001314a
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
je 0x180012f13
lea rcx, str.Failed_to_Create_Logs_Folder_
call fcn.18000e400
xor bl, bl
jmp 0x180013573
test dl, 4
jne 0x18001317a
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rbx, r14
test rdx, rdx
je 0x180013145
mov rax, qword [rbp + 0x30]
mov r9, qword [rax]
mov rax, qword [rbp + 0x68]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x18001314a
mov r9, qword [rsp + 0x50]
test rcx, rcx
je 0x18001317a
lea rcx, [rsp + 0x30]
cmp rbx, 0xf
ja 0x180013171
mov qword [rsp + 0x40], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x30], 0
jmp 0x18001317a
mov rdx, rbx
call fcn.180005b00
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
lea rcx, [rbp + 0x130]
call fcn.180016410
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x12c], edx
lea rcx, [0x1800296b8]
call fcn.180016970
lea rdx, [rbp + 0x130]
lea rcx, [0x1800296b0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::swap_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____ptr64]
lea rdx, [rbp + 0x138]
lea rcx, [0x1800296b8]
call fcn.180016a50
nop
lea rcx, [rbp + 0x130]
call fcn.180012ce0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18001324a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013245
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180013245
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [0x180028d28]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
inc rdi
cmp byte [rdx + rdi], 0
jne 0x180013273
mov r8, rdi
lea rcx, [rbp - 0x30]
call fcn.180005870
nop
mov r8d, 0xd
lea rdx, str.MelonLoader_
lea rcx, [rbp - 0x30]
call fcn.180005490
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 6
lea rdx, str.Latest
lea rcx, [rbp - 0x50]
call fcn.180005490
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rdx, str..log
lea rcx, [rsp + 0x50]
call fcn.180005490
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x180013397
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013392
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180013392
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movdqa xmm0, xmmword [0x180022130]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1800133e8
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800133e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800133e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movdqa xmm0, xmmword [0x180022130]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x180013437
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013432
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180013432
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movdqa xmm0, xmmword [0x180022130]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x18001347d
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x130]
call fcn.180016410
mov rbx, rax
lea rdi, [0x1800297b8]
cmp rdi, rax
je 0x1800134cf
lea rcx, [0x1800297c0]
call fcn.180016970
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::swap_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____ptr64]
lea rdx, [rbx + 8]
lea rcx, [0x1800297c0]
call fcn.180016a50
nop
lea rcx, [rbp + 0x130]
call fcn.180012ce0
mov bl, 1
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x18001351b
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013516
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180013516
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movdqa xmm0, xmmword [0x180022130]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x18]
call fcn.180005150
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1800135b2
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800135ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800135ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18001c790
movzx eax, bl
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.18001c770
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret