Function at 0x423420
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 [0x408440]
call fcn.00405b48
xor eax, eax
push ebp
push 0x42370a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x423720
mov edx, esi
call fcn.004053c8
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x37
call fcn.0040a12c
test eax, eax
jne 0x42360a
xor edx, edx
push ebp
push 0x4235e5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x18], 0
jne 0x4234d3
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x154]
call fcn.00405148
jmp 0x4234e3
lea eax, [ebp - 4]
lea edx, [ebp - 0x18]
mov ecx, 0xe
call fcn.00405320
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004053c8
test byte [ebp - 0x158], 0x10
je 0x423547
mov eax, dword [ebp - 4]
mov edx, 0x42372c
call fcn.004054d8
je 0x4235c8
mov eax, dword [ebp - 4]
mov edx, 0x423738
call fcn.004054d8
je 0x4235c8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x170]
mov ecx, 0x423744
mov edx, dword [ebp - 8]
call fcn.004053c8
mov eax, dword [ebp - 0x170]
call fcn.00423420
pop ecx
jmp 0x4235c8
mov eax, dword [ebp - 8]
call fcn.00405540
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x423583
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x174]
call fcn.0040cfe8
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x4085d4]
call fcn.0040d7fc
call fcn.00404af8
test al, 1
je 0x423591
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 0x4235c8
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x178]
call fcn.0040cfe8
mov ecx, dword [ebp - 0x178]
mov dl, 1
mov eax, dword [0x4085d4]
call fcn.0040d7fc
call fcn.00404af8
lea eax, [ebp - 0x168]
call fcn.0040a17c
test eax, eax
jle 0x4234bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4235ff
lea eax, [ebp - 0x168]
call fcn.0040a1a0
push 0x423750
push esi
push 0x423750
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x17c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.0040568c
test eax, eax
jne 0x4236be
mov eax, esi
call fcn.00405540
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x423679
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x180]
call fcn.0040cfe8
mov ecx, dword [ebp - 0x180]
mov dl, 1
mov eax, dword [0x4085d4]
call fcn.0040d7fc
call fcn.00404af8
test al, 1
je 0x423687
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 0x4236be
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x184]
call fcn.0040cfe8
mov ecx, dword [ebp - 0x184]
mov dl, 1
mov eax, dword [0x4085d4]
call fcn.0040d7fc
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423711
lea eax, [ebp - 0x184]
mov edx, 5
call fcn.004050d4
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.004050d4
lea eax, [ebp - 0x168]
mov edx, dword [0x408440]
call fcn.00405c18
lea eax, [ebp - 8]
mov edx, 2
call fcn.004050d4
ret