Function at 0x10020ef0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1002ffc2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push edi
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp eax, ebp
jne 0x10021071
mov edi, edi
mov eax, dword [esi + 0x20]
call fcn.10021700
mov edi, eax
cmp edi, ebp
je 0x1002104a
mov eax, dword [edi + 0x44]
cmp eax, ebp
je 0x10020f5a
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x48]
push ebp
push ebp
push 1
push ecx
push edx
call eax
add esp, 0x14
push edi
lea ecx, [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x14], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0xc], ebp
jne 0x10020fd7
cmp ebx, dword [edi + 0x40]
jg 0x10020fb0
mov ecx, esi
call fcn.10020950
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x10020fb0
mov eax, dword [esi + 0xc]
inc ebx
cmp eax, ebp
jne 0x10020fb0
cmp ebx, dword [edi + 0x40]
jg 0x10020fab
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xc], 0
jne 0x10020fa9
inc ebp
cmp ebp, 0xa
jl 0x10020f95
xor ebp, ebp
cmp dword [esi + 0xc], ebp
je 0x10020f74
cmp dword [esi + 0xc], ebp
jne 0x10020fd7
mov eax, dword [edi + 0x44]
cmp eax, ebp
je 0x10020fd1
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x4c]
push edi
push ecx
mov ecx, dword [edi + 0x48]
push 3
push edx
push ecx
call eax
add esp, 0x14
cmp dword [esp + 0x10], ebp
je 0x10020ff6
cmp dword [edi + 0x30], ebp
je 0x10020ff6
cmp dword [edi + 0x5c], ebp
je 0x10020ff6
cmp dword [edi + 0x34], 8
jb 0x10020fec
mov eax, dword [edi + 0x20]
jmp 0x10020fef
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], edi
mov byte [esp + 0x3c], 1
mov eax, dword [edi + 0x38]
cmp eax, ebp
je 0x10021012
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi + 0x38], ebp
lea ecx, [edi + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, edi
mov byte [esp + 0x3c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
cmp dword [esi + 0xc], ebp
jne 0x1002106b
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x10021060
mov edx, dword [esi + 0x24]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x10021071
cmp dword [esi + 0xc], ebp
je 0x10020f30
jmp 0x10021071
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x30
ret