Function at 0x42d690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push esi
push edi
push 0x3c5c5a2b
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
cmp dword [0x474ca8], 0xf
lea ecx, [ebp - 0x1ac]
mov eax, 0x474c94
cmova eax, dword [0x474c94]
sub esp, 8
push eax
call fcn.004326f0
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
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
cmp dword [0x474c18], 0xf
lea ecx, [ebp - 0xf4]
mov eax, 0x474c04
cmova eax, dword [0x474c04]
push eax
call fcn.00431820
mov eax, dword [ebp - 0xf4]
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
push 0
push 0x31
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
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 0x42d796
sub ecx, edx
je 0x42d7bd
sub byte [ebp + esi - 0x44], bl
lea eax, [ebp - 0x44]
inc esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d7b0
sub eax, edx
cmp esi, eax
jb 0x42d7a1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xf4]
call fcn.00434460
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 0x42d786
pop edi
pop esi
pop ebx
lea ecx, [ebp - 0x19c]
call fcn.00433980
test eax, eax
jne 0x42d820
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.00433980
test eax, eax
jne 0x42d848
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 [0x474ca8], 0xf
mov eax, 0x474c94
cmova eax, dword [0x474c94]
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], 2
cmp dword [ebp - 0xa4], 0
mov dword [ebp - 0xf0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x42d8d3
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xb4]
cmp dword [eax], ecx
jne 0x42d8d3
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 0x42d8e7
lea ecx, [ebp - 0xf0]
call fcn.00433980
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 dword [ebp - 4], 3
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 0x42d97c
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x160]
cmp dword [eax], ecx
jne 0x42d97c
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 0x42d990
lea ecx, [ebp - 0x19c]
call fcn.00433980
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 - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret