Function at 0x460af0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba183
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ebx
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x460b49
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x158], eax
mov eax, dword [esi]
push 0x5c
push eax
mov dword [ebp - 4], ebx
call fcn.0059aa24
add esp, 8
cmp eax, ebx
jne 0x460b74
or eax, 0xffffffff
jmp 0x460b76
sub eax, dword [esi]
inc eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, esi
call fcn.004024f0
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call fcn.00402af0
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x460bbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x460bd6
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x154], eax
mov esi, dword [esi]
lea ecx, [ebp - 0x150]
push ecx
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x460d1d
jmp 0x460c10
lea eax, [ebp - 0x124]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460c20
sub eax, edx
push eax
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x154]
call fcn.004026b0
mov eax, dword [ebp - 0x154]
push 0x5cd318
push eax
call fcn.0059a822
add esp, 8
test eax, eax
je 0x460d00
mov ecx, dword [ebp - 0x154]
push 0x5cd314
push ecx
call fcn.0059a822
add esp, 8
test eax, eax
je 0x460d00
test byte [ebp - 0x150], 0x10
je 0x460d00
cmp dword [ebp + 0xc], 0
je 0x460d8a
lea ecx, [ebp - 0x124]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x460c96
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x154]
call fcn.004026b0
mov dword [ebp - 4], 2
test bl, 1
je 0x460ce3
mov eax, dword [ebp - 0x15c]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [ebp - 0x160], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x460ce3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x154]
call fcn.004027d0
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp - 0x164]
call fcn.004a81b5
lea edx, [ebp - 0x150]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460c10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x158]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460d6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.004029d0
add esp, 0xc
mov ecx, dword [eax]
or ebx, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x160], ebx
test ecx, ecx
jne 0x460c91
xor eax, eax
jmp 0x460c9f