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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x184], 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 - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
lea eax, [ebp - 0x168]
mov edx, dword [0x408098]
call fcn.004056e8
xor eax, eax
push ebp
push 0x462f42
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x462f58
mov edx, esi
call fcn.00404f14
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x37
call fcn.00409b4c
test eax, eax
jne 0x462e42
xor edx, edx
push ebp
push 0x462e1d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x18], 0
jne 0x462d0b
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x154]
call fcn.00404c94
jmp 0x462d1b
lea eax, [ebp - 4]
lea edx, [ebp - 0x18]
mov ecx, 0xe
call fcn.00404e6c
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.00404f14
test byte [ebp - 0x158], 0x10
je 0x462d7f
mov eax, dword [ebp - 4]
mov edx, 0x462f64
call fcn.00405024
je 0x462e00
mov eax, dword [ebp - 4]
mov edx, 0x462f70
call fcn.00405024
je 0x462e00
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x170]
mov ecx, 0x462f7c
mov edx, dword [ebp - 8]
call fcn.00404f14
mov eax, dword [ebp - 0x170]
call fcn.00462c58
pop ecx
jmp 0x462e00
mov eax, dword [ebp - 8]
call fcn.0040508c
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x462dbb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x174]
call fcn.0040ceb4
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x408250]
call fcn.0040d6c8
call fcn.00404554
test al, 1
je 0x462dc9
and eax, 0xfffffffe
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x462e00
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x178]
call fcn.0040ceb4
mov ecx, dword [ebp - 0x178]
mov dl, 1
mov eax, dword [0x408250]
call fcn.0040d6c8
call fcn.00404554
lea eax, [ebp - 0x168]
call fcn.00409b9c
test eax, eax
jle 0x462cf5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x462e37
lea eax, [ebp - 0x168]
call fcn.00409bc0
push 0x462f88
push esi
push 0x462f88
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00404f90
mov eax, dword [ebp - 0x17c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.004051d8
test eax, eax
jne 0x462ef6
mov eax, esi
call fcn.0040508c
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x462eb1
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x180]
call fcn.0040ceb4
mov ecx, dword [ebp - 0x180]
mov dl, 1
mov eax, dword [0x408250]
call fcn.0040d6c8
call fcn.00404554
test al, 1
je 0x462ebf
and eax, 0xfffffffe
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x462ef6
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x184]
call fcn.0040ceb4
mov ecx, dword [ebp - 0x184]
mov dl, 1
mov eax, dword [0x408250]
call fcn.0040d6c8
call fcn.00404554
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f49
lea eax, [ebp - 0x184]
mov edx, 5
call fcn.00404c20
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00404c20
lea eax, [ebp - 0x168]
mov edx, dword [0x408098]
call fcn.004057b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c20
ret