Function at 0x421d30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8536
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x5381f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b0], ecx
cmp dword [ebp + 0x18], 0
jg 0x421d6c
jmp 0x4222b4
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a03d0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00403a90
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x507b6c
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0xffffffff
je 0x421dda
cmp dword [ebp - 0x474], 0
jne 0x421f0b
lea edx, [ebp - 0x508]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4e8]
call fcn.00406890
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x478]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x469], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00409eb0
movzx ecx, byte [ebp - 0x469]
test ecx, ecx
je 0x421f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x498], eax
lea edx, [ebp - 0x510]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x490]
mov dword [ebp - 0x494], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x494]
call fcn.004068b0
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x498]
push ecx
push 0x507b74
lea ecx, [ebp - 0x5b0]
call fcn.004091f0
mov dword [ebp - 0x49c], eax
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4a0]
call fcn.004241a0
mov ecx, eax
call fcn.004195a0
push eax
mov eax, dword [ebp - 0x47c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x47c]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5b0]
call fcn.00409f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x510]
call fcn.00409eb0
jmp 0x4222b4
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x43c]
cmp eax, 0x2e
jne 0x421f34
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x43c]
test edx, edx
je 0x421f5c
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x43c]
cmp ecx, 0x2e
jne 0x421f61
mov edx, 2
shl edx, 1
movzx eax, word [ebp + edx - 0x43c]
test eax, eax
jne 0x421f61
jmp 0x42228b
lea ecx, [ebp - 0x43c]
push ecx
push 0x507b98
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x4ac]
push eax
call fcn.0041a390
add esp, 0xc
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a8], ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x470]
push eax
call fcn.0041a390
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4ac]
call fcn.00403900
mov ecx, dword [ebp - 0x468]
and ecx, 0x10
je 0x42200e
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x421ff7
mov eax, dword [ebp + 0x18]
sub eax, 1
push eax
movzx ecx, byte [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x470]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4b0]
call fcn.00421d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00403900
jmp 0x42228b
mov ecx, dword [ebp + 0x10]
call fcn.00403a90
push eax
lea edx, [ebp - 0x43c]
push edx
call fcn.004c006a
add esp, 8
test eax, eax
jne 0x422156
lea eax, [ebp - 0x4f0]
push eax
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4b8]
call fcn.00406890
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x480]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 0x46a], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4f0]
call fcn.00409eb0
movzx eax, byte [ebp - 0x46a]
test eax, eax
je 0x42213f
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4c0]
call fcn.004068b0
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + 0x10]
push eax
push str.RepeatFile:
lea ecx, [ebp - 0x648]
call fcn.004091f0
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4c8]
call fcn.00424200
mov ecx, eax
call fcn.00406500
push eax
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x648]
call fcn.00409f20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4f8]
call fcn.00409eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00403900
jmp 0x42228b
lea eax, [ebp - 0x500]
push eax
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4d0]
call fcn.00406890
mov dword [ebp - 0x488], eax
mov edx, dword [ebp - 0x488]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x488]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 0x46b], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x500]
call fcn.00409eb0
movzx eax, byte [ebp - 0x46b]
test eax, eax
je 0x42226a
lea ecx, [ebp - 0x518]
push ecx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4d4], eax
mov edx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d8], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4d8]
call fcn.004068b0
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x470]
push eax
push str.AddFile:
lea ecx, [ebp - 0x6e0]
call fcn.004091f0
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e0], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x4e0]
call fcn.004064e0
mov ecx, eax
call fcn.00406500
push eax
mov edx, dword [ebp - 0x48c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48c]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6e0]
call fcn.00409f20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x518]
call fcn.00409eb0
lea eax, [ebp - 0x470]
push eax
mov ecx, dword [ebp + 8]
call fcn.00436260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00403900
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421f0b
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046621a
mov esp, ebp
pop ebp
ret 0x14