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

Disassembly:
push 0xffffffffffffffff
push 0x44270c
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x50], 0
push 0xffffffffffffffff
push eax
xorps xmm0, xmm0
mov dword [esp + 0x5c], 0
push ecx
lea ecx, [esp + 0x4c]
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call fcn.004019ce
mov dword [esp + 0x310], 0
mov edx, 0x10
lea ecx, [esp + 0x40]
call fcn.0040cc10
xorps xmm0, xmm0
mov dword [esp + 0xac], 0
xor eax, eax
mov dword [esp + 0xb0], 0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
mov byte [esp + 0x310], 2
push 4
call fcn.0043451f
mov edi, eax
mov dword [esp + 0x34], eax
add esp, 4
mov dword [esp + 0x70], edi
mov byte [esp + 0x310], 3
test edi, edi
je 0x40d86e
mov dword [edi], 0
mov dword [edi], 0xffffffff
jmp 0x40d874
xor edi, edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x310], 2
mov dword [esp + 0x70], edi
mov byte [esp + 0x310], 4
xor eax, eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push 0x449788
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.0043413b
mov ebx, dword [esp + 0x2c]
add esi, eax
add esp, 4
cmp ebx, esi
ja 0x40d986
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x40d986
cmp esi, 0x7ffffffe
jbe 0x40d8ec
push str.string_too_long
call fcn.00433395
cmp ecx, esi
jae 0x40d8fd
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00401d36
jmp 0x40d963
cmp esi, 8
jae 0x40d94a
cmp esi, ebx
mov edi, ebx
cmovb edi, esi
cmp ecx, 8
jb 0x40d931
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x40d928
lea eax, [edi + edi]
push eax
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.00433410
add esp, 0xc
push ebp
call fcn.004342bb
add esp, 4
mov dword [esp + 0x28], edi
xor eax, eax
mov dword [esp + 0x2c], 7
mov word [esp + edi*2 + 0x18], ax
mov edi, dword [esp + 0x30]
jmp 0x40d963
test esi, esi
jne 0x40d969
cmp ecx, 8
mov dword [esp + 0x28], esi
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x2c]
test esi, esi
setne al
test al, al
je 0x40d986
cmp ecx, 8
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax + ebx*2], cx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.00402149
push 0x449788
call fcn.0043413b
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x449788
call fcn.004021eb
mov byte [esp + 0x310], 5
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x40d9d6
push eax
call esi
test eax, eax
je 0x40d9fa
mov dword [edi], 0xffffffff
cmp dword [esp + 0x2c], 8
lea ecx, [esp + 0xb4]
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40d9fe
xor bl, bl
jmp 0x40da12
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0040e5e0
mov bl, 1
mov byte [esp + 0x310], 4
cmp dword [esp + 0x2c], 8
jb 0x40da2d
push dword [esp + 0x18]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
test bl, bl
je 0x40ddc5
mov ecx, dword [esp + 0x94]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x40dab1
mov edx, dword [esp + 0xac]
test edx, edx
je 0x40dab1
mov esi, dword [esp + 0xb0]
lea eax, [esp + 0x9c]
mov ebx, dword [esp + 0x9c]
cmp esi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x40dab1
cmp edx, 1
je 0x40daa7
cmp esi, 8
lea eax, [esp + 0x9c]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x40dab1
cmp edx, 2
jne 0x40dab1
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x40db14
lea eax, [esp + 0x9c]
or ecx, 0
lea edx, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
je 0x40dae6
call fcn.00401f32
add esp, 4
mov byte [esp + 0x310], 6
mov ecx, eax
call fcn.0040d720
mov ebp, eax
mov ebx, edx
jmp 0x40dd8e
call fcn.00401f32
add esp, 4
mov byte [esp + 0x310], 7
lea ecx, [esp + 0x58]
call fcn.004123f0
movzx eax, al
cdq
mov ebp, eax
mov ebx, edx
jmp 0x40dd8e
mov edi, dword [esp + 0x30]
lea eax, [esp + 0xb4]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x40ddcf
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0040e5e0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xac]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x40dbac
test edx, edx
je 0x40dbac
mov esi, dword [esp + 0xb0]
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0x9c]
cmp esi, 8
cmovae eax, edi
cmp word [eax], 0x2e
jne 0x40dba8
cmp edx, 1
je 0x40db10
cmp esi, 8
lea eax, [esp + 0x9c]
cmovae eax, edi
mov edi, dword [esp + 0x30]
cmp word [eax + 2], 0x2e
jne 0x40dbac
cmp edx, 2
je 0x40db14
jmp 0x40dbac
mov edi, dword [esp + 0x30]
or ecx, 0
je 0x40dbb8
mov eax, 1
jmp 0x40dbba
xor eax, eax
mov ecx, 7
test al, al
je 0x40dcc4
mov dword [esp + 0x2c], 0
xor eax, eax
mov dword [esp + 0x2c], ecx
mov esi, dword [esp + 0x50]
add esi, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp esi, ecx
je 0x40dc51
cmp esi, 0x7ffffffe
ja 0x40d8e2
cmp esi, ecx
jbe 0x40dc15
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00401d36
mov ecx, dword [esp + 0x2c]
jmp 0x40dc2f
cmp esi, 8
jae 0x40dc20
mov dword [esp + 0x2c], ecx
jmp 0x40dc24
test esi, esi
jne 0x40dc31
mov dword [esp + 0x28], eax
xor eax, eax
mov word [esp + 0x18], ax
test esi, esi
setne al
test al, al
je 0x40dc51
cmp ecx, 8
mov dword [esp + 0x28], 0
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.00402149
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x24]
call fcn.00402149
mov byte [esp + 0x310], 8
lea ecx, [esp + 0x18]
call fcn.0040d720
add ebp, eax
adc ebx, edx
mov byte [esp + 0x310], 4
cmp dword [esp + 0x2c], 8
jb 0x40dca8
push dword [esp + 0x18]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jmp 0x40db14
mov dword [esp + 0x6c], 0
xor eax, eax
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x50]
add esi, edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp esi, ecx
je 0x40dd4e
cmp esi, 0x7ffffffe
ja 0x40d8e2
cmp esi, ecx
jbe 0x40dd12
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.00401d36
mov ecx, dword [esp + 0x6c]
jmp 0x40dd2c
cmp esi, 8
jae 0x40dd1d
mov dword [esp + 0x6c], ecx
jmp 0x40dd21
test esi, esi
jne 0x40dd2e
mov dword [esp + 0x68], eax
xor eax, eax
mov word [esp + 0x58], ax
test esi, esi
setne al
test al, al
je 0x40dd4e
cmp ecx, 8
mov dword [esp + 0x68], 0
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x64]
call fcn.00402149
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x64]
call fcn.00402149
mov byte [esp + 0x310], 9
lea ecx, [esp + 0x58]
call fcn.004123f0
movzx eax, al
cdq
add ebp, eax
adc ebx, edx
mov byte [esp + 0x310], 4
cmp dword [esp + 0x6c], 8
jb 0x40dda9
push dword [esp + 0x58]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
jmp 0x40db14
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x40ddd5
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40dde9
push eax
call esi
test eax, eax
je 0x40dde9
mov dword [edi], 0xffffffff
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40de0d
add ebp, 1
adc ebx, 0
jmp 0x40de8b
mov edx, 0x20
lea ecx, [esp + 0x40]
call fcn.0040cc10
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40de8b
cmp dword [esp + 0x54], 8
lea ecx, [esp + 0x40]
push 0
cmovae ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40de6f
add ebp, 1
adc ebx, 0
jmp 0x40de8b
and esi, 0xffffb1af
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], 8
push esi
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0x310], 2
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40deab
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40deab
mov dword [edi], 0xffffffff
push edi
call fcn.004342bb
add esp, 4
mov dword [esp + 0x70], 0
mov byte [esp + 0x310], 0
cmp dword [esp + 0xb0], 8
jb 0x40dedd
push dword [esp + 0x9c]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
mov dword [esp + 0x310], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x40df1b
push dword [esp + 0x40]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
mov edx, ebx
mov dword [esp + 0x50], 0
mov eax, ebp
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.004333fa
add esp, 0x300
ret