Function at 0x40b34c
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 0x40b354
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
mov edi, 0x41213c
xor eax, eax
push ebp
push 0x40b87e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407c30
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40b894
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x158]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40b84d
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x154], 0x10
je 0x40b424
mov eax, dword [ebp - 8]
mov edx, 0x40b8a0
call fcn.004039f0
je 0x40b838
mov eax, dword [ebp - 8]
mov edx, 0x40b8ac
call fcn.004039f0
je 0x40b838
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40b8b8
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x15c]
call fcn.0040b34c
jmp 0x40b838
cmp word [edi], 0
jne 0x40b430
inc dword [0x413b24]
mov eax, dword [0x413b24]
cmp eax, dword [0x413b20]
jl 0x40b838
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 8]
call fcn.004038a4
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.00403b04
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0xc]
call fcn.00405504
mov edx, dword [0x413b08]
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
je 0x40b486
mov bl, 3
jmp 0x40b488
mov bl, 1
cmp bl, 3
jne 0x40b553
mov eax, dword [0x413b04]
call fcn.004038a4
test eax, eax
jne 0x40b4a6
mov bl, 2
jmp 0x40b553
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40b4b9
mov bl, 2
jmp 0x40b553
mov eax, dword [ebp - 0xc]
mov edx, 0x40b8c4
call fcn.004039f0
jne 0x40b4fc
cmp dword [ebp - 0x134], 0x7530
jae 0x40b4d8
mov bl, 2
jmp 0x40b553
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x164]
call fcn.004058ac
test al, al
jne 0x40b553
mov bl, 2
jmp 0x40b553
mov edx, dword [ebp - 8]
mov eax, 0x40b8d0
call fcn.00403b8c
test eax, eax
je 0x40b553
mov edx, dword [ebp - 8]
mov eax, 0x40b8e0
call fcn.00403b8c
test eax, eax
jne 0x40b553
mov edx, dword [ebp - 8]
mov eax, 0x40b8f4
call fcn.00403b8c
test eax, eax
jne 0x40b553
mov edx, dword [ebp - 8]
mov eax, 0x40b908
call fcn.00403b8c
test eax, eax
jne 0x40b553
mov edx, dword [ebp - 8]
mov eax, 0x40b920
call fcn.00403b8c
test eax, eax
jne 0x40b553
mov bl, 2
cmp bl, 3
jne 0x40b5cd
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040aea0
test al, al
je 0x40b58b
lea eax, [ebp - 0x168]
mov ecx, 0x40b8b8
mov edx, dword [0x413b00]
call fcn.004038f0
mov eax, dword [ebp - 0x168]
call fcn.0040b34c
push dword [0x413ae0]
push 0x40b938
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405440
push dword [ebp - 0x170]
push 0x40b944
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x16c]
call fcn.00405acc
dec word [edi]
cmp bl, 1
jne 0x40b7f7
cmp dword [0x413b30], 0x64
setl al
sub al, 1
jb 0x40b5fb
jne 0x40b60e
mov edx, 0x40b954
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40b60e
mov edx, 0x40ba5c
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40b7f7
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x10]
call fcn.00409e48
mov eax, dword [ebp - 0x10]
call fcn.004038a4
test eax, eax
jle 0x40b7f7
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x413ad0]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x413b4c], eax
push 2
push 0
push 0
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_SetFilePointer
push 0
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [0x413b34], eax
cmp dword [0x413b34], 0xed800
jle 0x40b755
push 0x40ba9c
lea edx, [ebp - 0x17c]
mov eax, dword [0x413b34]
call fcn.00405440
push dword [ebp - 0x17c]
push 0x40bab0
lea edx, [ebp - 0x180]
mov eax, 0xed800
call fcn.00405440
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x178]
call fcn.004116a4
push 0xc8
mov ecx, 0x40babc
mov edx, 0x40bacc
mov eax, 0x80000002
call fcn.00406eec
push 0x40bb14
mov edx, 0x40bacc
mov ecx, 0x40bb20
mov eax, 0x80000002
call fcn.00406dc4
push 0
mov edx, 0x40bacc
mov ecx, 0x40bb30
mov eax, 0x80000002
call fcn.00406eec
push 0
mov edx, 0x40bacc
mov ecx, 0x40bb40
mov eax, 0x80000002
call fcn.00406eec
call fcn.004035c0
cmp word [edi], 0
jne 0x40b77d
push 0x40bb50
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40bb50
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403964
jmp 0x40b7be
push 0x40bb50
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405440
push dword [ebp - 0x184]
push 0x40bb5c
push dword [0x413b10]
push 0x40bb68
push dword [ebp - 8]
push 0x40bb50
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00403964
push 0
push 0x413b3c
mov eax, dword [ebp - 0x10]
call fcn.004038a4
push eax
lea eax, [ebp - 0x10]
call fcn.00403afc
push eax
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x413b4c]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bd4
cmp word [edi], 0
jne 0x40b838
mov edx, 0x40bb30
mov ecx, dword [0x413b24]
mov eax, dword [0x413b5c]
call fcn.004071ec
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov ecx, dword [ebp - 0x188]
mov edx, 0x40bb20
mov eax, dword [0x413b5c]
call fcn.00407114
lea eax, [ebp - 0x154]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40b3b7
push esi
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b885
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403750
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403750
ret