Function at 0x401c30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4074a0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 0x14
jb 0x401e08
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x14
cmovae eax, dword [ebp + 8]
push str.existfoldertest.bin
push ecx
push eax
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x28]
call fcn.004062c0
push 0xb0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0xd8]
call fcn.004042e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xd4]
push 2
push eax
call fcn.00405600
test eax, eax
lea ecx, [ebp - 0xd8]
mov eax, dword [ebp - 0xd8]
push 0
je 0x401cfb
add ecx, dword [eax + 4]
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x401d06
add ecx, dword [eax + 4]
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x405840
mov edx, str.writeTest
lea ecx, [ebp - 0xd8]
call fcn.00405920
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xd4]
call fcn.00405570
test eax, eax
jne 0x401d4a
push eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
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 - 0x28]
call fcn.00401b00
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov bl, al
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
lea ecx, [ebp - 0xd8]
call fcn.00401a40
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x401da4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ddc
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x401dec
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401de2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401de2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004068d1
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
call fcn.00401630
int3