Function at 0x1006cb30
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026fb7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x2f8
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x300], esi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x304], edi
mov dword [ebp - 0x2fc], 0
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
cmp dword [edx + 0x10], 0
je 0x1006d113
cmp dword [edi + 0x10], 0
je 0x1006d113
push edx
lea ecx, [ebp - 0x9c]
call fcn.100062d0
mov byte [ebp - 4], 2
mov edx, 0x10
lea ecx, [ebp - 0x9c]
call fcn.10101470
mov edx, 0x40000000
lea ecx, [ebp - 0x9c]
call fcn.10101470
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.1025b3f7
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x20]
lea eax, [edx + 1]
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
ja 0x1006cc87
push ecx
lea ecx, [ebp - 0x30]
call fcn.100709e0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
dec ecx
mov eax, dword [ebp - 0x24]
and eax, ecx
mov dword [ebp - 0x24], eax
add eax, edx
and ecx, eax
lea esi, [ecx*4]
mov ecx, dword [ebp - 0x2c]
cmp dword [esi + ecx], 0
jne 0x1006ccb9
push 0x18
call fcn.1025b3f7
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + eax], ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [esi + ecx]
call fcn.100062d0
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x54]
call fcn.10004710
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.10004710
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.10004710
mov byte [ebp - 4], 8
cmp dword [ebp - 0x20], 0
je 0x1006cfd9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1006cd05
mov eax, dword [eax]
mov ecx, dword [eax + 8]
dec ecx
and ecx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
cmp ecx, eax
je 0x1006cd33
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1006cd27
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x54]
call fcn.10004d70
mov ecx, dword [ebp - 0x28]
dec ecx
and ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + ecx*4]
call fcn.10004610
sub dword [ebp - 0x20], 1
jne 0x1006cd54
mov dword [ebp - 0x24], 0
jmp 0x1006cd57
inc dword [ebp - 0x24]
push 0x250
push 0
lea eax, [ebp - 0x2f0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
cmovae eax, dword [ebp - 0x54]
push dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x84]
call fcn.10004d70
push 1
push 0x102b4b40
lea ecx, [ebp - 0x84]
call fcn.10008d40
mov dword [ebp - 0x2f4], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 8
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x2f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
mov dword [ebp - 0x2f4], ecx
cmp ecx, 0xffffffff
je 0x1006ccee
mov eax, 1
nop dword [eax]
test eax, eax
je 0x1006cf91
mov eax, dword [ebp - 0x2f0]
test al, 0x10
je 0x1006cee3
mov cx, word [ebp - 0x2c4]
test cx, cx
je 0x1006cf79
cmp cx, 0x2e
je 0x1006cf79
test eax, 0x400
jne 0x1006cf79
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
cmovae eax, dword [ebp - 0x54]
push dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004d70
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ce40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10008d40
push 1
push 0x102b3410
lea ecx, [ebp - 0x6c]
call fcn.10008d40
mov edx, dword [ebp - 0x20]
lea eax, [edx + 1]
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
ja 0x1006ce8a
push ecx
lea ecx, [ebp - 0x30]
call fcn.100709e0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
dec ecx
mov eax, dword [ebp - 0x24]
and eax, ecx
mov dword [ebp - 0x24], eax
add eax, edx
and eax, ecx
lea esi, [eax*4]
mov ecx, dword [ebp - 0x2c]
cmp dword [esi + ecx], 0
jne 0x1006cebc
push 0x18
call fcn.1025b3f7
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + eax], ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [esi + ecx]
call fcn.100062d0
inc dword [ebp - 0x20]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1006cde0
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x1006ceed
mov ecx, dword [edi]
push dword [edi + 0x10]
lea edx, [ebp - 0x2c4]
call fcn.100fe5a0
add esp, 4
test eax, eax
jne 0x1006cf79
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
cmovae eax, dword [ebp - 0x54]
push dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004d70
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006cf22
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10008d40
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
push ecx
cmp dword [ebp - 0x34], eax
je 0x1006cf70
mov ecx, eax
call fcn.100062d0
add dword [ebp - 0x38], 0x18
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1006cde0
push eax
lea ecx, [ebp - 0x3c]
call fcn.10048400
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1006cde0
mov dword [ebp - 4], 8
jmp 0x1006cfbf
mov ecx, dword [ebp - 0x2f4]
test ecx, ecx
je 0x1006ccf2
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1006ccf2
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x2f8]
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2fc], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.10004610
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.10004610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.10004610
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1006d070
mov ecx, dword [ebp - 0x24]
dec eax
add ecx, eax
mov edx, dword [ebp - 0x28]
dec edx
and edx, ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx*4]
call fcn.10004610
mov eax, dword [ebp - 0x20]
xor edx, edx
add eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
cmove ecx, edx
mov dword [ebp - 0x24], ecx
test eax, eax
jne 0x1006d044
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test esi, esi
je 0x1006d09d
nop word [eax + eax]
dec esi
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x1006d096
push 0x18
push eax
call fcn.1025b427
add esp, 8
mov ecx, dword [ebp - 0x2c]
test esi, esi
jne 0x1006d080
mov esi, dword [ebp - 0x28]
test ecx, ecx
je 0x1006d0ce
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x1006d0c4
add esi, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006d0c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0xf
push 8
push dword [ebp - 0x30]
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.10004610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.1001b700
mov eax, edi
jmp 0x1006d151
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 8], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2fc], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.1001b700
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret