Function at 0x40c2d0
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x40d1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x10000
mov dword [ebp - 0x270], esi
call fcn.0040c970
mov ebx, eax
add esp, 4
mov dword [ebp - 0x26c], ebx
test ebx, ebx
je 0x40c5a1
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x404158
push ebx
call edi
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c367
push 0
lea eax, [ebp - 0x278]
push eax
push 0x402108
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push 0x402108
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x270]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x404198
push ebx
call edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x40c51a
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
xor esi, esi
push dword [esi + 0x40d130]
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x40c4f2
add esi, 4
cmp esi, 0x88
jb 0x40c3a2
push dword [ebp - 0x270]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x4041a0
push ebx
call esi
lea eax, [ebp - 0x23c]
push eax
push ebx
call esi
test byte [ebp - 0x268], 0x10
jne 0x40c4f2
push 0x4041a4
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x40c4f2
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
sub esi, 1
js 0x40c477
nop word [eax + eax]
cmp word [ebp + esi*2 - 0x23c], 0x2e
je 0x40c442
sub esi, 1
jns 0x40c430
jmp 0x40c477
xor eax, eax
mov word [ebp + esi*2 - 0x23c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0040c7c0
add esp, 8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x23a]
lea eax, [eax + esi*2]
push eax
call edi
test eax, eax
je 0x40c4f2
push 0
push ebx
push 0x40d20c
call fcn.0040cb30
add esp, 0xc
test eax, eax
jne 0x40c4f2
nop dword [eax + eax]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
push 0
push 0x40d20c
call fcn.0040cab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c4de
push esi
call fcn.0040b030
push esi
call fcn.0040c9a0
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x40d20c
call fcn.0040cab0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c4b6
push 0
push ebx
push 0x40d20c
call fcn.0040cb30
add esp, 0xc
test eax, eax
je 0x40c490
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c3a0
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x40c597
cmp dword [0x40d26c], 0
je 0x40c597
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push eax
push esi
push 0
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.0040c970
add esp, 4
mov dword [ebp - 0x274], eax
push 0
push 0
push esi
mov esi, dword [ebp - 0x270]
push eax
push esi
call ebx
push eax
push esi
push 0
push 0xfde9
call edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp - 0x274]
push eax
push esi
push 0x4041e0
call fcn.0040af30
push esi
call fcn.0040c9a0
mov ebx, dword [ebp - 0x26c]
add esp, 0x10
push ebx
call fcn.0040c9a0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret