Function at 0x140042430
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
lea r15, [0x140000000]
xor r14d, r14d
lea rax, [r15 + 0x46bf8]
lea rcx, [rbp + 0x70]
mov qword [rbp - 0x40], rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
mov rax, qword [rbp - 0x40]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r13
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [rbp + 0x4c], r14b
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], r12
mov byte [rbp + 0x41], r14b
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ae80]
lea r8d, [r14 + 1]
lea rdx, str.C:glsconfig.txt
mov qword [rbp + 0x44], rax
lea rcx, [rbp - 0x30]
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
call fcn.140003690
xor r8d, r8d
lea esi, [r14 + 2]
test rax, rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
je 0x140042519
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140042524
add rcx, rax
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rsp + 0x368], rbx
mov qword [rsp + 0x370], rdi
cmp qword [rbp + 0x50], r14
je 0x1400425b3
mov rax, qword [rbp - 0x18]
lea rcx, [rbp + 0x40]
cmp qword [rax], rcx
jne 0x140042561
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x20]
mov dword [rax], edx
lea rcx, [rbp - 0x30]
call fcn.1400034f0
mov rcx, qword [rbp + 0x50]
lea rbx, [rbp - 0x30]
test al, al
cmove rbx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, r14
mov byte [rbp + 0x4c], r14b
test eax, eax
mov byte [rbp + 0x41], r14b
lea rcx, [rbp - 0x30]
cmove rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ae80]
mov qword [rbp + 0x44], rax
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
test rdi, rdi
jne 0x1400425f2
jmp 0x1400425d8
lea rcx, [rbp - 0x30]
mov byte [rbp + 0x4c], r14b
mov byte [rbp + 0x41], r14b
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ae80]
mov qword [rbp + 0x44], rax
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
mov rax, qword [rbp - 0x40]
xor r8d, r8d
mov edx, esi
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
je 0x1400426f2
mov eax, dword [str.C:gls]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x50], 6
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x40], eax
xor edx, edx
movzx eax, word [0x14005276c]
mov word [rsp + 0x44], ax
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x46], r14b
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140042693
cmp rdx, 0xf
lea rax, [rcx + 0xb]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmova rbx, qword [rsp + 0x40]
lea rdx, str.config.txt
add rbx, rcx
mov r8d, 0xb
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xb], r14b
jmp 0x1400426b2
lea r9, str.config.txt
mov qword [rsp + 0x20], 0xb
mov edx, 0xb
lea rcx, [rsp + 0x40]
call fcn.140042130
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400426f2
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400426ed
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400426ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043a74
lea rcx, str.C:glsconfig.txt
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov qword [rsp + 0x30], r14
lea rcx, str.C:glsconfig.txt
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x14005aaaa]
mov edi, 0x42
mov dword [rsp + 0x60], eax
mov edx, edi
mov eax, dword [0x14005abe0]
xorps xmm0, xmm0
mov dword [rsp + 0x64], eax
xorps xmm1, xmm1
cvttss2si eax, dword [0x14005a0a4]
mov rbx, 0xffffffffffffffff
mov r8, rbx
movdqa xmmword [rbp + 0x200], xmm1
mov dword [rsp + 0x68], eax
cvttss2si eax, dword [0x14005a0b4]
movups xmmword [rbp + 0x1f0], xmm0
mov dword [rsp + 0x6c], eax
cvttss2si eax, dword [0x14005a0c0]
mov dword [rsp + 0x70], eax
cvttss2si eax, dword [0x14005a0a0]
mov dword [rsp + 0x74], eax
movzx eax, byte [0x14005a095]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x14005aaab]
mov dword [rsp + 0x7c], eax
mov eax, dword [0x14005a090]
mov dword [rbp - 0x80], eax
movzx eax, byte [0x14005a0a8]
mov dword [rbp - 0x7c], eax
movzx eax, byte [0x14005a096]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x14005a097]
mov dword [rbp - 0x74], eax
movzx eax, byte [0x14005a094]
mov dword [rbp - 0x70], eax
mov eax, dword [0x14005a0b0]
mov dword [rbp - 0x6c], eax
mov eax, dword [0x14005a0b8]
mov dword [rbp - 0x68], eax
mov eax, dword [0x14005a098]
mov dword [rbp - 0x64], eax
mov eax, dword [0x14005a0ac]
mov dword [rbp - 0x60], eax
movzx eax, byte [0x14005aaa9]
mov dword [rbp - 0x5c], eax
cvttss2si eax, dword [0x14005a0c4]
mov dword [rbp - 0x58], eax
cvttss2si eax, dword [0x14005a0bc]
mov dword [rbp - 0x54], eax
cvttss2si eax, dword [0x14005a09c]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x14005a658]
cmp al, 0x67
cmovb edx, eax
movzx eax, dl
lea rcx, [rax + rax*2]
mov rdx, qword [r15 + rcx*8 + 0x4e1c0]
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x140042850
lea rcx, [rbp + 0x1f0]
call fcn.14003bbf0
movzx eax, byte [0x14005a628]
xorps xmm0, xmm0
cmp al, 0x67
xorps xmm1, xmm1
movups xmmword [rbp + 0x210], xmm0
cmovb edi, eax
movdqa xmmword [rbp + 0x220], xmm1
movzx eax, dil
lea rcx, [rax + rax*2]
mov rdx, qword [r15 + rcx*8 + 0x4e1c0]
inc rbx
cmp byte [rdx + rbx], r14b
jne 0x140042896
mov r8, rbx
lea rcx, [rbp + 0x210]
call fcn.14003bbf0
lea rax, [r15 + 0x52760]
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x188]
lea rax, [0x140052748]
mov qword [rbp + 0xe0], rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r8d, r8d
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
mov rax, qword [rbp + 0xd0]
lea rdi, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rdi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb8]
mov dword [rbp + rcx + 0xcc], r8d
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rcx, [rbp + 0xe8]
mov qword [rbp + 0xe8], r12
mov byte [rbp + 0x164], r14b
mov byte [rbp + 0x159], r14b
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ae80]
lea rdx, str.C:glsconfig.txt
mov r8d, esi
mov qword [rbp + 0x15c], rax
lea rcx, [rbp + 0xe8]
mov qword [rbp + 0x168], r14
mov qword [rbp + 0x150], r14
call fcn.140003690
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
je 0x1400429aa
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400429b5
add rcx, rax
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rbx, r14
test rbx, rbx
jne 0x1400429e5
lea rdx, str._SETTINGS_
lea rcx, [rbp + 0xe0]
call fcn.1400433f0
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
jmp 0x1400429b8
jle 0x140042a5e
cmp rbx, 0xb
jg 0x1400429f6
mov edx, dword [rsp + rbx*4 + 0x5c]
jmp 0x140042b03
cmp rbx, 0xd
jg 0x140042a2d
lea rax, [rbx - 0xc]
shl rax, 5
lea rdx, [rbp + 0x1f0]
add rdx, rax
cmp qword [rdx + 0x18], 0xf
mov r8, qword [rdx + 0x10]
jbe 0x140042a1c
mov rdx, qword [rdx]
lea rcx, [rbp + 0xe0]
call fcn.1400435f0
jmp 0x140042b10
cmp rbx, 0xe
jne 0x140042a5e
lea rdx, [0x14005aac0]
lea rcx, [rbp + 0xe0]
call fcn.1400433f0
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
jmp 0x1400429b8
cmp rbx, 0xf
jne 0x140042a8f
lea rdx, str._VERSION_
lea rcx, [rbp + 0xe0]
call fcn.1400433f0
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
jmp 0x1400429b8
cmp rbx, 0x10
jne 0x140042ac0
lea rdx, [0x1400517fc]
lea rcx, [rbp + 0xe0]
call fcn.1400433f0
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
jmp 0x1400429b8
cmp rbx, 0x11
jne 0x140042af1
lea rdx, str._SETTINGS_2_
lea rcx, [rbp + 0xe0]
call fcn.1400433f0
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
jmp 0x1400429b8
jle 0x140042b20
cmp rbx, 0x17
jle 0x140042aff
cmp rbx, 0x1b
jg 0x140042b20
mov edx, dword [rsp + rbx*4 + 0x44]
lea rcx, [rbp + 0xe0]
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___int____ptr64]
lea rdx, [0x1400435b0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc rbx
cmp rbx, 0x1b
jle 0x1400429b8
lea rcx, [rbp + 0xe8]
call fcn.1400035d0
test rax, rax
jne 0x140042b5e
mov rax, qword [rbp + 0xd0]
xor r8d, r8d
mov edx, esi
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rdi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xe8]
call fcn.140003250
lea rcx, [rbp + 0xf0]
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 + 0x188]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rbx, [rbp + 0x230]
nop word [rax + rax]
mov rdx, qword [rbx - 8]
lea rbx, [rbx - 0x20]
dec rsi
cmp rdx, 0xf
jbe 0x140042c01
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140042bfc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042c7a
mov rcx, r8
call fcn.140043a74
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
test rsi, rsi
jne 0x140042bc0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r13
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.140003250
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdi, qword [rsp + 0x370]
mov rbx, qword [rsp + 0x368]
mov rsi, qword [rsp + 0x378]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3