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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [esp + 0x474]
mov edi, ecx
push 0
push eax
mov esi, 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0x250
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100403f4
test al, 0x10
je 0x100403f4
push 0
push 0
push 0
mov edx, 0x55505446
mov ecx, edi
call fcn.10049180
add esp, 0xc
test eax, eax
js 0x100403f4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x478]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 3
push 0x1006a234
lea eax, [esp + 0x478]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100403ad
lea ecx, [esp + 0x470]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040200
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 6]
cmp ecx, 0x20a
jae 0x1004040b
xor eax, eax
mov word [esp + ecx + 0x470], ax
nop dword [eax]
mov ecx, 0x10069934
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10040266
test dx, dx
je 0x10040262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10040266
add eax, 4
add ecx, 4
test dx, dx
jne 0x10040240
xor eax, eax
jmp 0x1004026b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10040392
mov ecx, 0x10069948
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100402a6
test dx, dx
je 0x100402a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100402a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10040280
xor eax, eax
jmp 0x100402ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x10040392
push 0x20a
lea eax, [esp + 0x264]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x470]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x268]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push 0xffffffffffffffff
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov eax, dword [esp + 0x30]
add esp, 0x20
and eax, 0xfffffff8
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x1004034f
test eax, 0x400
je 0x1004033d
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10040392
jmp 0x10040390
lea ecx, [esp + 0x260]
call fcn.10040110
test eax, eax
jne 0x10040392
jmp 0x10040390
push 0
push 0
push 0
mov edx, 0x55505446
lea ecx, [esp + 0x26c]
call fcn.10049180
add esp, 0xc
test eax, eax
jne 0x10040390
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10040392
push 4
push eax
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10040230
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0
mov edx, 0x55505446
mov ecx, edi
call fcn.10049180
add esp, 0xc
test eax, eax
jne 0x100403db
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100403dd
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x684]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
call fcn.1005bfc9
int3