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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551431
mov eax, dword fs:[0]
push eax
mov eax, 0xdca8
call fcn.00538d40
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xdc8c], edi
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0xdc78]
sub ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xdc9c], ebx
call fcn.0040cf50
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00537c80
add esp, 0xc
lea ecx, [ebp - 0xdcb4]
call fcn.00412c44
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0xdc90], 0
jbe 0x40761e
mov dword [ebp - 0xdc84], ebx
lea ebx, [esi + 0x208]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xdc88], ebx
push ebx
lea eax, [ebx - 0x208]
push eax
push 0x561e78
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053777e
add esp, 0x14
lea eax, [ebp - 0x7d4]
lea ecx, [ebp - 0xdc78]
push eax
push ebx
call fcn.0040dc00
mov ebx, dword [ebp - 0x5cc]
mov dword [ebp - 0xdc7c], ebx
test ebx, ebx
jle 0x4075d1
lea esp, [esp]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407327
test al, 1
je 0x407327
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4074fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x407357
cmp eax, 5
je 0x407357
cmp eax, 0x91
jne 0x4074fa
call fcn.004122b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407669
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xdc80], esi
mov eax, dword [ebp - 0xdcac]
xor ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0xdc98], eax
test eax, eax
jle 0x4074a8
test ebx, ebx
js 0x407664
cmp ebx, eax
jge 0x407664
mov eax, dword [ebp - 0xdcb0]
mov edx, dword [eax + ebx*4]
lea eax, [esi - 0x10]
mov dword [ebp - 0xdc94], eax
lea edi, [edx - 0x10]
cmp edi, eax
je 0x40747c
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0xdca0], ecx
jl 0x407467
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x407467
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x407400
cmp ecx, dword [edi]
jne 0x407400
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40743c
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40765f
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
add edi, 0x10
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push edi
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00537190
add esp, 0x10
mov ecx, dword [ebp - 0xdca0]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40745c
mov edx, dword [ebp - 0xdc94]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0xdc80], esi
jmp 0x40747c
push dword [edx - 0xc]
lea ecx, [ebp - 0xdc80]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0xdc80]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4074d6
inc ebx
cmp ebx, dword [ebp - 0xdc98]
jge 0x4074a2
mov eax, dword [ebp - 0xdcac]
jmp 0x407395
mov edi, dword [ebp - 0xdc8c]
cmp dword [ebp + 0x1c], 0
je 0x4074d6
push 1
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00407910
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xdcac]
lea ecx, [ebp - 0xdcb4]
call fcn.00412ebe
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4074f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0xdc7c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005372b7
mov edx, dword [ebp + ebx*4 - 0x504]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x21c], 7
add esp, 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40753d
xor ecx, ecx
jmp 0x407551
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407542
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00409480
cmp dword [ebp - 0x21c], 8
mov edi, dword [ebp - 0x220]
jb 0x40757b
push dword [ebp - 0x230]
call fcn.0041143a
add esp, 4
sub esi, edi
mov dword [ebp - 0x21c], 7
dec esi
mov dword [ebp - 0x220], 0
xor eax, eax
add esi, esi
mov word [ebp - 0x230], ax
cmp esi, 0x208
jae 0x407673
push 0xa
mov word [ebp + esi - 0x218], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0xdc8c]
dec ebx
mov dword [ebp - 0xdc7c], ebx
test ebx, ebx
jg 0x407300
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0xdc84]
xor edx, edx
mov eax, ebx
mov ecx, edi
div esi
push dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
push eax
call fcn.004083b0
add ebx, dword [ebp - 0xdc9c]
mov eax, dword [ebp - 0xdc90]
mov dword [ebp - 0xdc84], ebx
inc eax
mov ebx, dword [ebp - 0xdc88]
add ebx, 0x410
mov dword [ebp - 0xdc90], eax
mov dword [ebp - 0xdc88], ebx
cmp eax, esi
jb 0x4072b1
lea ecx, [ebp - 0xdcb4]
mov byte [ebp - 4], 0
call fcn.00412c5b
lea ecx, [ebp - 0xdc78]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cfc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret 0x18
call fcn.004047c0
call fcn.0041148d
push 0x80004005
call fcn.004022c0
call fcn.00537eb5
int3