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

Disassembly:
mov eax, 0x127c
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1274], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4022f6
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xa88], ax
lea eax, [esp + 0xa8a]
push eax
call fcn.0048e880
add esp, 0xc
xor eax, eax
mov word [esp + 0x280], ax
push 0x7fe
push eax
lea eax, [esp + 0x28a]
push eax
call fcn.0048e880
add esp, 0xc
mov dword [esp + 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
inc eax
mov dword [esp + 0x20], 1
push 0
mov dword [esp + 0x2c], eax
mov ebp, 0x1312d00
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push ebp
push 8
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4022f6
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
xor eax, eax
nop dword [eax]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
lea esi, [ebx + eax*2]
push esi
lea eax, [esp + 0xa84]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
inc ecx
add ecx, eax
lea eax, [esp + 0x280]
push 0x4ad2c8
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x30]
mov esi, 1
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x4022ae
nop dword [eax + eax]
test esi, esi
je 0x4022aa
cmp dword [0x4c5184], 0
je 0x402312
push 0x4ad2d0
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x402294
push 0x4ad2d4
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x402294
push 0x4ad2dc
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x402294
push str.winsxs
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x402294
push str.recycle
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x402294
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xa84]
push eax
push 0x4ad304
lea eax, [esp + 0x28c]
push 0x400
push eax
call fcn.0040a3c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
cmp eax, 0xffffffff
je 0x40222d
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x288]
push eax
call esi
add eax, eax
push eax
lea eax, [esp + 0x28c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x2c]
push eax
push 4
push 0x4ad24c
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esp + 0x30], 0x10
je 0x402294
lea eax, [esp + 0x280]
push eax
call esi
mov esi, dword [esp + 0x20]
add eax, esi
lea eax, [eax*2 + 2]
cmp eax, ebp
jb 0x402269
add ebp, 0x1312d00
push ebp
push ebx
push 8
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
je 0x4022de
inc dword [esp + 0x18]
lea eax, [esp + 0x280]
push eax
lea eax, [ebx + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc esi
add esi, eax
mov dword [esp + 0x20], esi
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x402140
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jne 0x4020c0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, 1
jmp 0x4022f9
push 0x10
push str.Error_23
push str.No_free_memory.
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [esp + 0x1284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x127c
ret
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x130b
push 0x271c
push dword [0x4def88]
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
test eax, eax
jne 0x40238b
cmp dword [0x4deb74], 1
jne 0x40238b
push eax
push 0x297f
push dword [0x4def88]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov ecx, 1
call fcn.00402c50
push 5
push 0x272c
push dword [0x4def88]
call edi
push eax
call esi
push 0
push 0
push 0x402
push 0x272a
push dword [0x4def88]
call edi
push eax
call ebx
mov ecx, 0x4deb78
call fcn.004028a0
call fcn.004034b0
push 1
mov dword [0x4c5184], 2
call dword [sym.imp.KERNEL32.dll_ExitThread]