Function at 0x40b330
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe74
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0xe70], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x482]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov word [esp + 0x484], ax
call fcn.0045acf0
add esp, 0xc
test ebx, ebx
je 0x40b5c3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40b5c3
test esi, esi
je 0x40b5c3
cmp esi, 0xffffffff
je 0x40b5c3
push ebx
lea edx, [esp + 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x48d190
lea eax, [esp + 0x47c]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40b5c3
jmp 0x40b3f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x48d198
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x40b586
push 0x48d19c
lea ecx, [esp + 0x50]
push ecx
call esi
test eax, eax
je 0x40b586
test byte [esp + 0x20], 0x10
je 0x40b46c
push ebx
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x274]
push ecx
call edi
push 0x48d1a4
lea edx, [esp + 0x274]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.0040b330
add esp, 8
jmp 0x40b586
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x4c]
push edx
call esi
test eax, eax
je 0x40b586
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x682]
push ecx
mov word [esp + 0x684], ax
call fcn.0045acf0
add esp, 0xc
push ebx
lea edx, [esp + 0x274]
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x274]
push ecx
call edi
lea edx, [esp + 0x270]
push edx
call esi
sub eax, 1
je 0x40b4f0
jmp 0x40b4e0
cmp word [esp + eax*2 + 0x270], 0x2e
je 0x40b4f0
sub eax, 1
jne 0x40b4e0
lea esi, [esp + eax*2 + 0x272]
push 0x48d1ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b517
push 0x48d1b4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b586
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push 0x48d1bc
push ecx
mov dword [esp + 0x24], 0
call fcn.004587c6
lea edx, [esp + 0x27c]
push edx
push eax
lea eax, [esp + 0x68c]
push 0x48d1c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x694]
push ecx
mov edx, ecx
push edx
mov ebx, 0x400
call fcn.0040b2b0
add esp, 0x24
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x684]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b3f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe70]
xor ecx, esp
call fcn.00457c10
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00457c10
mov esp, ebp
pop ebp
ret