Function at 0x478334
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x59
push 0
push 0
dec ecx
jne 0x47833c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x478877
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 1
mov eax, 0x478888
mov dword [ebp - 0x280], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47839b
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x478851
lea eax, [ebp - 0x274]
push eax
push ebx
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
mov eax, ebx
call fcn.004098a4
mov byte [ebx + eax - 1], 0
lea eax, [ebp - 0x131]
mov edx, ebx
call fcn.004098e0
jmp 0x47881a
lea edx, [ebp - 0x248]
mov eax, ebx
call fcn.00409994
mov eax, dword [0x47d46c]
mov eax, dword [eax]
call fcn.0045a7e8
test byte [ebp - 0x274], 0x10
je 0x47840e
mov edx, 0x47889c
mov eax, ebx
call fcn.00409994
mov eax, ebx
call fcn.00478334
mov eax, ebx
call fcn.004098a4
mov esi, eax
cmp byte [ebx + esi - 1], 0x66
je 0x478429
cmp byte [ebx + esi - 1], 0x46
jne 0x47880d
cmp byte [ebx + esi - 2], 0x6e
je 0x47843b
cmp byte [ebx + esi - 2], 0x4e
jne 0x47880d
cmp byte [ebx + esi - 3], 0x69
je 0x47844d
cmp byte [ebx + esi - 3], 0x49
jne 0x47880d
mov eax, dword [0x4819dc]
mov eax, dword [eax + 0x37c]
call fcn.00472930
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x47880d
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x47880d
inc eax
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x280]
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
call fcn.00478964
cmp al, 1
jne 0x478801
mov byte [ebp - 0x25], 0
cmp dword [0x481ae0], 0
je 0x47858f
mov edx, 0x4788a0
lea eax, [ebp - 0x248]
mov ecx, 3
call fcn.00409a3c
test eax, eax
jne 0x47858f
lea eax, [ebp - 0x288]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.00404f2c
mov ecx, dword [ebp - 0x288]
lea eax, [ebp - 0x284]
mov edx, 0x4788ac
call fcn.00404fcc
mov eax, dword [ebp - 0x284]
call fcn.004730d4
push 0
push 1
lea eax, [ebp - 0x248]
push eax
call dword [0x481ae0]
test eax, eax
je 0x47855a
mov byte [ebp - 0x25], 1
jmp 0x47858f
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x290]
call fcn.00409020
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
mov edx, 0x4788cc
call fcn.00404fcc
mov eax, dword [ebp - 0x28c]
call fcn.004730d4
cmp byte [ebp - 0x25], 0
jne 0x478801
push ebx
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 1
je 0x4785b5
mov eax, dword [ebp - 0x20]
xor eax, 1
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x298]
mov edx, ebx
call fcn.00404eb4
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x294]
mov edx, 0x4788fc
call fcn.00404fcc
mov eax, dword [ebp - 0x294]
call fcn.004730d4
lea eax, [ebp - 0x29c]
mov edx, ebx
call fcn.00404eb4
mov eax, dword [ebp - 0x29c]
call fcn.00405180
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a0]
mov edx, ebx
call fcn.00404eb4
mov eax, dword [ebp - 0x2a0]
call fcn.00409478
test al, al
je 0x4786ac
lea edx, [ebp - 0x2a4]
mov eax, 0x47303c
call fcn.0040698c
push dword [ebp - 0x2a4]
push 0x478918
push 0x478924
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405040
push dword [ebp - 4]
lea edx, [ebp - 0x2a8]
mov eax, 0x473044
call fcn.0040698c
push dword [ebp - 0x2a8]
push 0x478918
push 0x478924
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405040
lea eax, [ebp - 0x2ac]
mov edx, ebx
call fcn.00404eb4
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 4]
call fcn.00404f88
push 0
movzx ecx, word [0x478928]
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0042fb14
mov eax, ebx
call fcn.004098a4
mov byte [ebx + eax - 3], 0
mov edx, 0x47892c
mov eax, ebx
call fcn.00409994
mov eax, 0x478938
call fcn.004730d4
lea eax, [ebp - 0x2b0]
mov edx, ebx
call fcn.00404eb4
mov eax, dword [ebp - 0x2b0]
call fcn.00409478
test al, al
je 0x478801
push ebx
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 1
je 0x47870a
mov eax, dword [ebp - 0x20]
xor eax, 1
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x2b8]
mov edx, ebx
call fcn.00404eb4
mov ecx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x2b4]
mov edx, 0x478950
call fcn.00404fcc
mov eax, dword [ebp - 0x2b4]
call fcn.004730d4
lea eax, [ebp - 0x2bc]
mov edx, ebx
call fcn.00404eb4
mov eax, dword [ebp - 0x2bc]
call fcn.00405180
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2c0]
mov edx, ebx
call fcn.00404eb4
mov eax, dword [ebp - 0x2c0]
call fcn.00409478
test al, al
je 0x478801
lea edx, [ebp - 0x2c4]
mov eax, 0x47303c
call fcn.0040698c
push dword [ebp - 0x2c4]
push 0x478918
push 0x478924
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405040
push dword [ebp - 4]
lea edx, [ebp - 0x2c8]
mov eax, 0x473044
call fcn.0040698c
push dword [ebp - 0x2c8]
push 0x478918
push 0x478924
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405040
lea eax, [ebp - 0x2cc]
mov edx, ebx
call fcn.00404eb4
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 4]
call fcn.00404f88
push 0
movzx ecx, word [0x478928]
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0042fb14
add edi, 4
dec dword [ebp - 0x2c]
jne 0x4784c8
lea edx, [ebp - 0x131]
mov eax, ebx
call fcn.004098e0
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4783d9
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualFree_1
test eax, eax
jne 0x47884f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x478851
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47887e
lea eax, [ebp - 0x2cc]
mov edx, 0x13
call fcn.00404ce0
lea eax, [ebp - 4]
call fcn.00404cbc
ret