Function at 0x40b2a4
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 0x40b2ac
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
mov edi, 0x4141f0
xor eax, eax
push ebp
push 0x40b7ed
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407a98
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x40b804
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 0x40b7bc
lea eax, [ebp - 8]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x154], 0x10
je 0x40b37c
mov eax, dword [ebp - 8]
mov edx, 0x40b810
call fcn.004039f0
je 0x40b7a7
mov eax, dword [ebp - 8]
mov edx, 0x40b81c
call fcn.004039f0
je 0x40b7a7
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40b828
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x15c]
call fcn.0040b2a4
jmp 0x40b7a7
cmp word [edi], 0
jne 0x40b388
inc dword [0x415b3c]
mov eax, dword [0x415b3c]
cmp eax, dword [0x415b38]
jl 0x40b7a7
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.004054a4
mov edx, dword [0x415b08]
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
je 0x40b3de
mov bl, 3
jmp 0x40b3e0
mov bl, 1
cmp bl, 3
jne 0x40b4ab
mov eax, dword [0x415b04]
call fcn.004038a4
test eax, eax
jne 0x40b3fe
mov bl, 2
jmp 0x40b4ab
cmp dword [ebp - 0x134], 0x9600000
jbe 0x40b411
mov bl, 2
jmp 0x40b4ab
mov eax, dword [ebp - 0xc]
mov edx, 0x40b834
call fcn.004039f0
jne 0x40b454
cmp dword [ebp - 0x134], 0x7530
jae 0x40b430
mov bl, 2
jmp 0x40b4ab
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x164]
call fcn.00405794
test al, al
jne 0x40b4ab
mov bl, 2
jmp 0x40b4ab
mov edx, dword [ebp - 8]
mov eax, 0x40b840
call fcn.00403b8c
test eax, eax
je 0x40b4ab
mov edx, dword [ebp - 8]
mov eax, 0x40b850
call fcn.00403b8c
test eax, eax
jne 0x40b4ab
mov edx, dword [ebp - 8]
mov eax, 0x40b864
call fcn.00403b8c
test eax, eax
jne 0x40b4ab
mov edx, dword [ebp - 8]
mov eax, 0x40b878
call fcn.00403b8c
test eax, eax
jne 0x40b4ab
mov edx, dword [ebp - 8]
mov eax, 0x40b890
call fcn.00403b8c
test eax, eax
jne 0x40b4ab
mov bl, 2
cmp bl, 3
jne 0x40b536
inc word [edi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ac38
test al, al
je 0x40b4f4
mov eax, 0x415b20
mov edx, dword [ebp - 4]
call fcn.00403780
lea eax, [ebp - 0x168]
mov ecx, 0x40b828
mov edx, dword [0x415b00]
call fcn.004038f0
mov eax, dword [ebp - 0x168]
call fcn.0040b2a4
push dword [0x415ae0]
push 0x40b8a8
lea edx, [ebp - 0x170]
movzx eax, word [edi]
call fcn.00405420
push dword [ebp - 0x170]
push 0x40b8b4
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x16c]
call fcn.0040594c
dec word [edi]
cmp bl, 1
jne 0x40b766
cmp dword [0x415b48], 0x64
setl al
sub al, 1
jb 0x40b564
jne 0x40b577
mov edx, 0x40b8c4
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
sete byte [ebp - 0x11]
jmp 0x40b577
mov edx, 0x40b9e0
mov eax, dword [ebp - 0xc]
call fcn.00403b8c
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x40b766
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.00409eb4
mov eax, dword [ebp - 0x10]
call fcn.004038a4
test eax, eax
jle 0x40b766
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_1
mov dword [0x415b64], eax
push 2
push 0
push 0
mov eax, dword [0x415b64]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
mov eax, dword [0x415b64]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [0x415b4c], eax
cmp dword [0x415b4c], 0xed800
jle 0x40b6be
push 0x40ba2c
lea edx, [ebp - 0x17c]
mov eax, dword [0x415b4c]
call fcn.00405420
push dword [ebp - 0x17c]
push 0x40ba40
lea edx, [ebp - 0x180]
mov eax, 0xed800
call fcn.00405420
push dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x178]
call fcn.0041328c
push 0xc8
mov ecx, 0x40ba4c
mov edx, 0x40ba5c
mov eax, 0x80000002
call fcn.00406a5c
push 0x40baa4
mov edx, 0x40ba5c
mov ecx, 0x40bab0
mov eax, 0x80000002
call fcn.0040696c
push 0
mov edx, 0x40ba5c
mov ecx, 0x40bac0
mov eax, 0x80000002
call fcn.00406a5c
push 0
mov edx, 0x40ba5c
mov ecx, 0x40bad0
mov eax, 0x80000002
call fcn.00406a5c
call fcn.004035c0
cmp word [edi], 0
jne 0x40b6e6
push 0x40bae0
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40bae0
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403964
jmp 0x40b72d
push 0x40bae0
lea edx, [ebp - 0x184]
movzx eax, word [edi]
call fcn.00405420
push dword [ebp - 0x184]
push 0x40baec
push dword [0x415b20]
push dword [0x415b10]
push 0x40baf8
push dword [ebp - 8]
push 0x40bae0
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.00403964
push 0
push 0x415b54
mov eax, dword [ebp - 0x10]
call fcn.004038a4
push eax
lea eax, [ebp - 0x10]
call fcn.00403afc
push eax
mov eax, dword [0x415b64]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x415b64]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403bd4
cmp word [edi], 0
jne 0x40b7a7
mov edx, 0x40bac0
mov ecx, dword [0x415b3c]
mov eax, dword [0x415b74]
call fcn.00406cec
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov ecx, dword [ebp - 0x188]
mov edx, 0x40bab0
mov eax, dword [0x415b74]
call fcn.00406c40
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40b30f
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7f4
lea eax, [ebp - 0x188]
mov edx, 0xd
call fcn.00403750
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403750
ret