Function at 0x41efe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cadb
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x495400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c5c5a2b
mov dword [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push 0xb8
lea eax, [ebp - 0x1ac]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x1ac]
push eax
call fcn.0040bd30
push 0x31
lea eax, [ebp - 0x43]
mov byte [ebp - 4], 2
push 0
push eax
mov byte [ebp - 0x44], 0
call sub.VCRUNTIME140.dll_memset
push 0xb0
lea eax, [ebp - 0xf4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0xf4]
push 2
push eax
call fcn.0040ac00
push 0
push 0x31
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, 9
call edi
cdq
lea ecx, [ebp - 0x44]
idiv ebx
xor esi, esi
lea ebx, [edx + 1]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f0b4
sub ecx, edx
je 0x41f0dd
nop
add byte [ebp + esi - 0x44], bl
lea eax, [ebp - 0x44]
inc esi
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f0d0
sub eax, edx
cmp esi, eax
jb 0x41f0c0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xf4]
call fcn.004215e0
push 0
push 0x31
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
mov ebx, 9
test al, al
jne 0x41f0a4
lea ecx, [ebp - 0x19c]
call fcn.0040e8c0
test eax, eax
jne 0x41f13d
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1ac]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xf0]
call fcn.0040e8c0
test eax, eax
jne 0x41f165
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xf4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp + 0x34], 0xf
lea eax, [ebp + 0x20]
cmova eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [ebp - 0xf4]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa4], 0
mov dword [ebp - 0xf0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x41f1e8
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xb4]
cmp dword [eax], ecx
jne 0x41f1e8
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xd4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc4]
mov dword [eax], edx
cmp byte [ebp - 0xa8], 0
je 0x41f1fc
lea ecx, [ebp - 0xf0]
call fcn.0040e8c0
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1b0], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x150], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x41f28e
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x160]
cmp dword [eax], ecx
jne 0x41f28e
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x14c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x180]
mov dword [eax], ecx
mov eax, dword [ebp - 0x170]
mov dword [eax], edx
cmp byte [ebp - 0x154], 0
je 0x41f2a2
lea ecx, [ebp - 0x19c]
call fcn.0040e8c0
lea ecx, [ebp - 0x19c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x194]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x41f2f6
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f2ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f32e
push ecx
push edx
call fcn.00479834
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x41f33e
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f334
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41f334
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004794f0
mov esp, ebp
pop ebp
ret