Function at 0x57ad98
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x22
push 0
push 0
dec ecx
jne 0x57ada0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
xor eax, eax
push ebp
push 0x57b714
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov edx, 0x57b734
call fcn.00407c78
mov eax, dword [ebp - 0x38]
call fcn.00566378
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
call fcn.00579220
lea eax, [ebp - 0x14]
call fcn.005793f4
lea eax, [ebp - 0x18]
call fcn.00579220
lea edx, [ebp - 0x3c]
mov eax, 0x57b768
call fcn.00426014
push dword [ebp - 0x3c]
push 0x57b794
push 0x57b7a4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407d00
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0041ed04
test al, al
jne 0x57ae34
mov eax, dword [ebp - 0xc]
call fcn.0041edd0
lea eax, [ebp - 0xc]
mov edx, 0x57b794
call fcn.00407c20
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov edx, 0x57b7cc
call fcn.00407c78
mov eax, dword [ebp - 0x40]
call fcn.00566378
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004fc7bc
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x90]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x57b3ee
inc ebx
xor esi, esi
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0x28]
call fcn.005038cc
mov edx, dword [ebp - 8]
mov eax, 0x57b794
call fcn.0044eebc
test al, al
jne 0x57aeaf
lea eax, [ebp - 8]
mov edx, 0x57b794
call fcn.00407c20
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, 0x57b7f0
call fcn.00407c78
mov eax, dword [ebp - 0x44]
call fcn.00566378
mov edx, 0x57b80c
mov eax, dword [ebp - 0x14]
call fcn.0041dcf8
test al, al
je 0x57aedc
mov al, 1
jmp 0x57aee9
mov edx, dword [ebp - 0x18]
mov eax, 0x57b834
call fcn.0044ee68
test al, al
je 0x57aefe
mov edx, dword [ebp - 0x18]
mov eax, 0x57b848
call fcn.0044ee68
xor al, 1
jmp 0x57af00
xor eax, eax
test al, al
jne 0x57af57
lea eax, [ebp - 0x48]
mov ecx, 0x57b860
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x48]
mov dl, 1
call fcn.0041ec6c
test al, al
je 0x57af57
lea eax, [ebp - 0x4c]
mov ecx, 0x57b860
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x57b860
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x50]
pop edx
call fcn.0057a8a0
test al, al
je 0x57af57
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x54]
mov ecx, 0x57b884
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x54]
mov dl, 1
call fcn.0041ec6c
test al, al
je 0x57afaa
lea eax, [ebp - 0x58]
mov ecx, 0x57b884
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
mov ecx, 0x57b884
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0057a8a0
test al, al
je 0x57afaa
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x60]
mov ecx, 0x57b8a4
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x60]
mov dl, 1
call fcn.0041ec6c
test al, al
je 0x57affd
lea eax, [ebp - 0x64]
mov ecx, 0x57b8a4
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x57b8a4
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x68]
pop edx
call fcn.0057a8a0
test al, al
je 0x57affd
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x6c]
mov ecx, 0x57b8c8
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
mov ecx, 0x57b8c8
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x70]
pop edx
call fcn.0057a8a0
test al, al
je 0x57b032
mov byte [ebp - 0x21], 1
mov edx, 0x57b8ec
mov eax, dword [ebp - 0x14]
call fcn.0041dcf8
test al, al
je 0x57b0f2
lea eax, [ebp - 0x74]
mov ecx, 0x57b904
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
mov ecx, 0x57b904
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x78]
pop edx
call fcn.0057aa80
test al, al
je 0x57b07c
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x7c]
mov ecx, 0x57b934
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x57b934
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x80]
pop edx
call fcn.0057aa80
test al, al
je 0x57b0b1
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x84]
mov ecx, 0x57b95c
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov ecx, 0x57b95c
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x88]
pop edx
call fcn.0057aa80
test al, al
je 0x57b0f2
mov byte [ebp - 0x21], 1
mov edx, 0x57b984
mov eax, dword [ebp - 0x14]
call fcn.0041dcf8
test al, al
je 0x57b144
lea eax, [ebp - 0x8c]
mov ecx, 0x57b99c
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
mov ecx, 0x57b99c
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x90]
pop edx
call fcn.0057aa80
test al, al
je 0x57b144
mov byte [ebp - 0x21], 1
mov edx, 0x57b80c
mov eax, dword [ebp - 0x14]
call fcn.0041dcf8
test al, al
je 0x57b2df
lea eax, [ebp - 0x94]
mov ecx, 0x57b9cc
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov ecx, 0x57b9cc
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0x98]
pop edx
call fcn.0057aa80
test al, al
je 0x57b19a
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x9c]
mov ecx, 0x57b9cc
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
mov ecx, 0x57ba00
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xa0]
pop edx
call fcn.0057aa80
test al, al
je 0x57b1db
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0xa4]
mov ecx, 0x57ba3c
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
mov ecx, 0x57ba3c
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xa8]
pop edx
call fcn.0057aa80
test al, al
je 0x57b21c
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0xac]
mov ecx, 0x57ba64
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
mov ecx, 0x57ba64
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xb0]
pop edx
call fcn.0057aa80
test al, al
je 0x57b25d
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0xb4]
mov ecx, 0x57ba98
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov ecx, 0x57ba98
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xb8]
pop edx
call fcn.0057aa80
test al, al
je 0x57b29e
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0xbc]
mov ecx, 0x57bac8
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
mov ecx, 0x57bac8
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xc0]
pop edx
call fcn.0057aa80
test al, al
je 0x57b2df
mov byte [ebp - 0x21], 1
mov edx, 0x57bb04
mov eax, dword [ebp - 0x14]
call fcn.0041dcf8
test al, al
je 0x57b331
lea eax, [ebp - 0xc4]
mov ecx, 0x57bb2c
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc8]
mov ecx, 0x57bb2c
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xc8]
pop edx
call fcn.0057aa80
test al, al
je 0x57b331
mov byte [ebp - 0x21], 1
mov edx, dword [ebp - 0x18]
mov eax, 0x57bb5c
call fcn.0044ee68
test al, al
je 0x57b3e6
lea eax, [ebp - 0xcc]
mov ecx, 0x57bb70
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xcc]
call fcn.00566378
lea eax, [ebp - 0xd0]
mov ecx, 0x57bb70
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xd0]
push eax
lea eax, [ebp - 0xd4]
mov ecx, 0x57bb70
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xd4]
pop edx
call fcn.0057aa80
test al, al
je 0x57b3a5
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0xd8]
mov ecx, 0x57bba0
mov edx, dword [ebp - 0xc]
call fcn.00407c78
mov eax, dword [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
mov ecx, 0x57bba0
mov edx, dword [ebp - 8]
call fcn.00407c78
mov eax, dword [ebp - 0xdc]
pop edx
call fcn.0057aa80
test al, al
je 0x57b3e6
mov byte [ebp - 0x21], 1
inc esi
dec ebx
jne 0x57ae84
push 0
call sub.ole32.dll_CoInitialize
xor edx, edx
push ebp
push 0x57b5c7
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4376a8]
call fcn.00444474
mov dword [ebp - 0x2c], eax
xor edx, edx
push ebp
push 0x57b5ad
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov edx, 0x57bbd0
call fcn.00407c78
mov eax, dword [ebp - 0xe0]
call fcn.00566378
push 0
mov ecx, 0x57bbf4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.0056f288
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0xe8]
call fcn.0041e334
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe4]
mov edx, 0x57bbd0
call fcn.00407c78
mov eax, dword [ebp - 0xe4]
call fcn.00566378
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x57b597
inc ebx
xor esi, esi
lea ecx, [ebp - 0xec]
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0x1c]
call fcn.0057ac28
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.0041ec6c
test al, al
jne 0x57b58f
lea ecx, [ebp - 0xf0]
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edi
mov eax, dword [ebp - 0xf4]
call fcn.00407a2c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2e], al
cmp byte [ebp - 0x2e], 0
jne 0x57b55e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xf4], edi
mov eax, dword [ebp - 0xf4]
call fcn.00407a2c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x57b555
test ah, 4
je 0x57b555
test al, 0x10
je 0x57b555
mov dword [ebp - 0xf4], edi
mov eax, dword [ebp - 0xf4]
call fcn.00407a2c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2e], al
jmp 0x57b55e
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetLastError
lea ecx, [ebp - 0xfc]
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xf8]
mov edx, 0x57bc0c
call fcn.00407c78
mov eax, dword [ebp - 0xf8]
call fcn.00566378
inc esi
dec ebx
jne 0x57b49a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b5b4
mov eax, dword [ebp - 0x2c]
call fcn.00405628
ret