Function at 0x40a7a8
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 0x40a7b0
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x40ae43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb74
mov edx, 0x40ae58
call fcn.0040326c
call fcn.00407e1c
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x40aec0
mov edx, dword [ebp - 4]
call fcn.004033e8
mov eax, dword [ebp - 0x15c]
call fcn.0040359c
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
mov eax, 0x41eb74
mov edx, 0x40aecc
call fcn.0040326c
cmp dword [ebp - 8], 0xffffffff
je 0x40ade9
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.00403384
test byte [ebp - 0x158], 0x10
je 0x40a899
mov eax, dword [ebp - 0xc]
mov edx, 0x40af28
call fcn.004034e8
je 0x40add1
mov eax, dword [ebp - 0xc]
mov edx, 0x40af34
call fcn.004034e8
je 0x40add1
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x40af40
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.0040345c
mov eax, dword [ebp - 0x160]
call fcn.0040a7a8
jmp 0x40add1
mov eax, 0x41eb74
mov edx, 0x40af4c
call fcn.0040326c
cmp word [0x41d1f4], 0
jne 0x40a8c0
add dword [0x41eb98], 1
jno 0x40a8c0
call fcn.00402a08
mov eax, dword [0x41eb98]
cmp eax, dword [0x41eb94]
jl 0x40add1
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040339c
mov edx, eax
sub edx, 2
jno 0x40a8ec
call fcn.00402a08
mov ecx, 3
mov eax, dword [ebp - 0xc]
call fcn.004035f4
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x10]
call fcn.00404a14
mov edx, dword [0x41eb68]
mov eax, dword [ebp - 0x10]
call fcn.00403634
test eax, eax
je 0x40a91f
mov byte [ebp - 0x15], 3
jmp 0x40a923
mov byte [ebp - 0x15], 1
mov eax, 0x41eb74
mov edx, 0x40afe4
call fcn.0040326c
cmp byte [ebp - 0x15], 3
jne 0x40aa08
mov eax, dword [0x41eb64]
call fcn.0040339c
test eax, eax
jne 0x40a953
mov byte [ebp - 0x15], 2
jmp 0x40aa08
cmp dword [ebp - 0x138], 0x9600000
jbe 0x40a968
mov byte [ebp - 0x15], 2
jmp 0x40aa08
mov eax, dword [ebp - 0x10]
mov edx, 0x40b09c
call fcn.004034e8
jne 0x40a9af
cmp dword [ebp - 0x138], 0x7530
jae 0x40a989
mov byte [ebp - 0x15], 2
jmp 0x40aa08
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004033e8
mov eax, dword [ebp - 0x168]
call fcn.00404dc4
test al, al
jne 0x40aa08
mov byte [ebp - 0x15], 2
jmp 0x40aa08
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41edc8]
call fcn.00403634
test eax, eax
je 0x40aa08
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41edcc]
call fcn.00403634
test eax, eax
jne 0x40aa08
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41edd0]
call fcn.00403634
test eax, eax
jne 0x40aa08
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41edd4]
call fcn.00403634
test eax, eax
jne 0x40aa08
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41edd8]
call fcn.00403634
test eax, eax
jne 0x40aa08
mov byte [ebp - 0x15], 2
mov eax, 0x41eb74
mov edx, 0x40b0a8
call fcn.0040326c
cmp byte [ebp - 0x15], 3
jne 0x40aabf
add word [0x41d1f4], 1
jae 0x40aa30
call fcn.00402a08
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409fa8
test al, al
je 0x40aa6d
mov eax, 0x41eb78
mov edx, dword [ebp - 4]
call fcn.0040326c
lea eax, [ebp - 0x16c]
mov ecx, 0x40af40
mov edx, dword [0x41eb60]
call fcn.004033e8
mov eax, dword [ebp - 0x16c]
call fcn.0040a7a8
push dword [0x41eb44]
push 0x40b16c
lea edx, [ebp - 0x174]
movzx eax, word [0x41d1f4]
call fcn.00404950
push dword [ebp - 0x174]
push 0x40b178
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.0040345c
mov eax, dword [ebp - 0x170]
call fcn.00404fe4
sub word [0x41d1f4], 1
jae 0x40aabf
call fcn.00402a08
mov eax, 0x41eb74
mov edx, 0x40b188
call fcn.0040326c
mov byte [ebp - 0x16], 0
cmp byte [ebp - 0x15], 1
jne 0x40ad72
cmp dword [0x41eba4], 0x64
setl al
sub al, 1
jb 0x40ab34
jne 0x40ab48
mov edx, dword [0x41ecd4]
mov eax, dword [ebp - 0x10]
call fcn.00403634
test eax, eax
jle 0x40ab04
mov byte [ebp - 0x16], 1
jmp 0x40ab48
mov edx, dword [0x41ecd0]
mov eax, dword [ebp - 0x10]
call fcn.00403634
test eax, eax
jle 0x40ab1c
mov byte [ebp - 0x16], 0
jmp 0x40ab48
cmp dword [ebp - 0x138], 0xa00000
ja 0x40ab2e
mov byte [ebp - 0x16], 1
jmp 0x40ab48
mov byte [ebp - 0x16], 0
jmp 0x40ab48
mov edx, dword [0x41ecd4]
mov eax, dword [ebp - 0x10]
call fcn.00403634
test eax, eax
setg byte [ebp - 0x16]
cmp byte [ebp - 0x16], 0
je 0x40ad72
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004033e8
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x14]
call fcn.00408634
mov eax, dword [ebp - 0x14]
call fcn.0040339c
test eax, eax
jle 0x40ad72
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x41eb34]
call fcn.0040359c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x41ebc0], eax
push 2
push 0
push 0
mov eax, dword [0x41ebc0]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [0x41ebc0]
push eax
call sub.kernel32.dll_GetFileSize
test eax, eax
jns 0x40abcf
call fcn.00402a00
mov dword [0x41eba8], eax
cmp dword [0x41eba8], 0xed800
jle 0x40aca0
push 0x40b248
lea edx, [ebp - 0x180]
mov eax, dword [0x41eba8]
call fcn.00404950
push dword [ebp - 0x180]
push 0x40b25c
lea edx, [ebp - 0x184]
mov eax, 0xed800
call fcn.00404950
push dword [ebp - 0x184]
lea eax, [ebp - 0x17c]
mov edx, 4
call fcn.0040345c
mov eax, dword [ebp - 0x17c]
call fcn.004128f8
push 0xc8
mov ecx, dword [0x41ed58]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.00406614
push 0x40b268
mov ecx, dword [0x41ed24]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.004064ec
push 0
mov ecx, dword [0x41ed2c]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.00406614
push 0
mov ecx, dword [0x41ed28]
mov edx, dword [0x41ed20]
mov eax, 0x80000002
call fcn.00406614
call fcn.004030ac
cmp word [0x41d1f4], 0
jne 0x40accc
push 0x40b274
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x40b274
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040345c
jmp 0x40ad17
push 0x40b274
lea edx, [ebp - 0x188]
movzx eax, word [0x41d1f4]
call fcn.00404950
push dword [ebp - 0x188]
push 0x40b280
push dword [0x41eb78]
push dword [0x41eb70]
push 0x40b28c
push dword [ebp - 0xc]
push 0x40b274
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 9
call fcn.0040345c
push 0
push 0x41ebb0
mov eax, dword [ebp - 0x14]
call fcn.0040339c
test eax, eax
jns 0x40ad2f
call fcn.00402a00
push eax
lea eax, [ebp - 0x14]
call fcn.004035ec
mov edx, 1
dec edx
test eax, eax
je 0x40ad47
cmp edx, dword [eax - 4]
jb 0x40ad4c
call fcn.00402a00
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [0x41ebc0]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x41ebc0]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040367c
cmp word [0x41d1f4], 0
jne 0x40adc2
mov ecx, dword [0x41eb98]
test ecx, ecx
jns 0x40ad8b
call fcn.00402a00
mov edx, dword [0x41ed2c]
mov eax, dword [0x41ebd0]
call fcn.00406860
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004033e8
mov ecx, dword [ebp - 0x18c]
mov edx, dword [0x41ed24]
mov eax, dword [0x41ebd0]
call fcn.00406788
mov eax, 0x41eb74
mov edx, 0x40b298
call fcn.0040326c
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40a82c
mov eax, 0x41eb74
mov edx, 0x40b2c0
call fcn.0040326c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
mov eax, 0x41eb74
mov edx, 0x40b33c
call fcn.0040326c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae4a
lea eax, [ebp - 0x18c]
mov edx, 0xd
call fcn.0040323c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040323c
lea eax, [ebp - 4]
call fcn.00403218
ret