Function at 0x4065e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push str.DeleteExtractedFilesAndFolders
lea ecx, [ebp - 0x14]
call fcn.00404670
mov ebx, dword [0x5e3ce4]
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x5e3c90
mov dword [ebp - 4], 0
call fcn.00429aa0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x406743
mov eax, ebx
test ebx, ebx
je 0x406752
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, dword [ebx + 4]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x406675
cmp eax, dword [esi - 0x10]
jne 0x406675
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4066ad
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 0x406757
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 - 0x1c], edi
mov ecx, dword [ebp - 0x14]
push edi
push 0x5807cc
push ecx
push 8
push 0x5e3e78
mov byte [ebp - 4], 2
call fcn.0042b490
add esp, 0x14
lea edx, [ebp - 0xd]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x5e3e60
mov byte [ebp - 0xd], 1
call fcn.004326c0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406710
mov edx, dword [ebp - 0x1c]
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 - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40673b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x40663f
mov eax, dword [0x5e3cfc]
test eax, eax
je 0x4068b4
jmp 0x406763
call fcn.0044a5b1
call fcn.00401940
lea esp, [esp]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406752
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [ebp - 0x1c], 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 0x406795
cmp eax, dword [esi - 0x10]
jne 0x406795
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4067c9
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 0x406757
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
lea ebx, [edi + 0x10]
mov dword [ebp - 0x2c], ebx
cmp dword [ebx - 0xc], 0
mov byte [ebp - 4], 3
jle 0x406882
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x406882
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x24], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40681a
cmp eax, dword [esi]
jne 0x40681a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406855
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x406757
mov eax, dword [esi + 4]
mov dword [edi + 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, [edi + 0x10]
push eax
call fcn.0054cda6
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add edi, 0x10
mov dword [ecx], edi
mov ecx, dword [ebp - 0x28]
call fcn.00406220
test eax, eax
jne 0x406882
mov edx, dword [ebp - 0x14]
push ebx
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 ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4068aa
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
cmp dword [ebp - 0x1c], 0
jne 0x406760
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x5e3e60
call fcn.00434540
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x406957
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
jl 0x406957
push ecx
push eax
call fcn.0054d262
add esp, 8
test eax, eax
je 0x406957
sub eax, dword [ebp - 0x20]
sar eax, 1
cmp eax, 0xffffffff
je 0x406957
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jle 0x406957
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 - 0x18]
add esp, 0x10
add eax, 0xfffffff0
mov dword [ebp - 0x2c], 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 0x406957
mov eax, dword [ebp - 0x18]
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, 0x5e3cdc
call fcn.004553fa
mov ecx, 0x5e3cf8
call fcn.004553fa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40698e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
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 0x4069b1
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 0x4069d7
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