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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5884
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x64], ax
mov ebx, 7
mov eax, esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e381
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x64]
call fcn.00403e70
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], eax
xor ecx, ecx
push 4
mov eax, 0x4e5658
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x80], cx
call fcn.00403e70
lea edx, [ebp - 0x64]
push edx
mov edx, esi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00409010
cmp dword [ebp - 0x88], 8
jb 0x44e3f9
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov esi, 8
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0x6c], esi
jb 0x44e428
mov edx, dword [ebp - 0x80]
push edx
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x44e433
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x324]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 3
mov dword [ebp - 0x38], eax
xor ecx, ecx
push eax
mov eax, 0x4ddda0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x48], cx
call fcn.00403e70
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
je 0x44e839
lea eax, [ebp - 0x2f8]
lea edx, [eax + 2]
jmp 0x44e490
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e490
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2f8]
lea esi, [ebp - 0x2c]
call fcn.00403e70
mov ebx, dword [ebp - 0x1c]
mov esi, ebx
cmp ebx, 1
jb 0x44e4bd
mov esi, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp ecx, 8
jae 0x44e4cb
lea edx, [ebp - 0x2c]
mov eax, 0x4e5650
test esi, esi
je 0x44e4ef
mov di, word [edx]
cmp di, word [eax]
jne 0x44e4e7
add edx, 2
add eax, 2
dec esi
jne 0x44e4d4
jmp 0x44e4ef
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x44e501
cmp ebx, 1
jae 0x44e4f9
or eax, 0xffffffff
jmp 0x44e501
xor eax, eax
cmp ebx, 1
setne al
test eax, eax
sete al
test al, al
jne 0x44e81d
mov edx, ebx
cmp ebx, 2
jb 0x44e51a
mov edx, 2
cmp ecx, 8
mov ecx, dword [ebp - 0x2c]
jae 0x44e525
lea ecx, [ebp - 0x2c]
mov eax, 0x4e5664
test edx, edx
je 0x44e54b
mov edi, edi
mov si, word [ecx]
cmp si, word [eax]
jne 0x44e543
add ecx, 2
add eax, 2
dec edx
jne 0x44e530
jmp 0x44e54b
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x44e55d
cmp ebx, 2
jae 0x44e555
or eax, 0xffffffff
jmp 0x44e55d
xor eax, eax
cmp ebx, 2
setne al
test eax, eax
sete al
test al, al
jne 0x44e81d
xor edx, edx
push 1
mov eax, 0x4ddaa0
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], dx
call fcn.00403e70
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 5
call fcn.00407fa0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call fcn.00412800
mov ecx, eax
lea eax, [ebp - 0x2c]
lea ebx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.0040e520
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x44e637
cmp dword [ebp - 0x18], 8
jb 0x44e5ed
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [esi + 0x14], 8
jae 0x44e61c
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.00490e50
add esp, 0xc
jmp 0x44e623
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
jmp 0x44e63c
mov edi, 7
mov ebx, 8
xor esi, esi
cmp dword [ebp - 0x88], ebx
jb 0x44e65a
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0xc0], ebx
jb 0x44e686
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], esi
mov word [ebp - 0xd4], dx
cmp dword [ebp - 0xa4], ebx
jb 0x44e6b2
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x6c], ebx
jb 0x44e6dc
mov edx, dword [ebp - 0x80]
push edx
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x44e6e7
lea eax, [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x44e793
and eax, 0x10
je 0x44e793
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44e70e
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push ecx
push ebx
push eax
call fcn.0044e330
add esp, 0xc
test al, al
je 0x44e7ff
test bl, bl
je 0x44e7ff
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x44e752
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], ebx
jb 0x44e76f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], ebx
jb 0x44e78c
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490a16
add esp, 4
mov al, 1
jmp 0x44ea47
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44e79f
lea eax, [ebp - 0x2c]
push eax
call ebx
test al, 1
je 0x44e7ce
cmp byte [ebp + 0xc], 0
jne 0x44e8d3
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x44e7c0
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x44e7d9
cmp byte [ebp + 0xc], 0
jne 0x44e7fc
mov ebx, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x44e7e4
lea eax, [ebp - 0x2c]
push eax
call fcn.004964c7
add esp, 4
cmp eax, 0xffffffff
jne 0x44e7fc
cmp byte [ebp + 0x10], 0
je 0x44e93b
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x328]
lea edx, [ebp - 0x324]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e482
jmp 0x44e83c
mov edx, dword [ebp - 0x328]
lea ecx, [ebp - 0x324]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e482
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x328]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call edi
mov esi, dword [ebp - 0x330]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x44e9a8
test bl, bl
je 0x44e99a
mov ecx, dword [ebp - 0x328]
push ecx
call edi
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x44e887
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490a16
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x44e8ab
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x44e78c
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490a16
add esp, 4
mov al, 1
jmp 0x44ea47
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x44e8f6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], ebx
jb 0x44e913
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], ebx
jb 0x44e78c
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490a16
add esp, 4
mov al, 1
jmp 0x44ea47
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], ebx
jb 0x44e959
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], ebx
jb 0x44e976
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], ebx
jb 0x44e993
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490a16
add esp, 4
xor al, al
jmp 0x44ea47
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x44e9ac
test bl, bl
jne 0x44e9e3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44e9e1
cmp byte [ebp + 0x10], al
jne 0x44e9e1
mov ecx, dword [ebp - 0x328]
push ecx
call edi
lea ecx, [ebp - 0x48]
call fcn.00404690
lea ecx, [ebp - 0x2c]
call fcn.00404690
lea ecx, [ebp - 0x64]
call fcn.00404690
xor al, al
jmp 0x44ea47
test bl, bl
mov esi, 8
sete byte [ebp - 0x329]
cmp dword [ebp - 0x34], esi
jb 0x44ea00
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490a16
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x44ea24
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x44ea41
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490a16
add esp, 4
mov al, byte [ebp - 0x329]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret