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

Disassembly:
mov eax, 0x20488
call fcn.004fee80
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x20484], eax
mov eax, dword [esp + 0x2048c]
push ebx
mov ebx, dword [esp + 0x20498]
push ebp
push esi
mov esi, dword [esp + 0x2049c]
push edi
push esi
push str._s
lea edx, [esp + 0x498]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call fcn.00404470
add esp, 8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
jne 0x406b63
xor eax, eax
jmp 0x406d50
test byte [esp + 0x20], 0x10
je 0x406bd7
lea eax, [esp + 0x4c]
push 0x54f5a0
push eax
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406d21
lea ecx, [esp + 0x4c]
push 0x54f5a4
push ecx
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406d21
lea edx, [esp + 0x4c]
push edx
push esi
push str._s_s
lea edx, [esp + 0x1049c]
call fcn.00404470
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
lea eax, [esp + 0x10494]
push eax
push ecx
call fcn.00406af0
add esp, 0xc
test eax, eax
je 0x406b5c
jmp 0x406d21
mov edi, dword [ebx + 0xc]
cmp edi, dword [ebx + 0x10]
jbe 0x406be4
call fcn.004fd947
mov esi, dword [ebx]
mov ebp, dword [ebx + 0x10]
cmp dword [ebx + 0xc], ebp
jbe 0x406bf3
call fcn.004fd947
mov eax, dword [ebx]
test esi, esi
je 0x406bfd
cmp esi, eax
je 0x406c02
call fcn.004fd947
cmp edi, ebp
je 0x406d19
test esi, esi
jne 0x406c4d
call fcn.004fd947
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406c1f
call fcn.004fd947
mov edx, dword [edi]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406c55
test esi, esi
jne 0x406c51
call fcn.004fd947
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406c48
call fcn.004fd947
add edi, 4
jmp 0x406be6
mov eax, dword [esi]
jmp 0x406c15
mov eax, dword [esi]
jmp 0x406c3e
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28c]
push 0x104
push edx
call fcn.004fe20f
add esp, 0xc
lea eax, [esp + 0x288]
push 0x104
push eax
call fcn.004fe443
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x290]
push ecx
push edx
push str._s_s
lea edx, [esp + 0x104a4]
call fcn.00404470
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x104a8]
push eax
mov dword [esp + 0x34], 0x14
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406b5c
push 0
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
push esi
test eax, eax
je 0x406d69
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x274]
push eax
push ecx
lea ecx, [esp + 0x290]
call fcn.00406d80
add esp, 8
test eax, eax
je 0x406b5c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x406b63
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x20494]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fd1b4
add esp, 0x20488
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x406d50