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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099296
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [section..data]
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 - 0x314], edx
mov eax, ecx
mov dword [ebp - 0x2e4], eax
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x304], esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x30c], esi
xor esi, esi
mov dword [ebp - 0x310], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x300], edx
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], si
mov dword [ebp - 4], esi
mov dword [ebp - 0x2ec], esi
cmp dword [eax + 0x1438], esi
je 0x1006b613
cmp dword [ebx + 0x24], esi
jne 0x1006b613
test edx, edx
je 0x1006afe6
cmp word [ecx + edx*2 - 2], 0x5c
je 0x1006afe6
mov eax, 0x5c
mov word [ecx + edx*2], ax
inc edx
mov dword [ebp - 0x300], edx
push dword [ebp - 0x304]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea eax, [ecx + edx*2]
xor edx, edx
mov dword [ebp - 0x2f4], eax
push ecx
mov word [eax], dx
call esi
test eax, eax
je 0x1006b1f9
push dword [ebp - 0x30c]
push dword [ebp - 0x2e8]
call esi
test eax, eax
je 0x1006b1f9
push str.C:Program_Files_
push dword [ebp - 0x2e8]
call esi
test eax, eax
je 0x1006b1f9
push str.C:Program_Files__x86__
push dword [ebp - 0x2e8]
call esi
test eax, eax
je 0x1006b1f9
mov edx, dword [ebp - 0x2f4]
mov ecx, 0x100c6860
sub edx, ecx
jmp 0x1006b060
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1006b060
push edi
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x318], eax
cmp eax, 0xffffffff
je 0x1006b1f9
lea esi, [edi + 0x2c]
mov dword [ebp - 0x2f0], esi
mov ecx, 0x100c6868
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006b0c6
test dx, dx
je 0x1006b0c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006b0c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006b0a0
xor eax, eax
jmp 0x1006b0cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006b1d8
mov ecx, 0x100c686c
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006b106
test dx, dx
je 0x1006b102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006b106
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006b0e0
xor eax, eax
jmp 0x1006b10b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006b1d8
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 0x2e4]
jne 0x1006b13c
cmp dword [eax + 0x1460], 0
jbe 0x1006b13c
push 0xffffffffffffffff
push dword [eax + 0x1490]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebp - 0x2e4]
cmp dword [eax + 0x1438], 0
je 0x1006b1ed
cmp dword [ebx + 0x24], 0
jne 0x1006b1ed
test byte [edi], 0x10
je 0x1006b21b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b161
sub ecx, edx
lea eax, [edi + 0x2c]
mov edx, esi
sar ecx, 1
mov esi, dword [ebp - 0x2f4]
sub esi, eax
lea ecx, [ecx]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x1006b180
push dword [ebp - 0x30c]
mov eax, dword [ebp - 0x300]
push dword [ebp - 0x304]
mov edx, dword [ebp - 0x314]
add eax, ecx
mov ecx, dword [ebp - 0x2e4]
push eax
push dword [ebp - 0x2e8]
mov eax, dword [ebp + 0x14]
push edi
inc eax
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x310]
push ebx
call fcn.1006af10
add esp, 0x24
add dword [ebp - 0x2ec], eax
lea esi, [edi + 0x2c]
push edi
push dword [ebp - 0x318]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x1006b095
push dword [ebp - 0x318]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x228], 8
jb 0x1006b210
push dword [ebp - 0x23c]
call fcn.1007b9e6
add esp, 4
mov eax, dword [ebp - 0x2ec]
jmp 0x1006b615
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x1006b227
cmp dword [edi + 0x20], eax
je 0x1006b1d8
mov edx, dword [ebp - 0x2e0]
add edi, 0x14
push eax
push dword [edx + 0x20]
lea eax, [edx + 0xc]
lea ecx, [edx + 4]
mov edx, esi
push edi
push eax
push ecx
mov ecx, dword [ebp - 0x314]
call fcn.1006ab10
add esp, 0x14
test eax, eax
je 0x1006b603
mov eax, dword [ebp - 0x2e4]
xor esi, esi
add eax, 0x151c
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x2e4]
push edi
lea eax, [edx + 4]
push eax
push dword [edx + 0x1c]
lea eax, [edx + 0x2c]
push dword [edx + 0x20]
lea ecx, [ecx + 0x143c]
push eax
lea edx, [ebp - 0x308]
call fcn.10068d80
add esp, 0x14
test eax, eax
je 0x1006b3c3
cmp dword [ebx + 0x20], 0xffffffff
mov eax, dword [ebp - 0x2e8]
movzx edx, word [eax]
jne 0x1006b2be
mov ecx, ebx
call fcn.1006a880
test eax, eax
je 0x1006b3c3
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2f0]
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1006b2d0
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x278], esi
call fcn.1006aa30
test eax, eax
jne 0x1006b2fc
or dword [ebp - 0x278], 1
push 0
push 0
push dword [ebx + 0xc]
xorps xmm0, xmm0
push dword [ebx + 8]
movlpd qword [ebp - 0x2fc], xmm0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2e4]
lea edx, [ebp - 0x2fc]
mov ecx, dword [ebx + 0x20]
push dword [eax + 0x14f8]
push dword [eax + 0x14f4]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x278]
lea eax, [ebx + 0x28]
push eax
call fcn.10065190
add esp, 0x18
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x24], eax
cmp dword [ebp - 0x2f8], esi
ja 0x1006b369
cmp dword [ebp - 0x2fc], esi
jbe 0x1006b3c3
test eax, eax
jne 0x1006b3c3
mov ecx, dword [ebp - 0x2e4]
lea edx, [ebp - 0x24]
lea ecx, [ecx + 0x143c]
call fcn.10068d20
mov ecx, dword [ebp - 0x2e4]
lea edx, [ebp - 0x308]
push edi
mov edi, dword [ebp - 0x2e0]
neg eax
sbb esi, esi
lea ecx, [ecx + 0x143c]
inc esi
lea eax, [edi + 4]
push eax
push dword [edi + 0x1c]
lea eax, [edi + 0x2c]
push dword [edi + 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call fcn.10068e10
add esp, 0x1c
inc dword [ebp - 0x2ec]
jmp 0x1006b3c9
mov edi, dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x2e4]
add eax, 0x151c
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x1006b1d5
push dword [ebp + 0x14]
lea edx, [ebx + 0x90]
push dword [ebp - 0x300]
lea ecx, [ebx + 0x94]
push dword [ebp - 0x2e8]
call fcn.1006ad10
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
mov eax, dword [ebp + 0x14]
movdqu xmm0, xmmword [ebp - 0x24]
mov dword [ebp - 0x27c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x274], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x250], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x248], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x244], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x240], eax
lea eax, [ecx + 0x2c]
push eax
lea ecx, [ebp - 0x23c]
movdqu xmmword [ebp - 0x270], xmm0
call fcn.100632c0
mov eax, dword [ebp - 0x22c]
lea ecx, [ebx + 0x94]
lea eax, [eax*2 + 0x3c]
add dword [ebx + 0x90], eax
lea eax, [ebp - 0x27c]
push eax
call fcn.1006f190
mov eax, dword [ebp - 0x2fc]
add dword [ebx + 8], eax
mov eax, dword [ebp - 0x2f8]
adc dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
ja 0x1006b4d1
cmp dword [ebx + 8], 0x1000000
jb 0x1006b5f2
mov ecx, ebx
call fcn.1006a9b0
test eax, eax
je 0x1006b5f2
xor eax, eax
mov dword [ebp - 0x2c8], 7
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
lea edx, [ebx + 0x80]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.10069fc0
push dword [ebx + 0x18]
lea ecx, [ebp - 0x2dc]
call fcn.100632c0
push dword [ebx + 0x1c]
lea eax, [ebp - 0x224]
push dword [ebx + 0x18]
push eax
call fcn.1007c23d
mov eax, dword [ebx + 0x1c]
add esp, 0xc
lea eax, [eax*2 - 2]
cmp eax, 0x200
jae 0x1006b60e
xor ecx, ecx
mov word [ebp + eax - 0x224], cx
lea eax, [ebp - 0x224]
push 0x5c
push eax
call fcn.1007b71d
mov edx, eax
add esp, 8
test edx, edx
je 0x1006b585
add edx, 2
mov eax, str.sendlist.abc
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x1006b575
mov esi, dword [ebp - 0x2e4]
lea edi, [esi + 0x154c]
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [esi + 0x1444]
call fcn.1006f2c0
lea ecx, [ebp - 0x224]
call fcn.10068fb0
lea edx, [ebp - 0x224]
lea ecx, [esi + 0x1444]
call fcn.10069b60
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x2dc]
inc dword [eax]
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 0
call fcn.10063290
mov edi, dword [ebp - 0x2e0]
mov esi, dword [ebp - 0x2f0]
jmp 0x1006b1d8
mov edi, dword [ebp - 0x2e0]
jmp 0x1006b1d8
call fcn.1007bb23
xor eax, eax
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.1007aa10
mov esp, ebp
pop ebp
ret