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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x62c87c
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406e14
xor eax, eax
push ebp
push 0x62ce54
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x400]
mov edx, 0x62ce70
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [0x4d63b8]
call fcn.00405420
mov ebx, eax
mov edx, 0x62ce94
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [0x4d84c4]
call fcn.00405420
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, 0x62cec0
call fcn.004080d0
jne 0x62c901
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x84]
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00404924
jmp 0x62ccd9
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x84]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00407e38
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.004dd08c
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.00404924
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0041dc98
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0xc]
mov ecx, 0x62ced0
call fcn.00407f98
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0041d598
test al, al
jne 0x62c95d
mov eax, dword [ebp - 0xc]
call fcn.0041d664
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0041d598
test al, al
je 0x62ccd9
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004552e0
test al, al
je 0x62ccd9
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, 0x62cee8
mov eax, dword [ebp - 0xc]
call fcn.00454790
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x40b5a0]
call fcn.004093bc
xor esi, esi
jmp 0x62ca1c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + esi*4]
call fcn.00407158
mov eax, dword [ebp - 0x10]
call fcn.00407d34
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x62ca1b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
call fcn.00407d34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x62ca12
test edi, 0x400
je 0x62ca12
test edi, 0x10
je 0x62ca12
mov eax, dword [ebp - 0x10]
call fcn.00407d34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x62ca1b
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_SetLastError
inc esi
mov eax, dword [ebp - 0x1c]
call fcn.00409094
cmp esi, eax
jl 0x62c9a9
lea eax, [ebp - 0x1c]
mov edx, dword [0x40b5a0]
call fcn.00409380
mov dl, 1
mov eax, dword [0x628ca0]
call fcn.00628d40
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x45f9e8]
call fcn.0046aa44
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x620eb8]
call fcn.004051bc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov edx, dword [ebp - 4]
call fcn.00407110
lea eax, [ebp - 0x10]
call fcn.00455140
lea eax, [ebp - 0x14]
call fcn.00455140
push 0x41200000
movzx ecx, byte [0x62cef4]
mov edx, 0x62cf04
mov eax, dword [ebp - 0x20]
call fcn.006211d8
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x62caa8
sub eax, 4
mov eax, dword [eax]
dec eax
jne 0x62cabc
push 0x41800000
push 0
mov eax, dword [ebp - 0x20]
call fcn.0062123c
jmp 0x62cacb
push 0x41500000
push 0
mov eax, dword [ebp - 0x20]
call fcn.0062123c
push 0x62cf20
push 0xa
mov ecx, dword [0x662c38]
mov dl, 1
mov eax, dword [0x43997c]
call fcn.00445c4c
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.0044571c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00620f68
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x30]
call fcn.0046ab80
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00628d9c
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x34], edx
call fcn.004051ec
push 0x41300000
movzx ecx, byte [0x62cef4]
mov edx, 0x62cf04
mov eax, dword [ebp - 0x20]
call fcn.006211d8
mov eax, ebx
test eax, eax
je 0x62cb4e
sub eax, 4
mov eax, dword [eax]
dec eax
jne 0x62cb65
push 0x41e00000
push 0x3f800000
mov eax, dword [ebp - 0x20]
call fcn.0062123c
jmp 0x62cb77
push 0x41c80000
push 0x3f800000
mov eax, dword [ebp - 0x20]
call fcn.0062123c
push 0x62cf3c
push 0xa
mov ecx, dword [0x662c38]
mov dl, 1
mov eax, dword [0x43997c]
call fcn.00445c4c
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.0044571c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00620f68
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x30]
call fcn.0046ab80
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00628d9c
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x34], edx
call fcn.004051ec
mov eax, dword [ebp - 0x14]
call fcn.00407d34
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x62cc27
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x62cc21
test ah, 4
je 0x62cc21
test al, 0x10
je 0x62cc21
mov eax, dword [ebp - 0x14]
call fcn.00407d34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x62cc27
push esi
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x10]
call fcn.00407d34
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x62cc78
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x62cc72
test ah, 4
je 0x62cc72
test al, 0x10
je 0x62cc72
mov eax, dword [ebp - 0x10]
call fcn.00407d34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x62cc78
push esi
call sub.kernel32.dll_SetLastError
call fcn.00404984
push dword [ebp - 0xc]
mov eax, 0x1869f
call fcn.004049ac
lea edx, [ebp - 0x48]
call fcn.0041cbb4
push dword [ebp - 0x48]
push 0x62cf58
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00408020
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
call fcn.00628eac
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x20], edx
call fcn.004051ec
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x30], edx
call fcn.004051ec
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x2c], edx
call fcn.004051ec
mov dl, 1
mov eax, dword [0x6212f4]
call fcn.00621430
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
dec eax
je 0x62ccfa
dec eax
je 0x62cd09
jmp 0x62cd16
lea edx, [ebp - 8]
mov eax, dword [0x603904]
call fcn.00603a94
jmp 0x62cd16
lea edx, [ebp - 8]
mov eax, dword [0x603904]
call fcn.00603a64
xor eax, eax
push ebp
push 0x62cded
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041d598
test al, al
je 0x62cde3
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004552e0
test al, al
je 0x62cde3
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, 0x62cf70
mov eax, dword [ebp - 8]
call fcn.00454790
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x40b5a0]
call fcn.004093bc
xor esi, esi
jmp 0x62cdc9
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + esi*4]
call fcn.00407158
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx]
test al, al
je 0x62cdc8
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.00404924
mov eax, dword [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x24]
call fcn.00621564
mov eax, dword [ebp - 0x50]
pop edx
call fcn.0041c45c
test al, al
je 0x62cdc8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
call fcn.006216c8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 4]
inc esi
mov eax, dword [ebp - 0x1c]
call fcn.00409094
cmp esi, eax
jl 0x62cd70
lea eax, [ebp - 0x1c]
mov edx, dword [0x40b5a0]
call fcn.00409380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62cdf7
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 3
jne 0x62ccef
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x24], edx
call fcn.004051ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62ce5b
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00406d90
lea eax, [ebp - 0x3c]
call fcn.00406d78
lea eax, [ebp - 0x1c]
mov edx, dword [0x40b5a0]
mov ecx, 2
call fcn.00408748
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00406d90
ret