Function at 0x492d90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2710
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x160], edi
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x155], bl
test bl, bl
jne 0x493141
mov eax, dword [eax]
cmp eax, dword [edi + 4]
jae 0x493141
lea ecx, [eax + eax*2]
mov eax, dword [edi]
mov esi, dword [eax + ecx*4 + 4]
lea ecx, [eax + ecx*4]
shl esi, 6
add esi, dword [edi + 0x2c]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x16c], esi
cmp byte [esi + 0x18], bl
jne 0x492f93
mov eax, dword [ecx]
mov dword [ebp - 4], 0
cmp byte [edi + 0x20], bl
je 0x492ef6
add eax, 0xfffffffe
cmp eax, 6
ja case.0x492f07.2
jmp dword [eax*4 + 0x493164]
push esi
call fcn.00493600
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
cmp byte [esi + 0x19], 0
lea eax, [esi + 0x19]
mov bl, 1
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x155], bl
jne case.0x492f07.2
cmp dword [esi + 0x1c], 0xffffffff
lea eax, [esi + 0x1c]
mov dword [ebp - 0x15c], eax
jne case.0x492f07.2
cmp dword [esi + 0x14], 0x10
jb 0x492e8f
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
cmp ecx, 0xffffffff
mov dword [eax], ecx
sete al
mov ecx, dword [ebp - 0x168]
mov byte [ecx], al
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x492de0
mov bl, 1
mov byte [ebp - 0x155], bl
push esi
call fcn.004931b0
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
mov bl, 1
mov byte [ebp - 0x155], bl
cmp eax, 8
ja case.0x492f07.2
jmp dword [eax*4 + 0x493180]
cmp dword [esi + 0x14], 0x10
jb 0x492f16
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
mov edi, dword [ecx + 8]
test edi, edi
je 0x492f86
cmp dword [esi + 0x14], 0x10
jb 0x492f40
mov esi, dword [esi]
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x15c], eax
cmp eax, 0xffffffff
je 0x492f86
mov esi, 1
nop
cmp esi, edi
jae 0x492f7f
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x15c]
je 0x492f7f
inc esi
jmp 0x492f60
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x492de0
cmp byte [esi + 0x19], 0
lea eax, [esi + 0x19]
mov dword [ebp - 0x15c], eax
jne case.0x492f07.2
cmp dword [esi + 0x1c], 0xffffffff
lea eax, [esi + 0x1c]
mov dword [ebp - 0x168], eax
jne case.0x492f07.2
cmp dword [esi + 0x14], 0x10
jb 0x492fc6
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x168]
cmp ecx, 0xffffffff
mov dword [eax], ecx
sete al
mov ecx, dword [ebp - 0x15c]
mov byte [ecx], al
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x492de0
push 1
lea eax, [esi + 0x20]
push eax
push esi
call fcn.004934b0
add esp, 0xc
test al, al
je case.0x492f07.2
push dword [esi + 0x2c]
push dword [esi + 0x28]
mov ecx, dword [ebp - 0x15c]
mov eax, dword [edi + 0x10]
mov ecx, dword [ecx + 8]
lea eax, [eax + ecx*8]
push eax
call fcn.00492ce0
mov eax, dword [ebp - 0x164]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
push 0
lea eax, [esi + 0x30]
push eax
push esi
call fcn.004934b0
add esp, 0xc
test al, al
je case.0x492f07.2
push dword [esi + 0x3c]
push dword [esi + 0x38]
jmp 0x493025
cmp byte [esi + 0x19], 0
jne 0x4930ae
cmp dword [esi + 0x1c], 0xffffffff
jne 0x4930ae
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x493086
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x15c]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
sete al
mov byte [esi + 0x19], al
mov edx, dword [esi + 0x1c]
cmp edx, 0xffffffff
je case.0x492f07.2
mov eax, dword [edi + 0x24]
test eax, eax
je case.0x492f07.2
push dword [edi + 0x28]
push eax
mov eax, dword [ecx + 8]
shl eax, 4
add eax, dword [edi + 0x18]
push eax
push edx
call fcn.00492be0
mov eax, dword [ebp - 0x164]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
mov ecx, esi
call fcn.00492600
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x492de0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 4