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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
lea eax, [ebp - 0x164]
mov edx, dword [0x407e64]
call fcn.0040556c
xor eax, eax
push ebp
push 0x46832e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
mov ecx, 0x468344
mov edx, ebx
call fcn.00404d68
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x37
call fcn.00409740
test eax, eax
jne 0x468224
xor edx, edx
push ebp
push 0x4681ff
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x1c], 0
jne 0x4680e3
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x158]
call fcn.00404af4
jmp 0x4680f3
lea eax, [ebp - 4]
lea edx, [ebp - 0x1c]
mov ecx, 0xe
call fcn.00404ccc
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.00404d68
test byte [ebp - 0x15c], 0x10
je 0x468157
mov eax, dword [ebp - 4]
mov edx, 0x468350
call fcn.00404e68
je 0x4681e2
mov eax, dword [ebp - 4]
mov edx, 0x46835c
call fcn.00404e68
je 0x4681e2
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x16c]
mov ecx, 0x468368
mov edx, dword [ebp - 8]
call fcn.00404d68
mov eax, dword [ebp - 0x16c]
call fcn.00468030
pop ecx
jmp 0x4681e2
mov eax, dword [ebp - 8]
call fcn.00404f1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x468197
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x170]
call fcn.0040c4d8
mov ecx, dword [ebp - 0x170]
mov dl, 1
mov eax, dword [0x407ff8]
call fcn.0040ccf0
call fcn.004043ec
test al, 1
je 0x4681a8
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4681e2
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x174]
call fcn.0040c4d8
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x407ff8]
call fcn.0040ccf0
call fcn.004043ec
lea eax, [ebp - 0x164]
call fcn.00409790
test eax, eax
je 0x4680cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468219
lea eax, [ebp - 0x164]
call fcn.004097b4
push 0x468374
push ebx
push 0x468374
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404ddc
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.00405060
test eax, eax
jne 0x4682e2
mov eax, ebx
call fcn.00404f1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x468297
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x17c]
call fcn.0040c4d8
mov ecx, dword [ebp - 0x17c]
mov dl, 1
mov eax, dword [0x407ff8]
call fcn.0040ccf0
call fcn.004043ec
test al, 1
je 0x4682a8
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4682e2
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x180]
call fcn.0040c4d8
mov ecx, dword [ebp - 0x180]
mov dl, 1
mov eax, dword [0x407ff8]
call fcn.0040ccf0
call fcn.004043ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468335
lea eax, [ebp - 0x180]
mov edx, 5
call fcn.00404a80
lea eax, [ebp - 0x16c]
mov edx, 2
call fcn.00404a80
lea eax, [ebp - 0x164]
mov edx, dword [0x407e64]
call fcn.0040563c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a80
ret