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

Disassembly:
sub esp, 0x354
mov eax, dword [0x472cf0]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x364]
lea edx, [esp + 0x258]
xor ebx, ebx
xor ebp, ebp
push edi
mov dword [esp + 0x10], esi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x41d682
lea edi, [esp + 0x25c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x41d698
mov ax, word [0x45b7ec]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x260]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41d6d0
or eax, eax
jmp 0x41d92f
test byte [esp + 0x18], 0x10
je 0x41d7d6
cmp byte [esp + 0x36c], bl
je 0x41d8c7
lea eax, [esp + 0x44]
push 0x45b7e8
push eax
call fcn.0043dd0c
add esp, 8
test eax, eax
je 0x41d8c7
lea ecx, [esp + 0x44]
push 0x45b7e4
push ecx
call fcn.0043dd0c
add esp, 8
test eax, eax
je 0x41d8c7
push 0x103
lea edx, [esp + 0x15d]
push ebx
push edx
mov byte [esp + 0x164], bl
call fcn.0043a0d0
lea edx, [esp + 0x164]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x41d744
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41d756
lea edi, [esp + 0x158]
sub eax, edx
add edi, 0xffffffff
jmp 0x41d770
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x41d770
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x158]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x41d794
mov ax, word [0x45b7c0]
mov ecx, dword [esp + 0x370]
mov edx, dword [esp + 0x36c]
push ecx
mov word [edi], ax
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0041d650
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
jne 0x41d8e6
jmp 0x41d8c3
push 0x103
lea ecx, [esp + 0x15d]
push ebx
push ecx
mov byte [esp + 0x164], bl
call fcn.0043a0d0
lea edx, [esp + 0x164]
add esp, 0xc
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x41d800
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41d812
lea edi, [esp + 0x158]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x41d827
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x158]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call edi
cmp eax, 0xffffffff
je 0x41d8a6
test al, 1
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x41d86e
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x15c]
push eax
call esi
lea ecx, [esp + 0x158]
push ecx
call edi
test al, 2
je 0x41d88a
and eax, 0xfffffffd
push eax
lea edx, [esp + 0x15c]
push edx
call esi
lea eax, [esp + 0x158]
push eax
call edi
test al, 4
je 0x41d8a6
and eax, 0xfffffffb
push eax
lea ecx, [esp + 0x15c]
push ecx
call esi
cmp byte [esp + 0x370], bl
je 0x41d8c3
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41d8e1
xor ebp, ebp
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41d6d0
jmp 0x41d8e6
mov ebp, 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, ebx
je 0x41d901
mov eax, ebp
jmp 0x41d92f
cmp esi, 0x12
je 0x41d90d
mov eax, 0xfffffffc
jmp 0x41d92f
cmp byte [esp + 0x370], bl
je 0x41d92d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffd
jmp 0x41d92f
xor eax, eax
mov ecx, dword [esp + 0x360]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a2e3
add esp, 0x354
ret