Function at 0x46b9f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4ba850]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov al, 0x3f
push 0x4b4af8
push 0x4bcb08
mov byte [0x4b4afc], al
mov byte [0x4b4afd], al
mov byte [0x4b4afe], al
lea eax, [esp + 0x168]
push 0x49b12c
push eax
mov dword [esp + 0x18], 0xffffffff
call ebp
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x46bc60
cmp edi, 0xffffffff
je 0x46bc60
test byte [esp + 0x20], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jne 0x46bb42
lea eax, [esp + 0x54]
push eax
push 0x4bcb08
lea ecx, [esp + 0x170]
push 0x49b12c
push ecx
call ebp
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x180]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x46bae0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0048164f
add esp, 0x260
ret
movzx eax, byte [esp + 0x58]
movzx ecx, byte [esp + 0x59]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x5a]
lea edi, [eax + edx*2 - 0x14d0]
cmp edi, dword [esp + 0x274]
jl 0x46bb37
cmp edi, dword [esp + 0x278]
jge 0x46bb37
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x46bb33
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0x46babe
mov dword [esp + 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46bc50
jmp 0x46bb60
test byte [esp + 0x28], 0x10
jne 0x46bc3c
lea ecx, [esp + 0x54]
push ecx
push 0x4bcb08
lea edx, [esp + 0x170]
push 0x49b12c
push edx
call ebp
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea eax, [esp + 0x180]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x46bc3c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46bc3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esp + 0x58]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x59]
lea eax, [eax + edx*2]
movzx edx, byte [esp + 0x5a]
lea ecx, [eax + eax*4]
lea esi, [edx + ecx*2 - 0x14d0]
cmp esi, dword [esp + 0x274]
jl 0x46bc3c
cmp esi, dword [esp + 0x278]
jge 0x46bc3c
cmp dword [esp + 0x10], 0xffffffff
jne 0x46bc13
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x46bc38
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46bc3c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46bb60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x46bac7
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0048164f
add esp, 0x260
ret