Function at 0x5302e0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63267d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
lea eax, [ebp - 0x48]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040ac90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e550
push str.ami_
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5b0
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5303a3
push 0
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5d0
push eax
call fcn.0043c4b0
add esp, 8
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e4f0
mov byte [ebp - 4], 1
push 0x653da0
lea ecx, [ebp - 0x2c]
call fcn.0040e5b0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5303e2
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.zz.7z
lea ecx, [ebp - 0xd0]
call fcn.0040e4b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x134]
add edx, 0x3fc
push edx
lea ecx, [ebp - 0x81]
call fcn.00474a20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.0040e530
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x53047e
push str.find_7z_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0xd4]
jmp 0x530cd4
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x13c]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5d0
push eax
call fcn.00429f30
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.0040e3e0
mov eax, dword [ebp - 0x134]
add eax, 0xa8c
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xb04
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x134]
call fcn.005319d0
movzx ecx, al
test ecx, ecx
jne 0x530553
push str.load_7z_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov dword [ebp - 0xf4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0xf4]
jmp 0x530cd4
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040e4f0
mov byte [ebp - 4], 4
push 0x653de8
lea ecx, [ebp - 0x80]
call fcn.0040e4b0
mov byte [ebp - 4], 5
call fcn.00412530
mov ecx, eax
call fcn.0040c9c0
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 2
jne 0x5305a1
push 0x653dec
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 3
jne 0x5305bc
push 0x653e04
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 0xd
jne 0x5305d7
push 0x653e1c
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 1
jne 0x5305f2
push 0x653e34
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 4
jne 0x53060d
push 0x653e4c
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 5
jne 0x530628
push 0x653e64
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 6
jne 0x530643
push 0x653e7c
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 7
jne 0x53065b
push 0x653e98
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 8
jne 0x530673
push 0x653eb4
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 0xc
jne 0x53068b
push 0x653ed0
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 9
jne 0x5306a3
push 0x653eec
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 0xb
jne 0x5306bb
push 0x653f04
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x5306d1
cmp dword [ebp - 0xa4], 0xa
jne 0x5306d1
push 0x653f20
lea ecx, [ebp - 0x80]
call fcn.0040e570
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040e590
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5306ff
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x134]
add eax, 0x3fc
push eax
lea ecx, [ebp - 0x81]
call fcn.00474a20
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5308da
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040e550
cmp dword [ebp - 0xa4], 2
jne 0x53075c
push 0x653f3c
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 3
jne 0x530777
push 0x653f50
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 0xd
jne 0x530792
push 0x653f68
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 1
jne 0x5307ad
push 0x653f80
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 4
jne 0x5307c8
push 0x653f94
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 5
jne 0x5307e3
push 0x653fa8
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 6
jne 0x5307fe
push 0x653fc0
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 7
jne 0x530816
push 0x653fd8
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 8
jne 0x53082e
push 0x653ff0
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 0xc
jne 0x530846
push 0x654008
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 9
jne 0x53085e
push 0x654020
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 0xb
jne 0x530876
push 0x654034
lea ecx, [ebp - 0x80]
call fcn.0040e570
jmp 0x53088c
cmp dword [ebp - 0xa4], 0xa
jne 0x53088c
push 0x654050
lea ecx, [ebp - 0x80]
call fcn.0040e570
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040e590
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5308ba
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x134]
add edx, 0x3fc
push edx
lea ecx, [ebp - 0x81]
call fcn.00474a20
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5309ff
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00530ec0
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x5309ff
mov dword [ebp - 0xac], 0
push 0
lea ecx, [ebp - 0xf8]
call sym.demo.exe_public:_void___thiscall_DuiLib::STRINGorID::constructor_wchar_t_const__
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, dword [ebp - 0xa8]
call fcn.00532c80
push 0x98
call fcn.005b4bed
add esp, 4
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x100], 0
je 0x53097b
mov ecx, dword [ebp - 0x100]
call fcn.00532cb0
mov dword [ebp - 0x140], eax
jmp 0x530985
mov dword [ebp - 0x140], 0
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xfc]
mov dword [eax + 0xaa8], ecx
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xaa8]
mov ecx, dword [ebp - 0xac]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xa8]
call fcn.00532bf0
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 0xaa8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xa8]
call fcn.00532c50
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 0xaa8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xaa8]
mov byte [eax + 0xc], 1
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040e4f0
mov byte [ebp - 4], 7
push 0x65406c
lea ecx, [ebp - 0xa0]
call fcn.0040e5b0
lea ecx, [ebp - 0xa0]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x530a4a
lea ecx, [ebp - 0xa0]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.close.png
lea ecx, [ebp - 0x11c]
call fcn.0040e4b0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0x3fc
push ecx
lea ecx, [ebp - 0x81]
call fcn.00474a20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x11c]
call fcn.0040e530
lea ecx, [ebp - 0xa0]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x530bbb
lea ecx, [ebp - 0xa0]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00530ec0
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x530bbb
mov dword [ebp - 0xb4], 0
push 0
lea ecx, [ebp - 0x120]
call sym.demo.exe_public:_void___thiscall_DuiLib::STRINGorID::constructor_wchar_t_const__
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.00532c80
push 0x98
call fcn.005b4bed
add esp, 4
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x128], 0
je 0x530b37
mov ecx, dword [ebp - 0x128]
call fcn.00532cb0
mov dword [ebp - 0x144], eax
jmp 0x530b41
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x124]
mov dword [edx + 0xaa4], eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0xaa4]
mov eax, dword [ebp - 0xb4]
mov dword [edx], eax
mov ecx, dword [ebp - 0xb0]
call fcn.00532bf0
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0xaa4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0xb0]
call fcn.00532c50
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0xaa4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xaa4]
mov byte [ecx + 0xc], 1
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0xaa4], 0
jne 0x530bf1
push 0x654094
push str.bullclose
mov eax, dword [0x6b42cc]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00530cf0
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0xaa4], eax
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0xaa4], 0
jne 0x530c72
push str.find_close_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov ecx, dword [ebp - 0x134]
call fcn.0052e980
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x12c]
jmp 0x530cd4
mov eax, dword [ebp - 0x134]
mov dword [eax + 0xaac], 1
mov dword [ebp - 0x130], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret