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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e24b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4914f4]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], eax
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x460a9d
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x460abe
xor eax, eax
jmp 0x460ad2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460ac3
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x264]
call fcn.00403340
mov edx, dword [ebp - 0x264]
mov eax, dword [edx - 0xc]
cmp eax, 2
jge 0x460b09
lea eax, [edx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x460ed9
cmp eax, 3
je 0x460b30
lea ecx, [eax - 1]
test ecx, ecx
js 0x460b69
cmp ecx, eax
jg 0x460b69
cmp word [edx + ecx*2], 0x5c
je 0x460b30
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
push 1
push 0x480050
lea ecx, [ebp - 0x264]
call fcn.00403340
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
jne 0x460b73
lea eax, [esi - 0x10]
jmp 0x460ec9
push 0x80070057
call fcn.00401350
test byte [ebp - 0x260], 0x10
jne 0x460c7e
lea ecx, [ebp - 0x234]
push 0x2e
push ecx
call fcn.004466f5
add esp, 8
test eax, eax
je 0x460c7e
push eax
call fcn.004469a4
add esp, 4
lea edx, [ebp - 0x27c]
push edx
mov ecx, edi
mov dword [ebp - 0x270], eax
call fcn.0045ca70
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [ebp - 0x284]
mov dword [ebp - 0x28c], ecx
push edx
mov ecx, edi
call fcn.0045ca40
mov esi, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x270]
push ecx
push ebx
push eax
call fcn.0045c2d0
add esp, 0xc
lea edx, [ebp - 0x284]
push edx
mov ecx, edi
mov dword [ebp - 0x278], eax
call fcn.0045ca70
mov ebx, eax
test esi, esi
je 0x460c03
cmp esi, dword [ebx]
je 0x460c08
call fcn.00447ea0
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebx + 4]
jne 0x460c20
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x460c7e
mov ecx, dword [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00405850
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
lea edx, [ebp - 0x234]
push edx
call fcn.004469a4
add esp, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.004058c0
cmp dword [ebp - 0x240], 0
ja 0x460c6c
cmp dword [ebp + 0x18], 0
jne 0x460c7e
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.0040d980
mov esi, dword [ebp - 0x274]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x460eb9
lea ebx, [ebx]
cmp dword [ebp + 0x14], 0
je 0x460d53
mov edx, dword [ebp - 0x260]
and dl, 0x10
xor ebx, ebx
push 0x4754c0
lea eax, [ebp - 0x234]
cmp dl, 0x10
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
push 0x480038
lea ecx, [ebp - 0x234]
sbb esi, esi
push ecx
neg esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
neg eax
test ebx, ebx
je 0x460d53
test esi, esi
je 0x460d53
test eax, eax
je 0x460d53
mov edx, dword [ebp - 0x268]
push edx
lea ecx, [ebp - 0x264]
call fcn.00405850
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
lea eax, [ebp - 0x234]
push eax
call fcn.004469a4
add esp, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.004058c0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x264]
push edx
push eax
push edi
push ecx
call fcn.00460a40
add esp, 0x14
test byte [ebp - 0x260], 0x10
jne 0x460e9d
lea edx, [ebp - 0x234]
push 0x2e
push edx
call fcn.004466f5
add esp, 8
test eax, eax
je 0x460e9d
push eax
call fcn.004469a4
mov ebx, dword [edi + 0x10]
add esp, 4
mov dword [ebp - 0x270], eax
cmp dword [edi + 0xc], ebx
jbe 0x460d95
call fcn.00447ea0
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x460da2
call fcn.00447ea0
mov eax, dword [edi]
lea ecx, [ebp - 0x270]
push ecx
push ebx
push esi
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], esi
call fcn.0045c2d0
mov esi, dword [edi + 0x10]
add esp, 0xc
mov ebx, eax
cmp dword [edi + 0xc], esi
jbe 0x460dd0
call fcn.00447ea0
mov ecx, dword [ebp - 0x27c]
mov eax, dword [edi]
test ecx, ecx
je 0x460de0
cmp ecx, eax
je 0x460de5
call fcn.00447ea0
cmp ebx, esi
jne 0x460dfa
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x460e9d
mov edx, dword [ebp - 0x268]
test edx, edx
jne 0x460e08
xor eax, eax
jmp 0x460e1f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460e10
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x264]
call fcn.00403400
push 1
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.00403340
lea edx, [ebp - 0x234]
push edx
call fcn.004469a4
add esp, 4
test eax, eax
jne 0x460e55
xor ecx, ecx
jmp 0x460e6f
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x460e60
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00403340
cmp dword [ebp - 0x240], 0
ja 0x460e8b
cmp dword [ebp + 0x18], 0
jne 0x460e9d
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.0040d980
mov esi, dword [ebp - 0x274]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460ca0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x460ee5
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.0044665f
mov esp, ebp
pop ebp
ret