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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x420164]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x200
mov dword [ebp - 0x220], eax
xor edi, edi
lea eax, [ebp - 0x20c]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x214], esi
call sub.msvcrt.dll_memset
lea eax, [esi + 0x474]
mov dword [ebp - 0x218], edi
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov ecx, eax
mov ebx, edi
call fcn.00413902
mov esi, eax
test esi, esi
jns 0x414b5d
push esi
push 0x408780
push 0x408828
push 0x420710
push 0x40149c
push 2
call fcn.00411c1c
add esp, 0x18
jmp 0x414de0
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x414b66
mov esi, dword [ebp - 0x220]
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x414b9f
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408878
jmp 0x414b3f
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414bba
mov eax, 0x80070057
push eax
mov esi, eax
push 0x408920
jmp 0x414b3f
test al, 0x10
jne 0x414bd0
mov eax, 0x80070057
push eax
mov esi, eax
push 0x4089c8
jmp 0x414b3f
push 0x401490
push 0x10500
call fcn.0041db19
mov ebx, eax
mov dword [ebp - 0x210], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x414bfd
mov esi, 0x8007000e
push esi
push 0x408a70
jmp 0x414b3f
push 0x10500
push edi
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x214]
push esi
call fcn.00414e27
mov esi, eax
test esi, esi
jns 0x414c39
push esi
push 0x408b18
jmp 0x414b3f
mov ebx, edi
cmp dword [ebp - 0x218], ebx
jbe 0x414d52
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov ecx, dword [ebp - 0x21c]
lea eax, [ecx + 2]
mov dword [ebp - 0x224], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x414c62
sub ecx, dword [ebp - 0x224]
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x21c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x414dc2
push dword [ebp - 0x214]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
je 0x414db0
test al, 0x10
je 0x414ce9
push dword [ebp - 0x214]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x414d33
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jns 0x414d33
push esi
push 0x408d10
push 0x408828
push 0x420710
push 0x40149c
push 2
call fcn.00411c1c
add esp, 0x18
jmp 0x414dda
mov eax, dword [ebp + ebx*4 - 0x20c]
test eax, eax
je 0x414d9e
cmp eax, ecx
je 0x414d9e
push ecx
push ecx
push edi
push edi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_UnlockFile]
test eax, eax
je 0x414d8c
push dword [ebp + ebx*4 - 0x20c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x214]
mov dword [ebp + ebx*4 - 0x20c], edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
je 0x414d7a
mov edx, dword [ebp - 0x214]
inc ebx
add edx, 0x20a
mov dword [ebp - 0x214], edx
cmp ebx, dword [ebp - 0x218]
jb 0x414c53
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x414dd4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jns 0x414dd4
push esi
push 0x408fb0
jmp 0x414ccb
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408e60
jmp 0x414ccb
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408db8
jmp 0x414ccb
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408f08
jmp 0x414ccb
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408c68
jmp 0x414ccb
mov eax, 0x8000ffff
push eax
mov esi, eax
push 0x408bc0
jmp 0x414ccb
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x218], edi
jbe 0x414e08
mov eax, dword [ebp + edi*4 - 0x20c]
test eax, eax
je 0x414dff
cmp eax, 0xffffffff
je 0x414dff
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x218]
jb 0x414de8
test ebx, ebx
je 0x414e14
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d370
leave
ret 4