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 0x10008504
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x1000d040]
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 0x10002a02
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, 0x2a
mov byte [ebp - 0x160], 0x1b
mov byte [ebp - 0x151], al
mov cl, 0x2f
xor al, byte [ebp - 0x160]
mov dl, 0x23
mov byte [ebp - 0x15f], al
mov ah, 0x29
mov al, byte [ebp - 0x160]
mov ch, 0x28
xor cl, al
mov byte [ebp - 0x158], 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, 0x2b
mov byte [ebp - 0x149], 0
xor dh, al
mov byte [ebp - 0x15b], ch
mov al, byte [ebp - 0x151]
mov dl, 0x57
xor al, byte [ebp - 0x160]
mov cl, 0x3e
mov byte [ebp - 0x159], al
xor cl, dl
mov al, 0x72
mov byte [ebp - 0x15a], dh
xor al, dl
mov byte [ebp - 0x158], 0
mov byte [ebp - 0x14b], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14b]
mov byte [ebp - 0x14c], dl
push eax
lea eax, [ebp - 0x15f]
mov byte [ebp - 0x14a], cl
push eax
mov byte [ebp - 0x149], 0
call fcn.10001060
mov esi, dword [ebp - 0x1c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
cmp dword [0x1048b024], eax
jne 0x10002a02
push 0xc0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x10009380
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x108], 0x10009320
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 [0x1048b02c]
mov ecx, dword [0x1048b030]
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 0x1000253d
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 [0x1048b02c]
mov ecx, dword [0x1048b030]
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.10006c40
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 0x100024ef
mov dword [ebp - 0xc8], 0
jmp 0x10002501
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 0x10002522
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10002522
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 0x10002556
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 0x47ca00
push 0x1000d098
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.10006a70
test eax, eax
jne 0x100025a1
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]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100025e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x17c]
call fcn.10006d40
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 0x10002657
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000264d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000264d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100076d9
add esp, 8
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jbe 0x1000266a
mov esi, dword [ebp - 0x34]
add edx, esi
jmp 0x1000266f
add edx, ecx
lea esi, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
cmp esi, edx
jne 0x10002693
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x100027a5
sub edx, esi
mov eax, 7
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x38], eax
cmp edx, 0x7ffffffe
ja 0x10002a63
cmp edx, eax
jbe 0x1000275c
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100026d3
mov ecx, 0x7fffffff
mov dword [ebp - 0x14c], 0x7ffffffe
add ecx, ecx
jmp 0x100026fc
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x14c], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x10002a68
add ecx, ecx
cmp ecx, 0x1000
jb 0x10002732
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10002a68
push eax
call fcn.100076a9
add esp, 4
test eax, eax
je 0x10002a2f
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 0x1000275f
test ecx, ecx
je 0x10002752
push ecx
call fcn.100076a9
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 0x1000275f
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
jmp 0x1000275f
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 0x10002799
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 0x10002780
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, 0x5c
mov byte [ebp - 4], 5
mov al, 0x18
mov byte [ebp - 0x16], 0
mov cl, 0xa
mov byte [ebp - 0x1c], dh
mov dl, 0x2e
mov byte [ebp - 0x16], 0
mov ah, 0x1a
mov ch, 0x68
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.100076e7
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 0x1000282f
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1000284a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 4
add edi, ecx
mov dword [edi], eax
mov byte [ebp - 0x151], 0
jmp 0x10002908
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 0x1000288d
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 0x10002878
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 0x100028ed
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x50]
je 0x100028e3
push 2
lea eax, [ebp - 0x50]
push eax
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100028ed
push esi
call fcn.10001ce0
test al, al
jne 0x10002901
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
mov dword [edi], eax
mov byte [ebp - 0x151], 0
jmp 0x10002908
mov byte [ebp - 0x151], 1
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x10002946
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000293c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002a2f
push ecx
push edx
call fcn.100076d9
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
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xb4], 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 0x100029c8
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xc4]
cmp dword [eax], ecx
jne 0x100029c8
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xe4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xd4]
mov dword [eax], edx
cmp byte [ebp - 0xb8], 0
je 0x100029dc
lea ecx, [ebp - 0x100]
call fcn.10006a70
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
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 0x10002a09
mov byte [ebp - 0x151], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x10002a3f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002a35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002a35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100076d9
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.100074c4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100011e0
call fcn.10001140
int3