Function at 0x10080210
Capabilities:
Check if file exists
Delete directory
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100b1502
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x2fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30c]
xor esi, esi
push 0xffffffffffffffff
mov edi, 7
push esi
lea ecx, [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.10002570
push 0x10
lea ecx, [esp + 0x28]
mov dword [esp + 0x308], esi
call fcn.10080c10
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], esi
mov word [esp + 0x88], si
push 4
mov byte [esp + 0x308], 1
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x100802f0
mov dword [eax], 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x100802f4
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x24]
push eax
mov ebx, 0x100b9d24
lea esi, [esp + 0x44]
mov byte [esp + 0x308], 2
call fcn.10080b60
add esp, 4
lea edx, [esp + 0x5c]
mov ecx, eax
mov esi, edi
mov byte [esp + 0x304], 3
call fcn.10085570
mov byte [esp + 0x304], 2
cmp dword [esp + 0x58], 8
mov bl, al
jb 0x1008034d
mov ecx, dword [esp + 0x44]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x100804f1
lea esi, [esp + 0x5c]
call fcn.10085510
test al, al
jne 0x100803cf
mov eax, dword [esp + 0x7c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0x84]
or eax, ecx
push edx
lea eax, [esp + 0x28]
lea edi, [esp + 0x44]
push eax
je 0x100803a0
call fcn.1000bfc0
push eax
mov byte [esp + 0x310], 4
call fcn.10080210
add esp, 0xc
mov byte [esp + 0x304], 2
jmp 0x100803b5
call fcn.1000bfc0
add esp, 8
lea edi, [esp + 0x40]
call fcn.100801b0
movzx eax, al
cdq
cmp dword [esp + 0x58], 8
mov dword [esp + 0x18], edx
mov ebp, eax
jb 0x100803cf
mov ecx, dword [esp + 0x44]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
lea edx, [esp + 0xa4]
push edx
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x100804f1
lea edi, [esp + 0x5c]
lea ecx, [esp + 0xa4]
call fcn.10085600
mov edx, dword [esp + 0x7c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x1008047d
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x1008047d
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x1008043b
lea eax, [esp + 0x88]
cmp word [eax], 0x2e
jne 0x1008047d
cmp ecx, 1
je 0x100803db
jae 0x10080455
call esi
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x1008046d
lea eax, [esp + 0x88]
cmp word [eax + 2], 0x2e
jne 0x1008047d
cmp ecx, 2
je 0x100803db
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
lea edi, [esp + 0x44]
push edx
je 0x100804b9
call fcn.1000bfc0
push eax
mov byte [esp + 0x310], 5
call fcn.10080210
add esp, 0xc
mov byte [esp + 0x304], 2
jmp 0x100804ce
call fcn.1000bfc0
add esp, 8
lea edi, [esp + 0x40]
call fcn.100801b0
movzx eax, al
cdq
add ebp, eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x58], 8
jb 0x100803db
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x100803db
mov eax, dword [edi]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x1008050b
push eax
call esi
test eax, eax
je 0x1008050b
mov dword [edi], 0xffffffff
push 0x20
lea ecx, [esp + 0x28]
call fcn.10080c10
mov eax, dword [esp + 0x2c]
mov ebx, 8
add esp, 4
cmp dword [esp + 0x3c], ebx
jae 0x1008052c
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1008055b
and eax, 0xfffffffe
cmp eax, 0xffffffff
je 0x1008055b
mov ecx, dword [esp + 0x28]
and eax, 0xffffb1af
cmp dword [esp + 0x3c], ebx
jae 0x10080553
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x28]
jae 0x10080569
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x1008057e
add ebp, 1
adc ebx, 0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x10080592
push eax
call esi
test eax, eax
je 0x10080592
mov dword [edi], 0xffffffff
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, 8
add esp, 4
cmp dword [esp + 0x9c], esi
jb 0x100805b9
mov ecx, dword [esp + 0x88]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], eax
mov word [esp + 0x88], ax
jb 0x100805e8
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, ebx
mov eax, ebp
mov ecx, dword [esp + 0x2fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.100a4489
add esp, 0x2f4
ret