Function at 0x408bf0
Capabilities:
Check if file exists
Delete directory
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420113
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor edi, edi
mov ebx, 7
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov word [esp + 0x78], di
mov dword [esp + 0xa0], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
mov eax, ecx
mov byte [esp + 0xa0], 1
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x408c72
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x7c]
call fcn.004053a0
mov esi, dword [esp + 0x88]
cmp esi, edi
jne 0x408cd9
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x408caf
mov eax, dword [esp + 0x5c]
push eax
call fcn.004127aa
add esp, 4
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
jb 0x408cd2
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4092b5
push 1
lea ebx, [esp + 0x78]
call fcn.00409ee0
lea ebx, [esi - 1]
cmp eax, ebx
jne 0x408d08
cmp ebx, esi
ja 0x408cfd
or eax, 0xffffffff
lea esi, [esp + 0x74]
call fcn.00405440
jmp 0x408d08
sub ebx, esi
lea esi, [esp + 0x74]
call fcn.00409f80
mov eax, vtable.MemoryControl.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x408d3f
lea eax, [esp + 0x78]
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esp + 0x34]
push ecx
push edi
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.0040a6a0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
mov ebx, eax
call fcn.0040a6a0
cmp dword [esp + 0x8c], 8
mov dword [esp + 0x14], eax
jb 0x408d8f
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
jmp 0x408d97
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
mov ecx, esi
call edx
test al, al
jne 0x408dfc
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x408dc6
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x408dd7
push eax
call fcn.004133d3
add esp, 4
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x408def
mov eax, dword [esp + 0x5c]
push eax
call fcn.004127aa
add esp, 4
mov dword [esp + 0x70], 7
jmp 0x408cb3
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0xa0], 5
mov edx, dword [esp + 0x2c]
push edx
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.00405e00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
lea edx, [esp + 0x20]
call fcn.00405e00
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
je 0x408e6d
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jne 0x408f45
mov eax, dword [esp + 0x78]
mov ebx, 8
cmp dword [esp + 0x8c], ebx
jae 0x408e83
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408ed6
lea esi, [esp + 0x1c]
call fcn.00406040
lea esi, [esp + 0x30]
call fcn.00406040
lea esi, [esp + 0x40]
call fcn.0040a650
lea esi, [esp + 0x4c]
call fcn.0040a650
lea esi, [esp + 0x58]
call fcn.00404be0
lea esi, [esp + 0x74]
call fcn.00404be0
xor al, al
jmp 0x4092b5
lea esi, [esp + 0x1c]
call fcn.00406040
lea esi, [esp + 0x30]
call fcn.00406040
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x408ef9
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x408f0a
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0x70], ebx
jb 0x408f1d
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
jb 0x4092b3
mov edx, dword [esp + 0x78]
push edx
jmp 0x4092ab
add eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x409129
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x10], ecx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x60]
call fcn.00404d90
mov esi, dword [esp + 0x20]
test esi, esi
je 0x408f9e
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x408fa7
call fcn.00412b4f
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add esi, eax
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x60]
call fcn.00405620
mov esi, dword [esp + 0x20]
test esi, esi
je 0x408fe5
mov edi, dword [esp + 0x24]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x408ff2
call fcn.00412b4f
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push 1
lea ebx, [esi + ecx]
call fcn.00409ee0
test esi, esi
mov ebx, eax
je 0x409021
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x40902a
call fcn.00412b4f
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx + 0x14]
sub eax, 1
cmp ebx, eax
mov eax, dword [esp + 0x5c]
jne 0x4090e9
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x409050
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40910e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40910e
lea esi, [esp + 0x1c]
call fcn.00406040
lea esi, [esp + 0x30]
call fcn.00406040
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
je 0x409093
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x4090a4
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0x70], edi
jb 0x4090b7
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], si
jb 0x408cd2
mov edx, dword [esp + 0x78]
push edx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4092b5
cmp dword [esp + 0x70], 8
jae 0x4090f4
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40910e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4091d6
mov eax, dword [esp + 0x14]
sub dword [esp + 0x10], 0x1c
sub eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x408f66
xor edi, edi
mov eax, dword [esp + 0x78]
mov ebx, 8
cmp dword [esp + 0x8c], ebx
jae 0x40913f
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4091ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4091ef
lea esi, [esp + 0x1c]
call fcn.00406040
lea esi, [esp + 0x30]
call fcn.00406040
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x409180
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x409191
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0x70], ebx
jb 0x4091a4
mov edx, dword [esp + 0x5c]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
jb 0x408cd2
mov eax, dword [esp + 0x78]
push eax
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4092b5
lea esi, [esp + 0x1c]
call fcn.00406040
lea esi, [esp + 0x30]
call fcn.00406040
xor edi, edi
jmp 0x408db5
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x409217
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x40924b
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x38]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x44]
cmp eax, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x409268
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x409279
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0x70], ebx
jb 0x40928c
mov eax, dword [esp + 0x5c]
push eax
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
jb 0x4092b3
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 4