Function at 0x10006ff0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x854
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x81c], 0x208
test byte [0x10040090], 8
jne 0x100072a0
mov ecx, dword [ebp + 0x14]
test ebx, ebx
sete dl
test ecx, ecx
sete al
or dl, al
jne 0x10007033
test esi, esi
jne 0x10007033
cmp dword [ebx], 0x58
je 0x10007048
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
cmp dword [ebx + 4], 0x300
jne 0x10007033
lea eax, [ebp - 0x81c]
lea esi, [ebp - 0x66c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sym.mscms.dll_GetColorDirectoryW
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x100072f0
mov eax, dword [ebp - 0x81c]
lea edx, [eax + 6]
xor eax, eax
cmp edx, 0x104
ja 0x100072f0
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebp + eax - 0x464], dx
add eax, 2
test dx, dx
jne 0x10007098
cmp word [ebp - 0x464], 0
lea edx, [ebp - 0x464]
je 0x100070c9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100070c0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str.icm]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100070d0
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x464]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x820], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x10007033
mov dword [esp + 4], 5
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov dword [ebp - 0x828], eax
test eax, eax
je 0x10007778
lea esi, [ebp - 0x230]
lea edx, [ebp - 0x818]
mov eax, esi
call sym._header_from_file
mov edi, eax
test eax, eax
jne 0x10007671
mov dword [ebp - 0x838], 0
mov eax, esi
mov dword [ebp - 0x824], 0
shr eax, 0x10
mov dword [ebp - 0x83c], eax
lea esi, [esi]
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
mov edi, eax
test eax, eax
je 0x10007420
lea edx, [ebp - 0x818]
mov eax, esi
call sym._header_from_file
mov edi, eax
test eax, eax
je 0x10007170
lea edx, [ebp - 0x818]
mov eax, ebx
call sym._match_profile
test eax, eax
je 0x10007170
mov eax, dword [ebp - 0x824]
add eax, 1
mov dword [ebp - 0x830], eax
shl eax, 2
mov dword [ebp - 0x834], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x100074cc
cmp word [ebp - 0x230], 0
je 0x10007741
mov edx, esi
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10007208
sub edx, esi
lea eax, [edx + 2]
mov dword [ebp - 0x828], eax
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x81c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x834]
mov edx, eax
mov eax, dword [ebp - 0x82c]
mov dword [eax + ecx - 4], edx
test edx, edx
je 0x1000795c
test byte [0x10040090], 8
jne 0x10007330
xor eax, eax
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10007260
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x828]
add dword [ebp - 0x838], ecx
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x828], eax
jmp 0x10007170
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.___p___p___p___p___p___n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], str.EnumColorProfilesW
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10007019
test byte [0x10040090], 4
je 0x10007033
mov dword [esp + 0xc], str.Cant_retrieve_color_directory_n
mov dword [esp + 8], str.EnumColorProfilesW
mov dword [esp + 4], 0x10040090
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10007033
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x824], edx
test eax, eax
je 0x10007721
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x824]
mov ecx, 0x100441b1
sub esp, 8
test eax, eax
jne 0x10007579
cmp word [ebp - 0x230], 0
je 0x1000775a
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebp + ecx*2 - 0x22e], 0
jne 0x10007380
mov eax, 0x224c
mov dword [ebp + 0xc], ebx
lea edi, [ebp - 0x796]
mov dword [ebp - 0x824], edx
mov edx, esi
mov word [ebp - 0x798], ax
jmp 0x100073eb
cmp ax, 9
je 0x10007660
cmp ax, 0xa
jne 0x100075df
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x10007536
lea ecx, [ebp - 0x676]
cmp edi, ecx
ja 0x10007536
mov ecx, eax
movzx eax, word [edx]
add edx, 2
cmp ax, 0xd
je 0x10007648
jbe 0x100073b0
cmp ax, 0x22
je 0x10007630
cmp ax, 0x5c
jne 0x100075d2
mov ebx, 0x5c5c
add edi, 2
mov word [edi - 2], bx
jmp 0x100073d0
mov eax, dword [ebp - 0x838]
mov esi, dword [ebp + 0x10]
add eax, 1
mov dword [ebp - 0x82c], eax
test esi, esi
je 0x100075c0
mov esi, dword [ebp + 0x14]
cmp dword [esi], eax
jb 0x100075c0
mov eax, dword [ebp - 0x824]
test eax, eax
je 0x100074a2
mov esi, dword [ebp - 0x828]
mov edx, dword [ebp + 0x10]
mov ebx, esi
lea esi, [esi + eax*4]
lea esi, [esi]
mov ecx, dword [ebx]
xor eax, eax
lea esi, [esi]
movzx edi, word [ecx + eax]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x10007468
cmp word [ecx], 0
je 0x10007717
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10007488
sub eax, ecx
add eax, 2
add ebx, 4
add edx, eax
cmp esi, ebx
jne 0x10007460
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, 1
mov word [eax], bx
mov ecx, dword [ebp - 0x82c]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100074cc
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x824]
mov dword [eax], ecx
mov edx, dword [ebp - 0x824]
test edx, edx
je 0x10007778
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x824], edi
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov esi, eax
lea eax, [eax + ecx*4]
mov edi, esi
mov esi, eax
nop
lea esi, [esi]
mov edx, dword [edi]
add edi, 4
mov dword [esp], edx
call ebx
cmp esi, edi
jne 0x10007500
mov edi, dword [ebp - 0x824]
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x10007035
mov edx, dword [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov byte [edi], 0x22
test eax, eax
jle 0x10007770
mov ecx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x798]
mov dword [esp], eax
mov dword [ebp - 0x824], edx
call sym.___wine_dbg_strdup
mov edx, dword [ebp - 0x824]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.matching_profile:__s_n
mov dword [esp + 8], str.EnumColorProfilesW
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
mov dword [ebp - 0x824], edx
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x828], eax
jmp 0x10007258
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
jmp 0x100074af
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x10007750
mov ebx, eax
mov byte [edi], 0x5c
add edi, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [edi - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [edi - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdef]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [edi - 1], al
mov byte [edi - 2], bl
jmp 0x100073d0
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x100073d0
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x100073d0
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x100073d0
lea edx, [ebp - 0x818]
mov eax, ebx
call sym._match_profile
test eax, eax
je 0x1000714e
cmp word [ebp - 0x230], 0
mov eax, esi
je 0x100076a1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10007698
sub eax, esi
add eax, 2
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x81c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x824], eax
mov dword [ecx], eax
test eax, eax
je 0x10007778
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x83c], eax
test byte [0x10040090], 8
jne 0x10007783
mov ecx, dword [ebp - 0x824]
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x100076f8
mov dword [ebp - 0x824], 1
jmp 0x10007170
mov eax, 2
jmp 0x10007496
movzx eax, si
mov dword [esp], 0x100441bb
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, dword [ebp - 0x824]
mov ecx, eax
jmp 0x10007579
mov dword [ebp - 0x828], 2
jmp 0x1000721c
mov byte [edi], al
add edi, 1
jmp 0x100073d0
mov word [ebp - 0x798], 0x224c
lea edi, [ebp - 0x796]
mov byte [ebp - 0x796], 0x22
lea eax, [edi + 1]
jmp 0x1000755a
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x10007514
test eax, eax
je 0x10007918
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x10007937
cmp word [ebp - 0x230], 0
je 0x1000793e
mov edi, eax
lea eax, [eax + 1]
cmp word [ebp + edi*2 - 0x22e], 0
jne 0x100077b4
mov dword [ebp + 0xc], ebx
lea ecx, [ebp - 0x796]
mov edx, esi
mov word [ebp - 0x798], 0x224c
jmp 0x1000780d
cmp ax, 9
je 0x100078a6
cmp ax, 0xa
jne 0x10007848
mov word [ecx], 0x6e5c
add ecx, 2
lea eax, [edi - 1]
test edi, edi
jle 0x100078b3
lea ebx, [ebp - 0x676]
cmp ecx, ebx
ja 0x100078b3
mov edi, eax
movzx eax, word [edx]
add edx, 2
cmp ax, 0xd
je 0x10007831
jbe 0x100077da
cmp ax, 0x22
je 0x10007899
cmp ax, 0x5c
jne 0x1000783b
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x100077f2
mov word [ecx], 0x725c
add ecx, 2
jmp 0x100077f2
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x1000792d
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdef]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x100077f2
mov word [ecx], 0x225c
add ecx, 2
jmp 0x100077f2
mov word [ecx], 0x745c
add ecx, 2
jmp 0x100077f2
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x10007954
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x798]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.matching_profile:__s_n
mov dword [esp + 8], str.EnumColorProfilesW
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x838], eax
jmp 0x100076e9
movzx eax, si
mov dword [esp], 0x100441bb
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
jmp 0x100078df
mov byte [ecx], al
add ecx, 1
jmp 0x100077f2
mov eax, 0x100441b1
jmp 0x100078df
mov word [ebp - 0x798], 0x224c
lea ecx, [ebp - 0x796]
mov byte [ebp - 0x796], 0x22
lea eax, [ecx + 1]
jmp 0x100078ce
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x828], eax
jmp 0x100074cc