Function at 0x45dc50
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x1fe
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046a390
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81a]
push eax
call fcn.0046a390
push 0x100
lea eax, [ebp - 0x81c]
xor edi, edi
push eax
push 0x100
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0xa24]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0046d2dc
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x489a44
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0046988e
add esp, 0x50
lea eax, [ebp - 0xc74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0xc78], eax
cmp eax, 0xffffffff
je 0x45dde8
mov cx, word [ebp - 0xc46]
mov ax, word [ebp - 0xc48]
test cx, cx
jne 0x45dd3f
cmp ax, 0x2e
je 0x45ddc5
cmp word [ebp - 0xc44], 0
jne 0x45dd54
cmp ax, 0x2e
jne 0x45dd54
cmp cx, ax
je 0x45ddc5
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x489a44
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046988e
mov eax, dword [ebp - 0xc74]
add esp, 0x14
test al, 0x10
jne 0x45ddc5
test al, 1
je 0x45dd9a
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x45ddc5
test ebx, 0x100
je 0x45ddc5
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0045e630
add esp, 8
lea eax, [ebp - 0xc74]
push eax
push dword [ebp - 0xc78]
call esi
test eax, eax
jne 0x45dd22
push dword [ebp - 0xc78]
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, 2
je 0x45ded8
lea eax, [ebp - 0x61c]
push eax
push 0x489a50
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046988e
add esp, 0x10
lea eax, [ebp - 0xc74]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x45deeb
cmp esi, 0xffffffff
je 0x45deeb
jmp 0x45de40
mov cx, word [ebp - 0xc46]
mov ax, word [ebp - 0xc48]
test cx, cx
jne 0x45de59
cmp ax, 0x2e
je 0x45debb
cmp word [ebp - 0xc44], 0
jne 0x45de6e
cmp ax, 0x2e
jne 0x45de6e
cmp cx, ax
je 0x45debb
test byte [ebp - 0xc74], 0x10
je 0x45debb
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x489a5c
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0046988e
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.0045dc50
add esp, 0x24
mov edi, eax
lea eax, [ebp - 0xc74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45de40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret