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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x940
mov eax, dword [0x40e060]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x944], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.00401590
test edi, edi
mov dword [esp + 0x954], 0
jne 0x402815
lea ecx, [esp + 0x20]
mov dword [esp + 0x954], 0xffffffff
call fcn.00401800
mov eax, 0x57
jmp 0x402cf1
mov eax, dword [edi + 0x10c]
mov ecx, dword [edi + 0x110]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0xc], ecx
je 0x402834
cmp byte [eax], 0
jne 0x402870
push 0x103
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x20]
mov dword [esp + 0x954], 0xffffffff
call fcn.00401800
mov eax, 0x103
jmp 0x402cf1
call fcn.00404fe6
mov esi, dword [esp + 0x1c]
add esp, 8
lea esp, [esp]
mov ecx, dword [esi]
test ecx, ecx
je 0x402d14
cmp byte [ecx], 0
je 0x402d14
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x402d14
cmp eax, dword [esi + 4]
jge 0x402d14
mov edx, eax
imul edx, edx, 0x108
lea ebx, [edx + ecx]
cmp byte [ebx], 0
je 0x402d14
inc eax
test ebx, ebx
mov dword [esi + 0xc], eax
je 0x402d14
mov eax, dword [ebx + 0x104]
dec eax
je 0x402a63
dec eax
jne 0x402870
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x438]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x43c]
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x28], 0x104
call fcn.00402460
test eax, eax
je 0x402870
lea edx, [esp + 0x438]
push edx
push 0x80000002
lea ecx, [esp + 0x28]
call fcn.00401840
test al, al
jne 0x40299a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
mov ecx, dword [0x40e700]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xc
push ecx
call esi
mov eax, dword [0x40e700]
push 0x400
lea edx, [esp + 0x544]
push edx
push 0xe
push eax
call esi
lea eax, [esp + 0x540]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402962
lea edi, [esp + 0x38]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402972
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x438]
push ecx
lea edx, [esp + 0x3c]
push edx
jmp 0x40285d
lea ecx, [esp + 0x20]
call fcn.004015b0
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, dword [esp + 0xc]
jne 0x4029b3
test edi, edi
je 0x402a01
mov ecx, dword [0x40e700]
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xc
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x438]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00404fe6
push 0x40e088
call fcn.0040533e
add esp, 0xc
test ebx, ebx
je 0x402a01
push 0x40c2a8
call fcn.00404fe6
add esp, 4
jmp 0x402870
lea ecx, [esp + 0x438]
push ecx
push 0x80000002
lea ecx, [esp + 0x28]
call fcn.004015e0
test al, al
je 0x402a4d
test edi, edi
je 0x402870
push 0x400
lea edx, [esp + 0x3c]
push edx
push 0xd
mov eax, dword [0x40e700]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x38]
push ecx
call fcn.00404fe6
add esp, 4
jmp 0x402870
test edi, edi
je 0x402870
push 0x400
lea edx, [esp + 0x3c]
push edx
push 0xe
jmp 0x402a2f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
jne 0x402a84
mov ecx, dword [eax + 0x120]
test ecx, ecx
jne 0x402a84
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x402a8d
push eax
push ebx
mov ecx, esi
call fcn.004025c0
cmp eax, 0xffffffff
jne 0x402b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402ab6
cmp eax, 3
je 0x402ab6
cmp eax, 0xa1
je 0x402ab6
cmp eax, 0x7b
jne 0x402cd3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
mov eax, dword [0x40e700]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea edx, [esp + 0x3c]
push edx
push 9
push eax
call esi
mov edx, dword [0x40e700]
push 0x400
lea ecx, [esp + 0x544]
push ecx
push 0xe
push edx
call esi
lea eax, [esp + 0x540]
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402b00
lea edi, [esp + 0x38]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402b10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
lea eax, [esp + 0x3c]
rep movsb byte es:[edi], byte [esi]
push eax
jmp 0x40285d
and eax, 0x10
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402b46
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402ba5
test edi, edi
push 0x400
je 0x402b5f
mov edx, dword [0x40e700]
lea ecx, [esp + 0x3c]
push ecx
push 0xb
push edx
jmp 0x402b6d
mov ecx, dword [0x40e700]
lea eax, [esp + 0x3c]
push eax
push 0xa
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.00404fe6
push 0x40e088
call fcn.0040533e
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x402ba5
push 0x40c2a8
call fcn.00404fe6
add esp, 4
jmp 0x402870
test edi, edi
je 0x402c05
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x402bd1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xd
jmp 0x402c65
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x91
je 0x402beb
call edi
cmp eax, 5
jne 0x402ca5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xf
jmp 0x402c65
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
jne 0x402c84
mov ecx, dword [eax + 0x120]
test ecx, ecx
jne 0x402c84
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402c42
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xd
jmp 0x402c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402c97
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402870
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0xe
mov ecx, dword [0x40e700]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x38]
push edx
call fcn.00404fe6
add esp, 4
jmp 0x402870
push eax
push ebx
mov ecx, esi
call fcn.00401f80
test eax, eax
je 0x402870
jmp 0x402ca5
push 4
push 0
push 0
push ebx
mov ecx, esi
call fcn.00401bd0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402cd3
mov ecx, dword [0x40e700]
push 0x400
lea eax, [esp + 0x3c]
push eax
push 0x11
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x38]
push edx
call fcn.00404fe6
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x954], 0xffffffff
call fcn.00401800
mov eax, esi
mov ecx, dword [esp + 0x94c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x944]
call fcn.00404e1d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x20]
mov dword [esp + 0x954], 0xffffffff
call fcn.00401800
xor eax, eax
jmp 0x402cf1