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

Disassembly:
push 0xffffffffffffffff
push 0x4f6216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
push ebp
mov ebp, dword [esp + 0x684]
lea eax, [esp + 0x274]
push ebp
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea ecx, [esp + 0x274]
push ecx
call fcn.00460860
add esp, 4
lea edx, [esp + 0x274]
push 0x52b0c4
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x134]
lea ecx, [esp + 0x274]
push eax
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x460f3e
mov dl, byte [esp + 0x2b]
push ebx
push esi
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00403b70
mov edi, 0x536ec0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x68c], esi
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00403be0
test al, al
je 0x460bcc
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
mov esi, 0x536ec0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403bc0
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x6a4]
mov dword [esp + 0x688], 1
jmp 0x460bf9
mov ebp, dword [esp + 0x690]
xor esi, esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x140]
stosw word es:[edi], ax
and ecx, 0x10
cmp cl, 0x10
stosb byte es:[edi], al
jne 0x460d80
mov esi, dword [sym.imp.kernel32.dll_lstrcmpA]
lea edx, [esp + 0x16c]
push 0x52b1f4
push edx
call esi
test eax, eax
je 0x460ec6
lea eax, [esp + 0x16c]
push 0x5251f0
push eax
call esi
test eax, eax
je 0x460ec6
lea ecx, [esp + 0x3c]
push ebp
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea edx, [esp + 0x3c]
push edx
call fcn.00460860
add esp, 4
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcatA]
test ebx, ebx
mov dword [esp + 0x10], 1
je 0x460cbd
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0x40]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x460d01
mov ecx, ebp
jmp 0x460ce3
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x460d01
mov ecx, ebp
lea esi, [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x154]
or eax, 0xffffffff
push ecx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
call fcn.004607b0
mov esi, dword [esp + 0x69c]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x140]
push ecx
push 1
push edx
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004065c0
mov eax, dword [esp + 0x6a0]
test eax, eax
je 0x460ec6
mov ecx, dword [esp + 0x698]
push ebx
push eax
mov eax, dword [esp + 0x6a4]
push eax
push ecx
lea edx, [esp + 0x4c]
push esi
push edx
call fcn.00460af0
add esp, 0x18
jmp 0x460ec6
mov eax, dword [esp + 0x698]
push ebp
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x6a0]
mov ecx, dword [esp + 0x164]
mov edi, dword [eax]
add edi, ecx
mov dword [eax], edi
mov edx, dword [eax + 4]
adc edx, esi
mov dword [eax + 4], edx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x3c]
push eax
call fcn.00460860
add esp, 4
lea ecx, [esp + 0x16c]
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
cmp ebx, esi
je 0x460e26
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0x40]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x460e6a
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
jmp 0x460e6a
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x460e6a
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0x158]
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x154]
push eax
push ecx
mov dword [esp + 0x38], edx
call fcn.004607b0
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x69c]
add esp, 8
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 8]
push eax
push 1
push edx
mov dword [esp + 0x1c], 0
call fcn.004065c0
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x140]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x460bf0
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
test eax, eax
je 0x460f26
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x460f1d
cmp al, 0xff
je 0x460f1d
dec al
pop ebp
mov byte [ecx], al
xor eax, eax
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
add esp, 0x67c
ret
push ecx
call fcn.004dae3e
add esp, 4
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
add esp, 0x67c
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esp + 0x674]
pop ebp
mov dword fs:[0], ecx
add esp, 0x67c
ret