Function at 0x454a00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x459ca4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x18]
call fcn.004547a0
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x18]
lea esi, [ebp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.004543b0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00454220
cmp dword [esp + 0x20], ebx
je 0x454bdb
push edi
lea ebx, [ebx]
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x454bda
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
lea edi, [ebp + 0xc]
mov ecx, edi
lea esi, [eax + 8]
call fcn.00454c80
test eax, eax
jne 0x454a9f
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x258
ja 0x454bda
jmp 0x454bce
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x454abd
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00454220
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x18]
call fcn.00405f80
mov edx, dword [0x469890]
mov ecx, 0x469890
mov byte [esp + 0x30], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov byte [esp + 0x38], 2
call fcn.00454800
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [esi + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00454c90
test eax, eax
je 0x454b2f
push esi
lea ecx, [ebp + 0x10]
call fcn.00454510
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x454b88
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea edi, [esi + 8]
mov dword [edx + 4], eax
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x24]
mov byte [esp + 0x30], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 8]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x28]
add esp, 4
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454bab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x454a60
pop edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004547c0
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x28]
add esp, 4
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret