Function at 0x40ce84
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 0x40ce8c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov edi, 0x4191f0
xor eax, eax
push ebp
push 0x40d41a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00408040
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40d430
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 0x40d3da
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x154], 0x10
je 0x40cf5c
mov eax, dword [ebp - 8]
mov edx, 0x40d43c
call fcn.004039e0
je 0x40d3c5
mov eax, dword [ebp - 8]
mov edx, 0x40d448
call fcn.004039e0
je 0x40d3c5
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40d454
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x15c]
call fcn.0040ce84
jmp 0x40d3c5
mov eax, 0x41ab14
mov edx, 0x40d460
call fcn.00403770
cmp word [edi], 0
jne 0x40cf77
inc dword [0x41ab3c]
mov eax, dword [0x41ab3c]
cmp eax, dword [0x41ab38]
jl 0x40d3c5
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.004053d4
mov edx, dword [0x41ab08]
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
je 0x40cfcd
mov bl, 3
jmp 0x40cfcf
mov bl, 1
mov eax, 0x41ab14
mov edx, 0x40d49c
call fcn.00403770
cmp bl, 3
jne 0x40d0a9
mov eax, dword [0x41ab04]
call fcn.00403894
test eax, eax
jne 0x40cffc
mov bl, 2
jmp 0x40d0a9
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40d00f
mov bl, 2
jmp 0x40d0a9
mov eax, dword [ebp - 0xc]
mov edx, 0x40d4d0
call fcn.004039e0
jne 0x40d052
cmp dword [ebp - 0x134], 0x7530
jae 0x40d02e
mov bl, 2
jmp 0x40d0a9
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x164]
call fcn.004056c4
test al, al
jne 0x40d0a9
mov bl, 2
jmp 0x40d0a9
mov edx, dword [ebp - 8]
mov eax, 0x40d4dc
call fcn.00403b7c
test eax, eax
je 0x40d0a9
mov edx, dword [ebp - 8]
mov eax, 0x40d4ec
call fcn.00403b7c
test eax, eax
jne 0x40d0a9
mov edx, dword [ebp - 8]
mov eax, 0x40d500
call fcn.00403b7c
test eax, eax
jne 0x40d0a9
mov edx, dword [ebp - 8]
mov eax, 0x40d514
call fcn.00403b7c
test eax, eax
jne 0x40d0a9
mov edx, dword [ebp - 8]
mov eax, 0x40d52c
call fcn.00403b7c
test eax, eax
jne 0x40d0a9
mov bl, 2
cmp bl, 3
jne 0x40d134
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c428
test al, al
je 0x40d0f2
mov eax, 0x41ab20
mov edx, dword [ebp - 4]
call fcn.00403770
lea eax, [ebp - 0x168]
mov ecx, 0x40d454
mov edx, dword [0x41ab00]
call fcn.004038e0
mov eax, dword [ebp - 0x168]
call fcn.0040ce84
push dword [0x41aae0]
push 0x40d544
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405350
push dword [ebp - 0x170]
push 0x40d550
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x16c]
call fcn.0040587c
dec word [edi]
cmp bl, 1
jne 0x40d373
cmp dword [0x41ab48], 0x64
setl al
sub al, 1
jb 0x40d162
jne 0x40d175
mov edx, 0x40d560
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40d175
mov edx, 0x40d694
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40d373
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.0040afd4
mov eax, dword [ebp - 0x10]
call fcn.00403894
test eax, eax
jle 0x40d373
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x41aad0]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x41ab64], eax
push 2
push 0
push 0
mov eax, dword [0x41ab64]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
mov eax, dword [0x41ab64]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [0x41ab4c], eax
cmp dword [0x41ab4c], 0xed800
jle 0x40d2bc
push 0x40d6e0
lea edx, [ebp - 0x17c]
mov eax, dword [0x41ab4c]
call fcn.00405350
push dword [ebp - 0x17c]
push 0x40d6f4
lea edx, [ebp - 0x180]
mov eax, 0xed800
call fcn.00405350
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x178]
call fcn.004176d4
push 0xc8
mov ecx, 0x40d700
mov edx, 0x40d710
mov eax, 0x80000002
call fcn.0040698c
push 0x40d758
mov edx, 0x40d710
mov ecx, 0x40d764
mov eax, 0x80000002
call fcn.0040689c
push 0
mov edx, 0x40d710
mov ecx, 0x40d774
mov eax, 0x80000002
call fcn.0040698c
push 0
mov edx, 0x40d710
mov ecx, 0x40d784
mov eax, 0x80000002
call fcn.0040698c
call fcn.004035b0
cmp word [edi], 0
jne 0x40d2e4
push 0x40d794
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40d794
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403954
jmp 0x40d32b
push 0x40d794
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405350
push dword [ebp - 0x184]
push 0x40d7a0
push dword [0x41ab20]
push dword [0x41ab10]
push 0x40d7ac
push dword [ebp - 8]
push 0x40d794
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.00403954
push 0
push 0x41ab54
mov eax, dword [ebp - 0x10]
call fcn.00403894
push eax
lea eax, [ebp - 0x10]
call fcn.00403aec
push eax
mov eax, dword [0x41ab64]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, 0x41ab14
mov edx, 0x40d7b8
call fcn.00403770
mov eax, dword [0x41ab64]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bc4
cmp word [edi], 0
jne 0x40d3b6
mov edx, 0x40d774
mov ecx, dword [0x41ab3c]
mov eax, dword [0x41ab74]
call fcn.00406c1c
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x188]
push eax
mov edx, 0x40d764
mov eax, dword [0x41ab74]
pop ecx
call fcn.00406b70
mov eax, 0x41ab14
mov edx, 0x40d7d0
call fcn.00403770
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40ceef
push esi
call sub.kernel32.dll_FindClose
mov eax, 0x41ab14
mov edx, 0x40d870
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d421
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403740
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403740
ret