Function at 0x40c880
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 0x40c888
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 0x40ce14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40ce2c
call fcn.00403770
call fcn.004080c4
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40cec8
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 0x40cdd4
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x154], 0x10
je 0x40c967
mov eax, dword [ebp - 8]
mov edx, 0x40ced4
call fcn.004039e0
je 0x40cdbf
mov eax, dword [ebp - 8]
mov edx, 0x40cee0
call fcn.004039e0
je 0x40cdbf
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40ceec
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x15c]
call fcn.0040c880
jmp 0x40cdbf
cmp word [edi], 0
jne 0x40c973
inc dword [0x41ab3c]
mov eax, dword [0x41ab3c]
cmp eax, dword [0x41ab38]
jl 0x40cdbf
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 0x40c9c9
mov bl, 3
jmp 0x40c9cb
mov bl, 1
mov eax, 0x41ab14
mov edx, 0x40cef8
call fcn.00403770
cmp bl, 3
jne 0x40caa5
mov eax, dword [0x41ab04]
call fcn.00403894
test eax, eax
jne 0x40c9f8
mov bl, 2
jmp 0x40caa5
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40ca0b
mov bl, 2
jmp 0x40caa5
mov eax, dword [ebp - 0xc]
mov edx, 0x40cfa8
call fcn.004039e0
jne 0x40ca4e
cmp dword [ebp - 0x134], 0x7530
jae 0x40ca2a
mov bl, 2
jmp 0x40caa5
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 0x40caa5
mov bl, 2
jmp 0x40caa5
mov edx, dword [ebp - 8]
mov eax, 0x40cfb4
call fcn.00403b7c
test eax, eax
je 0x40caa5
mov edx, dword [ebp - 8]
mov eax, 0x40cfc4
call fcn.00403b7c
test eax, eax
jne 0x40caa5
mov edx, dword [ebp - 8]
mov eax, 0x40cfd8
call fcn.00403b7c
test eax, eax
jne 0x40caa5
mov edx, dword [ebp - 8]
mov eax, 0x40cfec
call fcn.00403b7c
test eax, eax
jne 0x40caa5
mov edx, dword [ebp - 8]
mov eax, 0x40d004
call fcn.00403b7c
test eax, eax
jne 0x40caa5
mov bl, 2
mov eax, 0x41ab14
mov edx, 0x40d01c
call fcn.00403770
cmp bl, 3
jne 0x40cb3f
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bfec
test al, al
je 0x40cafd
mov eax, 0x41ab20
mov edx, dword [ebp - 4]
call fcn.00403770
lea eax, [ebp - 0x168]
mov ecx, 0x40ceec
mov edx, dword [0x41ab00]
call fcn.004038e0
mov eax, dword [ebp - 0x168]
call fcn.0040c880
push dword [0x41aae0]
push 0x40d090
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405350
push dword [ebp - 0x170]
push 0x40d09c
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 0x40cd7e
cmp dword [0x41ab48], 0x64
setl al
sub al, 1
jb 0x40cb6d
jne 0x40cb80
mov edx, 0x40d0ac
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40cb80
mov edx, 0x40d1e0
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40cd7e
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.0040ae54
mov eax, dword [ebp - 0x10]
call fcn.00403894
test eax, eax
jle 0x40cd7e
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 0x40ccc7
push 0x40d22c
lea edx, [ebp - 0x17c]
mov eax, dword [0x41ab4c]
call fcn.00405350
push dword [ebp - 0x17c]
push 0x40d240
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.0041706c
push 0xc8
mov ecx, 0x40d24c
mov edx, 0x40d25c
mov eax, 0x80000002
call fcn.0040698c
push 0x40d2a4
mov edx, 0x40d25c
mov ecx, 0x40d2b0
mov eax, 0x80000002
call fcn.0040689c
push 0
mov edx, 0x40d25c
mov ecx, 0x40d2c0
mov eax, 0x80000002
call fcn.0040698c
push 0
mov edx, 0x40d25c
mov ecx, 0x40d2d0
mov eax, 0x80000002
call fcn.0040698c
call fcn.004035b0
cmp word [edi], 0
jne 0x40ccef
push 0x40d2e0
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40d2e0
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403954
jmp 0x40cd36
push 0x40d2e0
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405350
push dword [ebp - 0x184]
push 0x40d2ec
push dword [0x41ab20]
push dword [0x41ab10]
push 0x40d2f8
push dword [ebp - 8]
push 0x40d2e0
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]
invalid
sahf