Function at 0x40acc4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x40accc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov edi, 0x41213c
xor eax, eax
push ebp
push 0x40b1f6
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407588
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40b20c
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x158]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40b1c5
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x154], 0x10
je 0x40ad9c
mov eax, dword [ebp - 8]
mov edx, 0x40b218
call fcn.004039e0
je 0x40b1b0
mov eax, dword [ebp - 8]
mov edx, 0x40b224
call fcn.004039e0
je 0x40b1b0
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40b230
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x15c]
call fcn.0040acc4
jmp 0x40b1b0
cmp word [edi], 0
jne 0x40ada8
inc dword [0x413b24]
mov eax, dword [0x413b24]
cmp eax, dword [0x413b20]
jl 0x40b1b0
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 8]
call fcn.00403894
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.00403af4
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0xc]
call fcn.004053f4
mov edx, dword [0x413b08]
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
je 0x40adfe
mov bl, 3
jmp 0x40ae00
mov bl, 1
cmp bl, 3
jne 0x40aecb
mov eax, dword [0x413b04]
call fcn.00403894
test eax, eax
jne 0x40ae1e
mov bl, 2
jmp 0x40aecb
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40ae31
mov bl, 2
jmp 0x40aecb
mov eax, dword [ebp - 0xc]
mov edx, 0x40b23c
call fcn.004039e0
jne 0x40ae74
cmp dword [ebp - 0x134], 0x7530
jae 0x40ae50
mov bl, 2
jmp 0x40aecb
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x164]
call fcn.004056e4
test al, al
jne 0x40aecb
mov bl, 2
jmp 0x40aecb
mov edx, dword [ebp - 8]
mov eax, 0x40b248
call fcn.00403b7c
test eax, eax
je 0x40aecb
mov edx, dword [ebp - 8]
mov eax, 0x40b258
call fcn.00403b7c
test eax, eax
jne 0x40aecb
mov edx, dword [ebp - 8]
mov eax, 0x40b26c
call fcn.00403b7c
test eax, eax
jne 0x40aecb
mov edx, dword [ebp - 8]
mov eax, 0x40b280
call fcn.00403b7c
test eax, eax
jne 0x40aecb
mov edx, dword [ebp - 8]
mov eax, 0x40b298
call fcn.00403b7c
test eax, eax
jne 0x40aecb
mov bl, 2
cmp bl, 3
jne 0x40af45
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a818
test al, al
je 0x40af03
lea eax, [ebp - 0x168]
mov ecx, 0x40b230
mov edx, dword [0x413b00]
call fcn.004038e0
mov eax, dword [ebp - 0x168]
call fcn.0040acc4
push dword [0x413ae0]
push 0x40b2b0
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405370
push dword [ebp - 0x170]
push 0x40b2bc
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x16c]
call fcn.0040589c
dec word [edi]
cmp bl, 1
jne 0x40b16f
cmp dword [0x413b30], 0x64
setl al
sub al, 1
jb 0x40af73
jne 0x40af86
mov edx, 0x40b2cc
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40af86
mov edx, 0x40b3d4
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40b16f
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x10]
call fcn.004097a0
mov eax, dword [ebp - 0x10]
call fcn.00403894
test eax, eax
jle 0x40b16f
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x413ad0]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x413b4c], eax
push 2
push 0
push 0
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_SetFilePointer
push 0
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [0x413b34], eax
cmp dword [0x413b34], 0xed800
jle 0x40b0cd
push 0x40b414
lea edx, [ebp - 0x17c]
mov eax, dword [0x413b34]
call fcn.00405370
push dword [ebp - 0x17c]
push 0x40b428
lea edx, [ebp - 0x180]
mov eax, 0xed800
call fcn.00405370
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x178]
call fcn.00411020
push 0xc8
mov ecx, 0x40b434
mov edx, 0x40b444
mov eax, 0x80000002
call fcn.004068e8
push 0x40b48c
mov edx, 0x40b444
mov ecx, 0x40b498
mov eax, 0x80000002
call fcn.004067f8
push 0
mov edx, 0x40b444
mov ecx, 0x40b4a8
mov eax, 0x80000002
call fcn.004068e8
push 0
mov edx, 0x40b444
mov ecx, 0x40b4b8
mov eax, 0x80000002
call fcn.004068e8
call fcn.004035b0
cmp word [edi], 0
jne 0x40b0f5
push 0x40b4c8
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40b4c8
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403954
jmp 0x40b136
push 0x40b4c8
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405370
push dword [ebp - 0x184]
push 0x40b4d4
push dword [0x413b10]
push 0x40b4e0
push dword [ebp - 8]
push 0x40b4c8
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00403954
push 0
push 0x413b3c
mov eax, dword [ebp - 0x10]
call fcn.00403894
push eax
lea eax, [ebp - 0x10]
call fcn.00403aec
push eax
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bc4
cmp word [edi], 0
jne 0x40b1b0
mov edx, 0x40b4a8
mov ecx, dword [0x413b24]
mov eax, dword [0x413b5c]
call fcn.00406b78
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov ecx, dword [ebp - 0x188]
mov edx, 0x40b498
mov eax, dword [0x413b5c]
call fcn.00406acc
lea eax, [ebp - 0x154]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40ad2f
push esi
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1fd
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403740
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403740
ret