Function at 0x403110
Capabilities:
Check if file exists
Delete file
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e2d9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea eax, [ebp - 0x184]
mov dword [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x184]
push 1
push eax
call fcn.004043b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x178], 0
jne 0x4031be
lea ecx, [ebp - 0x174]
call fcn.00404910
test eax, eax
jne 0x4031a9
push eax
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x184]
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 + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
lea esi, [ebp - 0x19c]
push eax
call fcn.00404640
mov ecx, esi
call fcn.004085d0
add esp, 0x18
mov eax, esi
cmp dword [ebp - 0x188], 0x10
cmovae eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x188]
cmp eax, 0xffffffff
jne 0x4033bb
cmp ecx, 0x10
jb 0x403236
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40322c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036b3
push ecx
push edx
call fcn.0041d5d2
add esp, 8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00404640
lea ecx, [ebp - 0x1d0]
call fcn.004085d0
push eax
mov edx, 0x421670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b8]
call fcn.00404d10
add esp, 0x1c
push 0x42166c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00404540
mov dword [ebp - 0x18c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x19c], xmm0
mov dword [ebp - 0x188], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x19c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x19c]
cmp dword [ebp - 0x188], 0x10
cmovae eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x188]
add esp, 4
cmp ecx, 0x10
jb 0x403315
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40330b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033b5
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
cmp ecx, 0x10
jb 0x40336a
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403360
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033b5
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
cmp ecx, 0x10
jb 0x4033f7
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4033ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4033ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test al, 0x10
je 0x403681
cmp ecx, 0x10
jb 0x4033f7
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4033ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036b3
push ecx
push edx
call fcn.0041d5d2
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea edx, [ebp + 0x20]
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
call fcn.00402db0
push 0xb0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 5
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0xcc]
push 0x28
push eax
call fcn.004037a0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x403462
nop word [eax + eax]
mov dl, byte [esi]
lea ecx, [ebp - 0xcc]
call fcn.00405590
inc esi
cmp esi, edi
jne 0x403450
lea ecx, [ebp - 0xc8]
call fcn.00404910
test eax, eax
jne 0x403489
push eax
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
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_]
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd0], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0xc8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4034ee
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x8c]
cmp dword [eax], ecx
jne 0x4034ee
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov dword [eax], ecx
mov eax, dword [ebp - 0x9c]
mov dword [eax], edx
cmp byte [ebp - 0x80], 0
je 0x4034ff
lea ecx, [ebp - 0xc8]
call fcn.00404910
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40356d
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40354e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40367b
push edx
push ecx
call fcn.0041d5d2
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x184]
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 - 0x184]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x188], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x128], 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 0x4035db
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x138]
cmp dword [eax], ecx
jne 0x4035db
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x158]
mov dword [eax], ecx
mov eax, dword [ebp - 0x148]
mov dword [eax], edx
cmp byte [ebp - 0x12c], 0
je 0x4035ef
lea ecx, [ebp - 0x174]
call fcn.00404910
lea ecx, [ebp - 0x174]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x114]
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, 0x10
jb 0x403643
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403639
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40367b
push ecx
push edx
call fcn.0041d5d2
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, 0x10
jb 0x4036c3
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4036b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4036b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x10
jb 0x403236
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40322c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40322c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d07c
mov esp, ebp
pop ebp
ret