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.0040c980
mov ebx, eax
add esp, 4
mov dword [ebp - 0x26c], ebx
test ebx, ebx
je 0x40c5be
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x404168
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 0x4041a8
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 0x40c537
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 0x40c512
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 0x4041b0
push ebx
call esi
lea eax, [ebp - 0x23c]
push eax
push ebx
call esi
test byte [ebp - 0x268], 0x10
jne 0x40c512
push 0x4041b4
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40c512
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 0x40c493
nop word [eax + eax]
cmp word [ebp + esi*2 - 0x23c], 0x2e
je 0x40c442
sub esi, 1
jns 0x40c430
jmp 0x40c493
xor eax, eax
mov word [ebp + esi*2 - 0x23c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0040c7d0
add esp, 8
lea eax, [ebp - 0x23a]
lea esi, [eax + esi*2]
push 0x404120
push esi
call edi
test eax, eax
je 0x40c512
push 0x404128
push esi
call edi
test eax, eax
je 0x40c512
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
je 0x40c512
push 0
push ebx
push 0x40d20c
call fcn.0040cb40
add esp, 0xc
test eax, eax
jne 0x40c512
nop word [eax + eax]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
push 0
push 0x40d20c
call fcn.0040cac0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c4fe
push esi
call fcn.0040b030
push esi
call fcn.0040c9b0
lea eax, [ebp - 0x26c]
push eax
push 0
push 0x40d20c
call fcn.0040cac0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c4d6
push 0
push ebx
push 0x40d20c
call fcn.0040cb40
add esp, 0xc
test eax, eax
je 0x40c4b0
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 0x40c5b4
cmp dword [0x40d26c], 0
je 0x40c5b4
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.0040c980
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 0x4041f0
call fcn.0040af30
push esi
call fcn.0040c9b0
mov ebx, dword [ebp - 0x26c]
add esp, 0x10
push ebx
call fcn.0040c9b0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc9c
mov esp, ebp
pop ebp
ret