Function at 0x46a530
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor edx, edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46a79e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov ecx, 0x46a7b8
mov edx, dword [ebp - 8]
call fcn.004056a4
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46a778
lea eax, [ebp - 0x158]
call fcn.0046a420
test al, al
je 0x46a63a
mov eax, dword [0x6519d0]
movzx eax, byte [eax]
xor al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
cmp dword [eax + 0x40], 0
je 0x46a5e0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ebx, eax
lea ecx, [ebp - 0x15]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x158]
call dword [ebx + 0x40]
cmp byte [ebp - 0x15], 0
je 0x46a74d
inc dword [ebp - 0x10]
push dword [ebp - 8]
push 0x46a7c8
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.004055fc
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
call fcn.0046a9ac
jmp 0x46a74d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
cmp word [eax + 0x3a], 0
je 0x46a74d
lea edx, [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046a45c
test al, al
je 0x46a74d
push ebp
call fcn.0046a504
pop ecx
test al, al
jne 0x46a76f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x30]
call fcn.00426ac0
xor edx, edx
push ebp
push 0x46a737
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
cmp byte [eax + 0x44], 0
jne 0x46a718
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x46a4b4
push dword [ebp - 8]
push 0x46a7c8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.004055fc
push dword [ebp - 0x168]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042506c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x2c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a73e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x30]
call fcn.00426ac8
ret
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
je 0x46a76f
mov eax, dword [0x6519d0]
cmp byte [eax], 0
je 0x46a59a
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a7a5
lea eax, [ebp - 0x168]
mov edx, 4
call fcn.004053b0
lea eax, [ebp - 0xc]
call fcn.0040538c
ret