Function at 0x100021a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100059d4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
call fcn.100017d0
test al, al
je 0x10002992
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002249
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 2
mov byte [ebp - 0x160], 0x33
mov byte [ebp - 0x151], al
mov cl, 7
xor al, byte [ebp - 0x160]
mov dl, 0xb
mov byte [ebp - 0x15f], al
mov ah, 1
mov al, byte [ebp - 0x160]
xor ch, ch
xor cl, al
mov byte [ebp - 0x149], 0
xor dl, al
mov byte [ebp - 0x15e], cl
xor ah, al
mov byte [ebp - 0x15d], dl
xor ch, al
mov byte [ebp - 0x15c], ah
mov dh, 3
mov byte [ebp - 0x15b], ch
xor dh, al
mov byte [ebp - 0x158], 0
mov al, byte [ebp - 0x151]
mov dl, 6
xor al, byte [ebp - 0x160]
mov cl, 0x6f
mov byte [ebp - 0x159], al
xor cl, dl
mov al, 0x23
mov byte [ebp - 0x15a], dh
xor al, dl
mov byte [ebp - 0x14c], dl
mov byte [ebp - 0x14b], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14b]
mov byte [ebp - 0x14a], cl
push eax
lea eax, [ebp - 0x15f]
mov byte [ebp - 0x149], 0
push eax
call fcn.10001060
mov esi, dword [ebp - 0x1c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
cmp dword [0x1038e484], eax
jne 0x10002992
push 0xc0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x10006380
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x108], 0x10006320
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x100]
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
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0xc3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1038e48c]
mov ecx, dword [0x1038e490]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc8], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
push 0x40
cmova eax, dword [ebp - 0x34]
push 0x22
push eax
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_char_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10002536
lea ecx, [ebp - 0x100]
mov byte [ebp - 0xb8], 1
mov byte [ebp - 0xc3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14c], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0x14c]
add esp, 0x10
mov ecx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x1c]
push edx
push ecx
push eax
push edx
push ecx
push eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x1038e48c]
mov ecx, dword [0x1038e490]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0xbc], ecx
lea ecx, [ebp - 0x100]
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xc8], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10004110
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x100024e8
mov dword [ebp - 0xc8], 0
jmp 0x100024fa
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xc8], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x1000251b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1000251b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push 0
push 0
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x1000254f
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
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_]
push 0
push 0x384e00
push 0x10009098
lea ecx, [ebp - 0x108]
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__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x108]
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__::flush_void_]
lea ecx, [ebp - 0x100]
call fcn.10003f40
test eax, eax
jne 0x1000259a
push eax
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
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_]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], 0xf
lea edx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x16c], 0
cmova edx, dword [ebp - 0x34]
mov ecx, edx
mov dword [ebp - 0x168], 0
movups xmmword [ebp - 0x17c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100025d3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x17c]
call fcn.10004210
cmp dword [ebp - 0x168], 0xf
lea ecx, [ebp - 0x148]
lea eax, [ebp - 0x17c]
cmova eax, dword [ebp - 0x17c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0x168]
add esp, 8
cmp ecx, 0xf
jbe 0x1000264a
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002640
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002640
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10004ba9
add esp, 8
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jbe 0x1000265d
mov esi, dword [ebp - 0x34]
add edx, esi
jmp 0x10002662
add edx, ecx
lea esi, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
cmp esi, edx
jne 0x10002686
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x10002795
sub edx, esi
mov eax, 7
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x38], eax
cmp edx, 0x7ffffffe
ja 0x100029f3
cmp edx, eax
jbe 0x1000274f
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100026c6
mov ecx, 0x7fffffff
mov dword [ebp - 0x14c], 0x7ffffffe
add ecx, ecx
jmp 0x100026ef
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x14c], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x100029f8
add ecx, ecx
cmp ecx, 0x1000
jb 0x10002725
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x100029f8
push eax
call fcn.10004b79
add esp, 4
test eax, eax
je 0x100029bf
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x10002752
test ecx, ecx
je 0x10002745
push ecx
call fcn.10004b79
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14c]
add esp, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x10002752
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
jmp 0x10002752
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x164]
cmp eax, 7
lea eax, [ebp - 0x4c]
cmova eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, eax
test edx, edx
je 0x10002789
mov edi, edx
nop dword [eax]
movsx ax, byte [esi]
lea ecx, [ecx + 2]
lea esi, [esi + 1]
mov word [ecx - 2], ax
sub edi, 1
jne 0x10002770
mov edi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov word [eax + edx*2], cx
mov dh, 0x5a
mov byte [ebp - 4], 5
mov al, 0x1e
mov byte [ebp - 0x16], 0
mov cl, 0xc
mov byte [ebp - 0x1c], dh
mov dl, 0x28
mov byte [ebp - 0x16], 0
mov ah, 0x1c
mov ch, 0x6e
xor al, dh
xor cl, dh
xor dl, dh
mov byte [ebp - 0x1b], al
xor ah, dh
mov byte [ebp - 0x1a], cl
xor ch, dh
mov byte [ebp - 0x19], dl
push 0x2000
mov byte [ebp - 0x18], ah
mov byte [ebp - 0x17], ch
call fcn.10004bb7
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1b]
push 0x1000
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x38], 7
lea edx, [ebp - 0x4c]
push esi
cmova edx, dword [ebp - 0x4c]
call fcn.10002010
mov esi, eax
mov dword [ebp - 0x164], esi
test esi, esi
je 0x1000281f
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1000283a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 4
add edi, ecx
mov dword [edi], eax
mov byte [ebp - 0x151], 0
jmp 0x100028f8
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001ed0
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001ed0
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
test eax, eax
je 0x1000287d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi]
call esi
push eax
mov dword [edi], eax
call esi
test eax, eax
jne 0x10002868
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp - 0x164]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001ed0
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001ed0
push 0
lea eax, [ebp - 0x54]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100028dd
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x50]
je 0x100028d3
push 2
lea eax, [ebp - 0x50]
push eax
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100028dd
push esi
call fcn.10001ce0
test al, al
jne 0x100028f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
mov dword [edi], eax
mov byte [ebp - 0x151], 0
jmp 0x100028f8
mov byte [ebp - 0x151], 1
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x10002932
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002928
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100029bf
push ecx
push edx
call fcn.10004ba9
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x38], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call fcn.10003c50
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x10002999
mov byte [ebp - 0x151], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x100029cf
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100029c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100029c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10004ba9
add esp, 8
mov al, byte [ebp - 0x151]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100011e0
call fcn.10001140
int3