Function at 0x40c554
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 0x40c55c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov edi, 0x41ab14
xor eax, eax
push ebp
push 0x40cae9
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407ebc
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40cb00
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 0x40cab8
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x154], 0x10
je 0x40c62c
mov eax, dword [ebp - 8]
mov edx, 0x40cb0c
call fcn.004039e0
je 0x40caa3
mov eax, dword [ebp - 8]
mov edx, 0x40cb18
call fcn.004039e0
je 0x40caa3
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40cb24
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x15c]
call fcn.0040c554
jmp 0x40caa3
mov eax, edi
mov edx, 0x40cb30
call fcn.00403770
cmp word [0x4191f0], 0
jne 0x40c648
inc dword [0x41ab3c]
mov eax, dword [0x41ab3c]
cmp eax, dword [0x41ab38]
jl 0x40caa3
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 0x40c69e
mov bl, 3
jmp 0x40c6a0
mov bl, 1
mov eax, edi
mov edx, 0x40cbc0
call fcn.00403770
cmp bl, 3
jne 0x40c777
mov eax, dword [0x41ab04]
call fcn.00403894
test eax, eax
jne 0x40c6ca
mov bl, 2
jmp 0x40c777
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40c6dd
mov bl, 2
jmp 0x40c777
mov eax, dword [ebp - 0xc]
mov edx, 0x40cc04
call fcn.004039e0
jne 0x40c720
cmp dword [ebp - 0x134], 0x7530
jae 0x40c6fc
mov bl, 2
jmp 0x40c777
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 0x40c777
mov bl, 2
jmp 0x40c777
mov edx, dword [ebp - 8]
mov eax, 0x40cc10
call fcn.00403b7c
test eax, eax
je 0x40c777
mov edx, dword [ebp - 8]
mov eax, 0x40cc20
call fcn.00403b7c
test eax, eax
jne 0x40c777
mov edx, dword [ebp - 8]
mov eax, 0x40cc34
call fcn.00403b7c
test eax, eax
jne 0x40c777
mov edx, dword [ebp - 8]
mov eax, 0x40cc48
call fcn.00403b7c
test eax, eax
jne 0x40c777
mov edx, dword [ebp - 8]
mov eax, 0x40cc60
call fcn.00403b7c
test eax, eax
jne 0x40c777
mov bl, 2
mov eax, edi
mov edx, 0x40cc78
call fcn.00403770
cmp bl, 3
jne 0x40c81a
inc word [0x4191f0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bd40
test al, al
je 0x40c7d0
mov eax, 0x41ab20
mov edx, dword [ebp - 4]
call fcn.00403770
lea eax, [ebp - 0x168]
mov ecx, 0x40cb24
mov edx, dword [0x41ab00]
call fcn.004038e0
mov eax, dword [ebp - 0x168]
call fcn.0040c554
push dword [0x41aae0]
push 0x40ccdc
lea edx, [ebp - 0x170]
movzx eax, word [0x4191f0]
call fcn.00405350
push dword [ebp - 0x170]
push 0x40cce8
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x16c]
call fcn.0040587c
dec word [0x4191f0]
cmp bl, 1
jne 0x40ca52
cmp dword [0x41ab48], 0x64
setl al
sub al, 1
jb 0x40c848
jne 0x40c85b
mov edx, 0x40ccf8
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40c85b
mov edx, 0x40ce2c
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40ca52
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.0040ac20
mov eax, dword [ebp - 0x10]
call fcn.00403894
test eax, eax
jle 0x40ca52
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 0x40c9a2
push 0x40ce78
lea edx, [ebp - 0x17c]
mov eax, dword [0x41ab4c]
call fcn.00405350
push dword [ebp - 0x17c]
push 0x40ce8c
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.004170e8
push 0xc8
mov ecx, 0x40ce98
mov edx, 0x40cea8
mov eax, 0x80000002
call fcn.00406988
push 0x40cef0
mov edx, 0x40cea8
mov ecx, 0x40cefc
mov eax, 0x80000002
call fcn.00406898
push 0
mov edx, 0x40cea8
mov ecx, 0x40cf0c
mov eax, 0x80000002
call fcn.00406988
push 0
mov edx, 0x40cea8
mov ecx, 0x40cf1c
mov eax, 0x80000002
call fcn.00406988
call fcn.004035b0
cmp word [0x4191f0], 0
jne 0x40c9ce
push 0x40cf2c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40cf2c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403954
jmp 0x40ca19
push 0x40cf2c
lea edx, [ebp - 0x184]
movzx eax, word [0x4191f0]
call fcn.00405350
push dword [ebp - 0x184]
push 0x40cf38
push dword [0x41ab20]
push dword [0x41ab10]
push 0x40cf44
push dword [ebp - 8]
push 0x40cf2c
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, dword [0x41ab64]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bc4
cmp word [0x4191f0], 0
jne 0x40ca97
mov edx, 0x40cf0c
mov ecx, dword [0x41ab3c]
mov eax, dword [0x41ab74]
call fcn.00406c18
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov ecx, dword [ebp - 0x188]
mov edx, 0x40cefc
mov eax, dword [0x41ab74]
call fcn.00406b6c
mov eax, edi
mov edx, 0x40cf50
call fcn.00403770
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40c5bf
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caf0
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403740
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403740
ret