Function at 0x401d30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x40a040]
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
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push 0xb8
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xfc]
push 0x40a8ac
call fcn.00403930
push 0x31
lea eax, [ebp - 0x43]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [ebp - 0x44], 0
call sub.VCRUNTIME140.dll_memset
push 0xb0
lea eax, [ebp - 0x1ac]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push 0x40a8dc
call fcn.00402550
push 0
push 0x31
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xfc]
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 0x401e00
sub ecx, edx
je 0x401e2d
nop dword [eax + eax]
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 0x401e20
sub eax, edx
cmp esi, eax
jb 0x401e10
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1ac]
call fcn.00404180
push 0
push 0x31
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xfc]
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 0x401df0
lea ecx, [ebp - 0xec]
call fcn.00403ec0
test eax, eax
jne 0x401e8c
push eax
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xfc]
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 - 0x1ac]
call fcn.00402460
cmp dword [0x40a8c0], 0xf
mov eax, 0x40a8ac
cmova eax, dword [0x40a8ac]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [ebp - 0x1ac]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1b0], eax
lea ecx, [ebp - 0x1a8]
call fcn.00403850
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x144]
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 - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
lea ecx, [ebp - 0xec]
call fcn.00403850
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_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 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.00404e4a
mov esp, ebp
pop ebp
ret