Function at 0x40b4b0
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 0x40b4b8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov edi, 0x41413c
xor eax, eax
push ebp
push 0x40b9f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x415b14
mov edx, 0x40ba08
call fcn.00403770
call fcn.00407818
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40ba40
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 0x40b9c0
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x154], 0x10
je 0x40b597
mov eax, dword [ebp - 8]
mov edx, 0x40ba4c
call fcn.004039e0
je 0x40b9ab
mov eax, dword [ebp - 8]
mov edx, 0x40ba58
call fcn.004039e0
je 0x40b9ab
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40ba64
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x15c]
call fcn.0040b4b0
jmp 0x40b9ab
cmp word [edi], 0
jne 0x40b5a3
inc dword [0x415b28]
mov eax, dword [0x415b28]
cmp eax, dword [0x415b24]
jl 0x40b9ab
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.004053f4
mov edx, dword [0x415b08]
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
je 0x40b5f9
mov bl, 3
jmp 0x40b5fb
mov bl, 1
cmp bl, 3
jne 0x40b6c6
mov eax, dword [0x415b04]
call fcn.00403894
test eax, eax
jne 0x40b619
mov bl, 2
jmp 0x40b6c6
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40b62c
mov bl, 2
jmp 0x40b6c6
mov eax, dword [ebp - 0xc]
mov edx, 0x40ba70
call fcn.004039e0
jne 0x40b66f
cmp dword [ebp - 0x134], 0x7530
jae 0x40b64b
mov bl, 2
jmp 0x40b6c6
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x164]
call fcn.004056e4
test al, al
jne 0x40b6c6
mov bl, 2
jmp 0x40b6c6
mov edx, dword [ebp - 8]
mov eax, 0x40ba7c
call fcn.00403b7c
test eax, eax
je 0x40b6c6
mov edx, dword [ebp - 8]
mov eax, 0x40ba8c
call fcn.00403b7c
test eax, eax
jne 0x40b6c6
mov edx, dword [ebp - 8]
mov eax, 0x40baa0
call fcn.00403b7c
test eax, eax
jne 0x40b6c6
mov edx, dword [ebp - 8]
mov eax, 0x40bab4
call fcn.00403b7c
test eax, eax
jne 0x40b6c6
mov edx, dword [ebp - 8]
mov eax, 0x40bacc
call fcn.00403b7c
test eax, eax
jne 0x40b6c6
mov bl, 2
cmp bl, 3
jne 0x40b740
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040af00
test al, al
je 0x40b6fe
lea eax, [ebp - 0x168]
mov ecx, 0x40ba64
mov edx, dword [0x415b00]
call fcn.004038e0
mov eax, dword [ebp - 0x168]
call fcn.0040b4b0
push dword [0x415ae0]
push 0x40bae4
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405370
push dword [ebp - 0x170]
push 0x40baf0
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x16c]
call fcn.0040589c
dec word [edi]
cmp bl, 1
jne 0x40b96a
cmp dword [0x415b34], 0x64
setl al
sub al, 1
jb 0x40b76e
jne 0x40b781
mov edx, 0x40bb00
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40b781
mov edx, 0x40bc08
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40b96a
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.00409e1c
mov eax, dword [ebp - 0x10]
call fcn.00403894
test eax, eax
jle 0x40b96a
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x415ad0]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x415b50], eax
push 2
push 0
push 0
mov eax, dword [0x415b50]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
mov eax, dword [0x415b50]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [0x415b38], eax
cmp dword [0x415b38], 0xed800
jle 0x40b8c8
push 0x40bc48
lea edx, [ebp - 0x17c]
mov eax, dword [0x415b38]
call fcn.00405370
push dword [ebp - 0x17c]
push 0x40bc5c
lea edx, [ebp - 0x180]
mov eax, 0xed800
call fcn.00405370
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x178]
call fcn.00412de0
push 0xc8
mov ecx, 0x40bc68
mov edx, 0x40bc78
mov eax, 0x80000002
call fcn.004068e8
push 0x40bcc0
mov edx, 0x40bc78
mov ecx, 0x40bccc
mov eax, 0x80000002
call fcn.004067f8
push 0
mov edx, 0x40bc78
mov ecx, 0x40bcdc
mov eax, 0x80000002
call fcn.004068e8
push 0
mov edx, 0x40bc78
mov ecx, 0x40bcec
mov eax, 0x80000002
call fcn.004068e8
call fcn.004035b0
cmp word [edi], 0
jne 0x40b8f0
push 0x40bcfc
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40bcfc
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403954
jmp 0x40b931
push 0x40bcfc
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405370
push dword [ebp - 0x184]
push 0x40bd08
push dword [0x415b10]
push 0x40bd14
push dword [ebp - 8]
push 0x40bcfc
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00403954
push 0
push 0x415b40
mov eax, dword [ebp - 0x10]
call fcn.00403894
push eax
lea eax, [ebp - 0x10]
call fcn.00403aec
push eax
mov eax, dword [0x415b50]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x415b50]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bc4
cmp word [edi], 0
jne 0x40b9ab
mov edx, 0x40bcdc
mov ecx, dword [0x415b28]
mov eax, dword [0x415b60]
call fcn.00406b78
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov ecx, dword [ebp - 0x188]
mov edx, 0x40bccc
mov eax, dword [0x415b60]
call fcn.00406acc
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40b52a
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9f8
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403740
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403740
ret