Function at 0x461496
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov esi, edx
xor edi, edi
mov eax, ebx
mov dword [ebp - 0xc94], ebx
mov dword [ebp - 0xc98], esi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], edi
call fcn.00461888
cmp esi, edi
je 0x461730
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.004dbcc0
add esp, 0xc
push 0x250
lea eax, [ebp - 0x460]
push edi
push eax
call fcn.004dbcc0
add esp, 0xc
push esi
push str._s.
push 0xffffffffffffffff
mov esi, 0x103
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004d78c1
add esp, 0x14
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc9c], eax
cmp eax, 0xffffffff
je 0x461718
lea edi, [esi + 1]
mov ecx, 0x514004
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46157a
test dx, dx
je 0x461576
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46157a
add eax, 4
add ecx, 4
test dx, dx
jne 0x461554
xor eax, eax
jmp 0x46157f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4616f1
mov ecx, 0x516d3c
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4615b8
test dx, dx
je 0x4615b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4615b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x461592
xor eax, eax
jmp 0x4615bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4616f1
mov ebx, dword [ebp - 0x460]
test bl, 2
je 0x4615d9
test bl, 0x10
je 0x4616eb
test bl, 0x10
je 0x46164f
push 0x418
lea eax, [ebp - 0xc90]
push 0
push eax
call fcn.004dbcc0
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x50e498
push esi
lea eax, [ebp - 0xa84]
push edi
push eax
mov dword [ebp - 0xc90], 1
mov dword [ebp - 0x87c], ebx
call fcn.004d78c1
add esp, 0x14
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0xc98]
lea eax, [ebp - 0xc8c]
push str._s_s_
push esi
push edi
push eax
call fcn.004d78c1
add esp, 0x18
lea eax, [ebp - 0xc90]
jmp 0x4616df
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4616eb
push str..url
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4616eb
push 0x418
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.004dbcc0
mov eax, dword [ebp - 0x460]
and dword [ebp - 0x878], 0
add esp, 0xc
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0xc98]
lea eax, [ebp - 0x874]
push 0x515490
push esi
push edi
push eax
call fcn.004d78c1
lea eax, [ebp - 0x434]
push eax
push 0x50e498
push esi
lea eax, [ebp - 0x66c]
push edi
push eax
call fcn.004d78c1
add esp, 0x2c
lea eax, [ebp - 0x878]
push eax
mov eax, dword [ebp - 0xc94]
call fcn.0046181d
mov ebx, dword [ebp - 0xc94]
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0xc9c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x461549
push dword [ebp - 0xc9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
call fcn.0046173f
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
mov ecx, 0x418
cdq
idiv ecx
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
leave
ret