Function at 0x4083b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x25c]
mov esi, ecx
push 0
push eax
call fcn.0042a4e0
add esp, 0xc
mov dword [ebp - 0x264], 1
mov ecx, esi
mov dword [ebp - 0x26c], 0xf
mov ebx, 1
call fcn.00407ef0
mov esi, eax
test esi, esi
je 0x40885b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x40885b
test al, 0x10
je 0x40885b
mov ecx, dword [0x457638]
cmp word [esi + ecx*2 - 2], 0x2a
jne 0x40844f
nop dword [eax]
nop dword [eax + eax]
dec ecx
mov dword [0x457638], ecx
cmp word [esi + ecx*2 - 2], 0x2a
je 0x408440
movzx eax, word [esi + ecx*2 - 2]
mov edx, eax
cmp eax, 0x5c
jne 0x408463
lea eax, [ecx - 1]
mov dword [0x457638], eax
cmp edx, 0x5c
lea eax, [ecx - 1]
cmovne eax, ecx
xor ecx, ecx
mov word [esi + eax*2], cx
test byte [ebp - 0x25c], bl
je 0x4084ac
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4084ac
push esi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push 0x78
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x260], edi
test edi, edi
je 0x40848a
mov eax, dword [0x457638]
xorps xmm0, xmm0
push dword [0x457708]
push 0
lea ecx, [esi + eax*2]
mov eax, dword [0x4441fc]
mov dword [ecx], eax
mov ax, word [0x444200]
mov word [ecx + 4], ax
movq qword [edi], xmm0
mov eax, dword [0x457638]
add eax, 2
push 0
mov word [edi + 0xc], ax
lea eax, [ebp - 0x25c]
push eax
push dword [0x457704]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x40882c
mov eax, 2
mov word [edi + 4], ax
mov ecx, 0x104
nop dword [eax]
mov eax, dword [ebp - 0x25c]
mov di, word [ebp - 0x230]
shr eax, 4
and al, 1
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x268], eax
je 0x408579
cmp di, 0x2e
jne 0x408579
mov ax, word [ebp - 0x22e]
test ax, ax
je 0x408763
cmp ax, di
jne 0x408579
cmp word [ebp - 0x22c], 0
je 0x408763
mov edx, ecx
lea ecx, [ebp - 0x230]
push 0x457630
call fcn.00402470
test eax, eax
jns 0x4085a8
xor edx, edx
mov dword [0x457630], 0
test di, di
mov eax, 0x104
cmovne edx, eax
jmp 0x4085af
movzx edx, word [0x457630]
mov eax, dword [ebp - 0x260]
movzx ecx, word [eax + ebx*8 + 4]
lea eax, [edx + 2]
add eax, ecx
dec ecx
movzx edi, ax
lea eax, [ebp - 0x230]
push eax
lea eax, [edx + 1]
movzx edx, ax
lea ecx, [esi + ecx*2]
call fcn.00402370
cmp byte [ebp - 0x268], 0
jne 0x408612
test byte [ebp - 0x25c], 1
je 0x4085f6
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
mov dword [ebp - 0x264], ecx
test ecx, ecx
je 0x4087d4
jmp 0x408763
mov eax, dword [ebp - 0x25c]
test eax, 0x400
je 0x40864c
test al, 1
je 0x40862f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call eax
mov ecx, eax
mov dword [ebp - 0x264], ecx
test ecx, ecx
je 0x4087d4
jmp 0x408763
test al, 1
je 0x40865c
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x26c]
inc ebx
cmp ebx, eax
jne 0x40869c
add eax, eax
mov dword [ebp - 0x26c], eax
shl eax, 3
push eax
push dword [ebp - 0x260]
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x4086a2
mov ebx, dword [ebp - 0x270]
jmp 0x4087da
mov eax, dword [ebp - 0x260]
lea ecx, [eax + ebx*8]
mov edx, 3
lea eax, [edi - 1]
mov dword [ebp - 0x268], ecx
add edi, 0xfffffffd
mov word [ecx + 4], ax
lea ecx, [esi + edi*2]
mov edi, 0x4441fc
sub edi, ecx
lea eax, [edx + 0x7ffffffb]
test eax, eax
je 0x4086e2
movzx eax, word [edi + ecx]
test ax, ax
je 0x4086e2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4086c4
push dword [0x457708]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
push ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x25c]
push eax
push dword [0x457704]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ecx, dword [ebp - 0x268]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x408763
movzx eax, word [ecx + 4]
xor ecx, ecx
mov ebx, dword [ebp - 0x270]
mov word [esi + eax*2 - 4], cx
test ebx, ebx
je 0x40873d
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call eax
test eax, eax
je 0x4087ca
mov eax, dword [ebp - 0x260]
mov ecx, 0x2a
movzx eax, word [eax + ebx*8 + 4]
mov word [esi + eax*2 - 2], cx
xor ecx, ecx
mov eax, dword [ebp - 0x260]
movzx eax, word [eax + ebx*8 + 4]
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x260]
add edi, 4
lea edi, [edi + ebx*8]
nop
test ebx, ebx
je 0x4087f4
lea eax, [ebp - 0x25c]
push eax
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408527
movzx eax, word [edi]
xor ecx, ecx
mov word [esi + eax*2 - 4], cx
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
dec ebx
sub edi, 8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4087ca
movzx eax, word [edi]
mov ecx, 0x2a
mov word [esi + eax*2 - 2], cx
xor ecx, ecx
movzx eax, word [edi]
mov word [esi + eax*2], cx
jmp 0x408770
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x260]
test ebx, ebx
je 0x4087f4
nop
push dword [eax + ebx*8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
sub ebx, 1
jne 0x4087e0
push dword [ebp - 0x260]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x45764c]
call edi
push esi
push 0
push dword [0x45764c]
call edi
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x45764c]
call esi
push edi
push 0
push dword [0x45764c]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret