Function at 0x460980
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x57c57c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28c]
mov esi, dword [esp + 0x290]
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4609e2
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push 0x5a7d1c
push ecx
mov dword [esp + 0x290], 0
call fcn.00405480
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x460be8
jmp 0x460a30
mov ecx, 0x5925cc
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460a66
test dx, dx
je 0x460a62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460a66
add eax, 4
add ecx, 4
test dx, dx
jne 0x460a40
xor eax, eax
jmp 0x460a6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x460bd4
mov ecx, 0x59a8a0
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460aa6
test dx, dx
je 0x460aa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460aa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x460a80
xor eax, eax
jmp 0x460aab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x460bd4
test byte [esp + 0x24], 0x10
je 0x460bd4
cmp dword [esp + 0x294], 0
je 0x460bc4
push edi
lea ecx, [esp + 0x20]
call fcn.00402390
push 0x5958a8
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x290], 1
call fcn.00401ba0
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x290], 2
call fcn.00401ba0
add esp, 0xc
mov byte [esp + 0x284], 3
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.00539068
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460b70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
test eax, eax
jl 0x460c41
cmp eax, ecx
jge 0x460c41
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
push 1
push esi
push eax
call fcn.00460980
add esp, 0xc
jmp 0x460bd4
mov eax, dword [esi + 8]
lea edx, [esp + 0x50]
push edx
push eax
mov ecx, esi
call fcn.005390d4
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460a30
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x284], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460c1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00552101
add esp, 0x278
ret
jmp fcn.00530cad