Function at 0x40c448
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 0x40c450
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40ca07
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407cb0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x40ca1c
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40c9cb
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x158], 0x10
je 0x40c51b
mov eax, dword [ebp - 0xc]
mov edx, 0x40ca28
call fcn.004039f0
je 0x40c9b3
mov eax, dword [ebp - 0xc]
mov edx, 0x40ca34
call fcn.004039f0
je 0x40c9b3
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x40ca40
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x160]
call fcn.0040c448
jmp 0x40c9b3
cmp word [0x41413c], 0
jne 0x40c533
add dword [0x415b24], 1
jno 0x40c533
call fcn.00402f1c
mov eax, dword [0x415b24]
cmp eax, dword [0x415b20]
jl 0x40c9b3
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004038a4
mov edx, eax
sub edx, 2
jno 0x40c55f
call fcn.00402f1c
mov ecx, 3
mov eax, dword [ebp - 0xc]
call fcn.00403b04
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x10]
call fcn.0040553c
mov edx, dword [0x415b08]
mov eax, dword [ebp - 0x10]
call fcn.00403b8c
test eax, eax
je 0x40c592
mov byte [ebp - 0x15], 3
jmp 0x40c596
mov byte [ebp - 0x15], 1
cmp byte [ebp - 0x15], 3
jne 0x40c66c
mov eax, dword [0x415b04]
call fcn.004038a4
test eax, eax
jne 0x40c5b7
mov byte [ebp - 0x15], 2
jmp 0x40c66c
cmp dword [ebp - 0x138], 0x9600000
jbe 0x40c5cc
mov byte [ebp - 0x15], 2
jmp 0x40c66c
mov eax, dword [ebp - 0x10]
mov edx, 0x40ca4c
call fcn.004039f0
jne 0x40c613
cmp dword [ebp - 0x138], 0x7530
jae 0x40c5ed
mov byte [ebp - 0x15], 2
jmp 0x40c66c
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x168]
call fcn.004058e4
test al, al
jne 0x40c66c
mov byte [ebp - 0x15], 2
jmp 0x40c66c
mov edx, dword [ebp - 0xc]
mov eax, 0x40ca58
call fcn.00403b8c
test eax, eax
je 0x40c66c
mov edx, dword [ebp - 0xc]
mov eax, 0x40ca68
call fcn.00403b8c
test eax, eax
jne 0x40c66c
mov edx, dword [ebp - 0xc]
mov eax, 0x40ca7c
call fcn.00403b8c
test eax, eax
jne 0x40c66c
mov edx, dword [ebp - 0xc]
mov eax, 0x40ca90
call fcn.00403b8c
test eax, eax
jne 0x40c66c
mov edx, dword [ebp - 0xc]
mov eax, 0x40caa8
call fcn.00403b8c
test eax, eax
jne 0x40c66c
mov byte [ebp - 0x15], 2
cmp byte [ebp - 0x15], 3
jne 0x40c707
add word [0x41413c], 1
jae 0x40c685
call fcn.00402f1c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040bf78
test al, al
je 0x40c6b5
lea eax, [ebp - 0x16c]
mov ecx, 0x40ca40
mov edx, dword [0x415b00]
call fcn.004038f0
mov eax, dword [ebp - 0x16c]
call fcn.0040c448
push dword [0x415ae0]
push 0x40cac0
lea edx, [ebp - 0x174]
movzx eax, word [0x41413c]
call fcn.00405478
push dword [ebp - 0x174]
push 0x40cacc
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x170]
call fcn.00405b04
sub word [0x41413c], 1
jae 0x40c707
call fcn.00402f1c
cmp byte [ebp - 0x15], 1
jne 0x40c965
cmp dword [0x415b30], 0x64
setl al
sub al, 1
jb 0x40c736
jne 0x40c749
mov edx, 0x40cadc
mov eax, dword [ebp - 0x10]
call fcn.00403b8c
test eax, eax
sete byte [ebp - 0x16]
jmp 0x40c749
mov edx, 0x40cbe4
mov eax, dword [ebp - 0x10]
call fcn.00403b8c
test eax, eax
setne byte [ebp - 0x16]
cmp byte [ebp - 0x16], 0
je 0x40c965
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x14]
call fcn.00409ffc
mov eax, dword [ebp - 0x14]
call fcn.004038a4
test eax, eax
jle 0x40c965
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x415ad0]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x415b4c], eax
push 2
push 0
push 0
mov eax, dword [0x415b4c]
push eax
call sub.KERNEL32.DLL_SetFilePointer
push 0
mov eax, dword [0x415b4c]
push eax
call sub.KERNEL32.DLL_GetFileSize
test eax, eax
jns 0x40c7d0
call fcn.00402f14
mov dword [0x415b34], eax
cmp dword [0x415b34], 0xed800
jle 0x40c899
push 0x40cc24
lea edx, [ebp - 0x180]
mov eax, dword [0x415b34]
call fcn.00405478
push dword [ebp - 0x180]
push 0x40cc38
lea edx, [ebp - 0x184]
mov eax, 0xed800
call fcn.00405478
push dword [ebp - 0x184]
lea eax, [ebp - 0x17c]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x17c]
call fcn.00412fc4
push 0xc8
mov ecx, 0x40cc44
mov edx, 0x40cc54
mov eax, 0x80000002
call fcn.00406f24
push 0x40cc9c
mov edx, 0x40cc54
mov ecx, 0x40cca8
mov eax, 0x80000002
call fcn.00406dfc
push 0
mov edx, 0x40cc54
mov ecx, 0x40ccb8
mov eax, 0x80000002
call fcn.00406f24
push 0
mov edx, 0x40cc54
mov ecx, 0x40ccc8
mov eax, 0x80000002
call fcn.00406f24
call fcn.004035c0
cmp word [0x41413c], 0
jne 0x40c8c5
push 0x40ccd8
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x40ccd8
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403964
jmp 0x40c90a
push 0x40ccd8
lea edx, [ebp - 0x188]
movzx eax, word [0x41413c]
call fcn.00405478
push dword [ebp - 0x188]
push 0x40cce4
push dword [0x415b10]
push 0x40ccf0
push dword [ebp - 0xc]
push 0x40ccd8
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 8
call fcn.00403964
push 0
push 0x415b3c
mov eax, dword [ebp - 0x14]
call fcn.004038a4
test eax, eax
jns 0x40c922
call fcn.00402f14
push eax
lea eax, [ebp - 0x14]
call fcn.00403afc
mov edx, 1
dec edx
test eax, eax
je 0x40c93a
cmp edx, dword [eax - 4]
jb 0x40c93f
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [0x415b4c]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x415b4c]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403bd4
cmp word [0x41413c], 0
jne 0x40c9b3
mov edx, 0x40ccb8
mov ecx, dword [0x415b24]
test ecx, ecx
jns 0x40c983
call fcn.00402f14
mov eax, dword [0x415b5c]
call fcn.00407224
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov ecx, dword [ebp - 0x18c]
mov edx, 0x40cca8
mov eax, dword [0x415b5c]
call fcn.0040714c
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40c4ae
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca0e
lea eax, [ebp - 0x18c]
mov edx, 0xd
call fcn.00403750
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret