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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x562448
push ecx
push ebx
push esi
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x562899
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 1
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x38], eax
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x3c], eax
mov dl, 1
mov eax, dword [0x4399a4]
call fcn.004464bc
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
call fcn.00563390
mov eax, dword [ebp - 0x38]
call fcn.00444b78
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x562842
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562814
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x20]
call fcn.00406e88
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406e88
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 8]
call fcn.004076b8
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
mov edx, 1
call fcn.00450848
mov eax, dword [ebp - 0x64]
mov edx, 0x5628b0
call fcn.0040751c
je 0x56251b
lea eax, [ebp - 8]
mov edx, 0x5628c0
call fcn.004077c0
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.00557c7c
mov eax, dword [ebp - 0x3c]
call fcn.00444b78
mov dword [ebp - 0x4c], eax
xor eax, eax
push ebp
push 0x56280d
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5627df
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
call fcn.00406e88
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
call fcn.0041e794
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0041d288
mov edx, dword [ebp - 0x6c]
mov eax, 0x5628d0
call fcn.00407950
jne 0x5627df
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407818
lea eax, [ebp - 0x10]
mov ecx, 0x5628c0
mov edx, dword [ebp - 0xc]
call fcn.00407818
mov eax, dword [ebp - 0x10]
call fcn.004075c4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.UnZip.dll_E_API_UnpackZip_Folder
cmp eax, 1
jne 0x5627df
lea eax, [ebp - 0x74]
mov ecx, 0x5628e8
mov edx, dword [ebp - 0x10]
call fcn.00407818
mov eax, dword [ebp - 0x74]
mov dl, 1
call fcn.0041e33c
cmp al, 1
jne 0x5627df
mov byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x5628e8
mov edx, dword [ebp - 0x10]
pop eax
call fcn.00407818
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x40]
call fcn.00444b78
mov dword [ebp - 0x50], eax
xor eax, eax
push ebp
push 0x5627d0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5627a2
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x28]
call fcn.00406e88
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x18]
call fcn.0041d61c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x562682
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x5627a2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
call fcn.00444b78
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x562795
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x562767
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
call fcn.00406e88
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.0041d238
mov eax, dword [ebp - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
call fcn.0041d238
mov eax, dword [ebp - 0x84]
mov ecx, 1
pop edx
call fcn.00450878
test eax, eax
je 0x562767
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x562761
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x562758
test esi, 0x400
je 0x562758
test esi, 0x10
je 0x562758
mov eax, dword [ebp - 0xc]
call fcn.004075c4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x562761
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_SetLastError
mov byte [ebp - 0x41], 1
jmp 0x562777
mov eax, dword [ebp - 0x54]
call fcn.00444134
test al, al
jne 0x5626ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56279c
cmp dword [ebp - 0x54], 0
je 0x562794
mov dl, 1
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x50]
call fcn.00444134
test al, al
jne 0x56263b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5627d7
cmp dword [ebp - 0x50], 0
je 0x5627cf
mov dl, 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x4c]
call fcn.00444134
test al, al
jne 0x56254c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562814
cmp dword [ebp - 0x4c], 0
je 0x56280c
mov dl, 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx - 4]
ret
mov eax, dword [ebp - 0x48]
call fcn.00444134
test al, al
jne 0x5624ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562849
cmp dword [ebp - 0x48], 0
je 0x562841
mov dl, 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx - 4]
ret