Function at 0x140045640
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x120]
sub rsp, 0x220
lea rcx, str.C:clsconfig.txt
xor r14d, r14d
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 edi, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm1, xmmword [0x140054e20]
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
mov byte [0x14005ebaa], r14b
movups xmmword [rsp + 0x40], xmm0
lea rcx, [0x14005e5f8]
mov byte [rsp + 0x40], r14b
mov dword [0x14005ebac], r14d
mov dword [0x14005e064], 0x44c80000
mov dword [0x14005e074], 0x443b8000
mov dword [0x14005e080], 0x43fa0000
mov dword [0x14005e060], 0x447a0000
mov byte [0x14005e055], 1
mov byte [0x14005ebab], r14b
mov dword [0x14005e050], 1
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x60], socket
mov byte [rsp + 0x68], 1
call fcn.140003110
movzx eax, byte [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov byte [0x14005e618], al
movzx eax, byte [rsp + 0x68]
mov byte [0x14005e620], al
cmp rdx, 0x10
jb 0x140045776
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045771
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045ce5
call fcn.140046098
movdqa xmm1, xmmword [0x140054e20]
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
mov byte [rsp + 0x60], 0x30
movups xmmword [rsp + 0x40], xmm0
lea rcx, [0x14005e5c8]
mov byte [rsp + 0x40], r14b
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x68], 1
call fcn.140003110
movzx eax, byte [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov byte [0x14005e5e8], al
movzx eax, byte [rsp + 0x68]
mov byte [0x14005e5f0], al
cmp rdx, 0x10
jb 0x1400457ff
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400457fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045ce5
call fcn.140046098
mov qword [rsp + 0x248], rsi
lea rcx, [0x14005ebd0]
xor edx, edx
mov qword [rsp + 0x250], r15
mov r8d, 0x104
mov byte [0x14005e068], 1
mov byte [0x14005e056], 1
mov byte [0x14005e054], 1
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14005ed90]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov byte [0x14005ed95], 0x2a
mov dword [0x14005ebc8], eax
lea r15, sym.MZ_LM_a__M_xeH_ZXYs_kNV_rYSGUlAQZ_P5JcFwRc
mov byte [0x14005ebcc], al
xorps xmm0, xmm0
mov byte [0x14005ebce], al
mov esi, 0x42
movzx eax, byte [0x14005ebaa]
mov edx, esi
mov dword [rsp + 0x70], eax
xorps xmm1, xmm1
mov eax, dword [0x14005ebac]
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x74], eax
mov r8, rbx
cvttss2si eax, dword [0x14005e064]
mov byte [0x14005e057], 1
mov dword [0x14005e070], 0x32
mov dword [0x14005e078], 0x12c
mov dword [0x14005e058], 0x32
mov dword [0x14005e06c], 0xc8
mov dword [rbp - 0x6c], 1
mov dword [rbp - 0x68], 1
movups xmmword [0x14005ebb8], xmm0
mov dword [rsp + 0x78], eax
cvttss2si eax, dword [0x14005e074]
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x50], 0xc8
movdqa xmm0, xmmword [0x140054e80]
mov dword [rsp + 0x7c], eax
cvttss2si eax, dword [0x14005e080]
movdqa xmmword [rbp - 0x60], xmm0
xorps xmm0, xmm0
mov dword [rbp - 0x80], eax
cvttss2si eax, dword [0x14005e060]
movups xmmword [rbp + 0xe0], xmm0
mov dword [rbp - 0x7c], eax
movzx eax, byte [0x14005e055]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x14005ebab]
mov dword [rbp - 0x74], eax
mov eax, dword [0x14005e050]
mov dword [rbp - 0x70], eax
movzx eax, byte [0x14005e618]
cmp al, 0x67
movdqa xmmword [rbp + 0xf0], xmm1
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 0x140045971
lea rcx, [rbp + 0xe0]
call fcn.14003b710
movzx eax, byte [0x14005e5e8]
xorps xmm0, xmm0
cmp al, 0x67
xorps xmm1, xmm1
movups xmmword [rbp + 0x100], xmm0
cmovb esi, eax
movdqa xmmword [rbp + 0x110], xmm1
movzx eax, sil
lea rcx, [rax + rax*2]
mov rdx, qword [r15 + rcx*8 + 0x50400]
inc rbx
cmp byte [rdx + rbx], r14b
jne 0x1400459b7
mov r8, rbx
lea rcx, [rbp + 0x100]
call fcn.14003b710
lea rax, [r15 + 0x54c08]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x78]
lea rax, [0x140054b58]
mov qword [rbp - 0x30], 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 - 0x28]
lea rcx, [rbp - 0x40]
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 - 0x40]
lea rsi, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rsi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb8]
mov dword [rbp + rcx - 0x44], r8d
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [rbp + 0x54], r14b
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x28], rax
mov byte [rbp + 0x49], 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 + 0x4c], rax
lea rcx, [rbp - 0x28]
mov qword [rbp + 0x58], r14
mov qword [rbp + 0x40], r14
call fcn.140003460
mov r15, qword [rsp + 0x250]
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
je 0x140045a9e
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 0x140045aa9
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
nop dword [rax]
test rbx, rbx
jne 0x140045ada
lea rdx, str._SETTINGS_
lea rcx, [rbp - 0x30]
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 0x140045ab0
jle 0x140045b4d
cmp rbx, 0xb
jg 0x140045aeb
mov edx, dword [rsp + rbx*4 + 0x6c]
jmp 0x140045be5
cmp rbx, 0xd
jg 0x140045b1f
lea rax, [rbx - 0xc]
shl rax, 5
lea rdx, [rbp + 0xe0]
add rdx, rax
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x140045b11
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call fcn.140044840
jmp 0x140045bef
cmp rbx, 0xe
jne 0x140045b4d
lea rdx, [0x14005ebd0]
lea rcx, [rbp - 0x30]
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 0x140045ab0
cmp rbx, 0xf
jne 0x140045b7b
lea rdx, str._VERSION_
lea rcx, [rbp - 0x30]
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 0x140045ab0
cmp rbx, 0x10
jne 0x140045ba9
lea rdx, str.6.0.0
lea rcx, [rbp - 0x30]
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 0x140045ab0
cmp rbx, 0x11
jne 0x140045bd7
lea rdx, str._RANDOMIZATION_
lea rcx, [rbp - 0x30]
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 0x140045ab0
lea rax, [rbx - 0x12]
cmp rax, 5
ja 0x140045bff
mov edx, dword [rsp + rbx*4 + 0x54]
lea rcx, [rbp - 0x30]
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, 0x17
jle 0x140045ab0
lea rcx, [rbp - 0x28]
call fcn.1400033b0
test rax, rax
jne 0x140045c34
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]
mov qword [rbp + rcx - 0x40], rsi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.140003030
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 + 0x78]
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 + 0x248]
lea rbx, [rbp + 0x120]
nop
mov rdx, qword [rbx - 8]
lea rbx, [rbx - 0x20]
dec rdi
cmp rdx, 0x10
jb 0x140045cbd
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140045cb8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045ce5
mov rcx, r8
call fcn.140046098
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], recv
mov byte [rbx], r14b
test rdi, rdi
jne 0x140045c80
mov rbx, qword [rsp + 0x258]
add rsp, 0x220
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3