Function at 0x140044e40
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
lea r15, sym.MZ_LM_a__M_xeH_ZXYs_kNV_rYSGUlAQZ_P5JcFwRc
xor r14d, r14d
lea rax, [r15 + 0x48e18]
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 [0x14005ef70]
lea r8d, [r14 + 1]
lea rdx, str.C:clsconfig.txt
mov qword [rbp + 0x44], rax
lea rcx, [rbp - 0x30]
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
call fcn.140003460
xor r8d, r8d
lea edi, [r14 + 2]
test rax, rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
je 0x140044f29
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 0x140044f34
add rcx, rax
mov edx, edi
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
cmp qword [rbp + 0x50], r14
je 0x140044fb8
mov rax, qword [rbp - 0x18]
lea rcx, [rbp + 0x40]
cmp qword [rax], rcx
jne 0x140044f69
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]
lea rbx, [rbp - 0x30]
call fcn.1400032d0
mov rcx, qword [rbp + 0x50]
test al, al
cmove rbx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp - 0x30]
mov byte [rbp + 0x4c], r14b
test eax, eax
mov byte [rbp + 0x41], r14b
cmovne rbx, r14
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ef70]
mov qword [rbp + 0x44], rax
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
test rbx, rbx
jne 0x140044ff7
jmp 0x140044fdd
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 [0x14005ef70]
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, edi
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 0x1400450a3
mov eax, dword [str.C:cls]
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 [0x140054c14]
mov word [rsp + 0x44], ax
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x46], r14b
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.config.txt
lea rcx, [rsp + 0x40]
call fcn.140043a90
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400450a3
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004509e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004509e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140046098
lea rcx, str.C:clsconfig.txt
mov qword [rsp + 0x370], rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov qword [rsp + 0x30], r14
lea rcx, str.C:clsconfig.txt
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x14005ebaa]
mov esi, 0x42
mov dword [rsp + 0x60], eax
mov edx, esi
mov eax, dword [0x14005ebac]
xorps xmm0, xmm0
mov dword [rsp + 0x64], eax
xorps xmm1, xmm1
cvttss2si eax, dword [0x14005e064]
mov rbx, 0xffffffffffffffff
mov r8, rbx
movdqa xmmword [rbp + 0x200], xmm1
mov dword [rsp + 0x68], eax
cvttss2si eax, dword [0x14005e074]
movups xmmword [rbp + 0x1f0], xmm0
mov dword [rsp + 0x6c], eax
cvttss2si eax, dword [0x14005e080]
mov dword [rsp + 0x70], eax
cvttss2si eax, dword [0x14005e060]
mov dword [rsp + 0x74], eax
movzx eax, byte [0x14005e055]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x14005ebab]
mov dword [rsp + 0x7c], eax
mov eax, dword [0x14005e050]
mov dword [rbp - 0x80], eax
movzx eax, byte [0x14005e068]
mov dword [rbp - 0x7c], eax
movzx eax, byte [0x14005e056]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x14005e057]
mov dword [rbp - 0x74], eax
movzx eax, byte [0x14005e054]
mov dword [rbp - 0x70], eax
mov eax, dword [0x14005e070]
mov dword [rbp - 0x6c], eax
mov eax, dword [0x14005e078]
mov dword [rbp - 0x68], eax
mov eax, dword [0x14005e058]
mov dword [rbp - 0x64], eax
mov eax, dword [0x14005e06c]
mov dword [rbp - 0x60], eax
movzx eax, byte [0x14005eba9]
mov dword [rbp - 0x5c], eax
cvttss2si eax, dword [0x14005e084]
mov dword [rbp - 0x58], eax
cvttss2si eax, dword [0x14005e07c]
mov dword [rbp - 0x54], eax
cvttss2si eax, dword [0x14005e05c]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x14005e618]
cmp al, 0x67
cmovb edx, eax
movzx eax, dl
lea rcx, [rax + rax*2]
mov rdx, qword [r15 + rcx*8 + 0x50400]
inc r8
cmp byte [rdx + r8], r14b
jne 0x140045206
lea rcx, [rbp + 0x1f0]
call fcn.14003b710
movzx eax, byte [0x14005e5e8]
xorps xmm0, xmm0
cmp al, 0x67
xorps xmm1, xmm1
movups xmmword [rbp + 0x210], xmm0
cmovb esi, eax
movdqa xmmword [rbp + 0x220], xmm1
movzx eax, sil
lea rcx, [rax + rax*2]
mov rdx, qword [r15 + rcx*8 + 0x50400]
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], r14b
jne 0x140045250
mov r8, rbx
lea rcx, [rbp + 0x210]
call fcn.14003b710
lea rax, [r15 + 0x54c08]
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x188]
lea rax, [0x140054b58]
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 rsi, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rsi
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 [0x14005ef70]
lea rdx, str.C:clsconfig.txt
mov r8d, edi
mov qword [rbp + 0x15c], rax
lea rcx, [rbp + 0xe8]
mov qword [rbp + 0x168], r14
mov qword [rbp + 0x150], r14
call fcn.140003460
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
je 0x140045364
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 0x14004536f
add rcx, rax
mov edx, edi
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 0x14004539f
lea rdx, str._SETTINGS_
lea rcx, [rbp + 0xe0]
call fcn.140044040
lea rdx, [0x140044200]
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 0x140045372
jle 0x140045418
cmp rbx, 0xb
jg 0x1400453b0
mov edx, dword [rsp + rbx*4 + 0x5c]
jmp 0x1400454bd
cmp rbx, 0xd
jg 0x1400453e7
lea rax, [rbx - 0xc]
shl rax, 5
lea rdx, [rbp + 0x1f0]
add rdx, rax
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x1400453d6
mov rdx, qword [rdx]
lea rcx, [rbp + 0xe0]
call fcn.140044840
jmp 0x1400454ca
cmp rbx, 0xe
jne 0x140045418
lea rdx, [0x14005ebd0]
lea rcx, [rbp + 0xe0]
call fcn.140044040
lea rdx, [0x140044200]
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 0x140045372
cmp rbx, 0xf
jne 0x140045449
lea rdx, str._VERSION_
lea rcx, [rbp + 0xe0]
call fcn.140044040
lea rdx, [0x140044200]
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 0x140045372
cmp rbx, 0x10
jne 0x14004547a
lea rdx, str.6.0.0
lea rcx, [rbp + 0xe0]
call fcn.140044040
lea rdx, [0x140044200]
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 0x140045372
cmp rbx, 0x11
jne 0x1400454ab
lea rdx, str._SETTINGS_2_
lea rcx, [rbp + 0xe0]
call fcn.140044040
lea rdx, [0x140044200]
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 0x140045372
jle 0x1400454da
cmp rbx, 0x17
jle 0x1400454b9
cmp rbx, 0x1b
jg 0x1400454da
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, [0x140044200]
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 0x140045372
lea rcx, [rbp + 0xe8]
call fcn.1400033b0
test rax, rax
jne 0x140045518
mov rax, qword [rbp + 0xd0]
xor r8d, r8d
mov edx, edi
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], rsi
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.140003030
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]
mov rsi, qword [rsp + 0x370]
lea rbx, [rbp + 0x230]
nop dword [rax + rax]
mov rdx, qword [rbx - 8]
lea rbx, [rbx - 0x20]
dec rdi
cmp rdx, 0x10
jb 0x1400455bd
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400455b8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004562e
mov rcx, r8
call fcn.140046098
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], recv
mov byte [rbx], r14b
test rdi, rdi
jne 0x140045580
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.140003030
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 rbx, qword [rsp + 0x368]
mov rdi, 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