Function at 0x10607e7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x1076530]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x288], eax
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1060839
test dword [eax + 0x1c], 0x20000000
je 0x1060839
push 0x100fea0
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push ebx
push edi
push 1
push 0x661
push 0x1010050
lea ecx, [ebp - 0x284]
call fcn.01055826
or dword [ebp - 0x25c], 0xffffffff
xor ebx, ebx
mov eax, 0x1010420
xor edi, edi
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2a0], ebx
mov eax, 0x66f
cmp esi, ebx
jne 0x10608c3
mov dword [ebp - 0x284], 0x80070057
mov word [ebp - 0x27e], ax
jmp 0x1060cdc
mov edx, esi
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x284], ebx
mov word [ebp - 0x280], ax
call fcn.0106470b
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x671
jl 0x10608b7
push 0x5c
pop edx
lea ecx, [ebp - 0x298]
mov word [ebp - 0x280], ax
call fcn.01063962
push ebx
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x298]
call fcn.0105f6ca
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x674
jl 0x10608b7
mov word [ebp - 0x280], ax
mov eax, dword [ebp - 0x29c]
test al, 0x10
jne 0x1060945
mov eax, 0x678
jmp 0x10608ad
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x1060982
push 1
push dword [ebp - 0x298]
push dword [ebp - 0x288]
call dword [ebp - 0x28c]
cmp eax, ebx
mov dword [ebp - 0x284], eax
jge 0x1060978
mov eax, 0x680
jmp 0x10608b7
mov eax, 0x681
jmp 0x1060ccf
lea eax, [ebp - 0x260]
push eax
call fcn.0101cc27
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x684
jl 0x10608b7
mov esi, dword [ebp - 0x260]
push esi
mov word [ebp - 0x280], ax
call fcn.010603af
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x689
jl 0x10608b7
push ebx
push dword [ebp - 0x298]
mov word [ebp - 0x280], ax
push esi
call fcn.01060674
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x68a
jl 0x10608b7
mov word [ebp - 0x280], ax
lea eax, [esi + 0xc]
cmp dword [esi + 4], eax
je 0x1060cb0
mov eax, edi
cmp edi, ebx
je 0x1060a13
push eax
mov dword [ebp - 0x258], ebx
call fcn.010601cb
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.010604e8
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x68d
jl 0x1060ca1
push esi
mov word [ebp - 0x280], ax
call fcn.010603af
mov edi, dword [ebp - 0x258]
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x693
jl 0x10608b7
mov word [ebp - 0x280], ax
test byte [edi + 0x10], 2
jne 0x1060bb6
mov edx, dword [edi]
push 0x1006770
lea ecx, [ebp - 0x298]
call fcn.01064722
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x697
jl 0x10608b7
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x25c], 0xffffffff
mov esi, eax
je 0x1060ac8
cmp dword [ebp - 0x25c], ebx
je 0x1060ac8
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x25c], esi
cmp esi, 0xffffffff
je 0x1060bb0
cmp esi, ebx
je 0x1060bb0
mov edx, dword [edi]
lea eax, [ebp - 0x228]
push eax
push 0x1001814
lea ecx, [ebp - 0x2ac]
call fcn.01064743
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6a3
jl 0x10608b7
mov edx, dword [ebp - 0x254]
mov word [ebp - 0x280], ax
mov eax, 0x410
and edx, eax
sub edx, eax
neg edx
sbb edx, edx
inc edx
test byte [ebp - 0x254], 0x10
jne 0x1060b51
push ebx
push dword [ebp - 0x2ac]
push dword [ebp - 0x288]
call dword [ebp - 0x28c]
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6a8
jmp 0x1060b7f
lea eax, [ebp - 0x228]
call fcn.0105f538
test eax, eax
jne 0x1060b8c
push edx
push dword [ebp - 0x2ac]
push dword [ebp - 0x260]
call fcn.01060674
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6ac
jl 0x10608b7
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1060adf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x25c], 0xffffffff
mov esi, dword [ebp - 0x260]
or dword [edi + 0x10], 1
push edi
call fcn.010601cb
xor edi, edi
mov dword [ebp - 0x258], edi
lea eax, [esi + 0xc]
cmp dword [esi + 4], eax
je 0x10609f5
mov eax, edi
cmp edi, ebx
je 0x1060be6
push eax
mov dword [ebp - 0x258], ebx
call fcn.010601cb
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.010604e8
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6c1
jl 0x1060ca1
cmp dword [ebp - 0x284], 1
mov word [ebp - 0x280], ax
jne 0x1060c3e
push esi
call fcn.0106045a
mov edi, dword [ebp - 0x258]
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6c7
jl 0x10608b7
mov word [ebp - 0x280], ax
jmp 0x1060bc8
mov edi, dword [ebp - 0x258]
test byte [edi + 0x10], 1
je 0x1060c8e
push esi
call fcn.010605a9
mov dword [ebp - 0x284], eax
cmp eax, ebx
mov eax, 0x6d5
jl 0x10608b7
mov word [ebp - 0x280], ax
mov eax, dword [edi]
push 1
push eax
push dword [ebp - 0x288]
call dword [ebp - 0x28c]
cmp eax, ebx
jge 0x1060bba
mov dword [ebp - 0x2a0], eax
jmp 0x1060bba
push edi
call fcn.010601cb
xor edi, edi
mov dword [ebp - 0x258], edi
jmp 0x10609f5
mov edi, dword [ebp - 0x258]
mov word [ebp - 0x27e], ax
jmp 0x1060cdc
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
mov dword [ebp - 0x284], eax
jge 0x1060cca
mov eax, 0x6df
jmp 0x10608b7
mov eax, 0x6e0
mov word [ebp - 0x280], ax
mov dword [ebp - 0x284], ebx
cmp dword [ebp - 0x25c], 0xffffffff
mov esi, dword [ebp - 0x284]
je 0x1060cff
cmp dword [ebp - 0x25c], ebx
je 0x1060cff
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, ebx
je 0x1060d09
push edi
call fcn.010601cb
cmp dword [ebp - 0x260], ebx
pop edi
pop ebx
je 0x1060d1e
push dword [ebp - 0x260]
call fcn.010607b3
lea ecx, [ebp - 0x2ac]
call fcn.010635b3
lea ecx, [ebp - 0x298]
call fcn.010635b3
lea ecx, [ebp - 0x284]
call fcn.01055a3c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01054fa7
leave
ret 0xc