Function at 0x405420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568b60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DeleteExtractedContents
lea ecx, [ebp - 0x14]
call fcn.00404670
mov ebx, dword [0x5e3cac]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40556e
mov eax, ebx
test ebx, ebx
je 0x40557d
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov ebx, dword [ebx + 4]
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4054a0
cmp eax, dword [esi - 0x10]
jne 0x4054a0
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4054d8
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405582
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0054cda6
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x14]
push edi
push str.Deleting_file_:__s_n
push ecx
push 8
push 0x5e3e78
mov byte [ebp - 4], 1
call fcn.0042b490
add esp, 0x14
lea edx, [ebp - 0xd]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x5e3e60
mov byte [ebp - 0xd], 1
call fcn.004326c0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40553b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push str.Could_not_delete_file_:__s
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x14
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x40546a
mov eax, dword [0x5e3cc4]
test eax, eax
je 0x4056e6
jmp 0x40558a
call fcn.0044a5b1
call fcn.00401940
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40557d
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4055bc
cmp eax, dword [esi - 0x10]
jne 0x4055bc
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4055f0
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405582
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0054cda6
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x24], edi
cmp dword [edi - 0xc], 0
mov byte [ebp - 4], 2
jle 0x4056b4
mov ecx, dword [ebp - 0x14]
push edi
push str.Deleting_folder_:__s
push ecx
push 8
push 0x5e3e78
call fcn.0042b490
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
add esp, 0x10
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40564a
cmp eax, dword [esi]
jne 0x40564a
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x405685
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x405582
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0054cda6
add esp, 0x10
mov ecx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [ecx], ebx
mov ecx, 0x5e3e60
call fcn.0042dd10
test eax, eax
jne 0x4056b4
mov edx, dword [ebp - 0x14]
push edi
push str.Could_not_delete_folder_:__s
push edx
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x14
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4056dc
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp dword [ebp - 0x18], 0
jne 0x405587
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x5e3e60
call fcn.00434540
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 3
jle 0x40575d
mov edx, dword [ebp - 0x14]
push eax
push str.Deleting_folder_:__s
push edx
push 8
push 0x5e3e78
call fcn.0042b490
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401e40
add eax, 0x10
add esp, 4
mov ecx, 0x5e3e60
mov dword [esi], eax
call fcn.0042dd10
test eax, eax
jne 0x40575d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push str.Could_not_delete_folder_:__s
push ecx
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x14
mov ecx, 0x5e3ca4
call fcn.004553fa
mov ecx, 0x5e3cc0
call fcn.004553fa
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret