Function at 0x10006630
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x6d63
push esi
push ebx
sub esp, 0x5b8
mov word [ebp - 0x55b], di
mov esi, dword [ebp + 8]
mov dword [ebp - 0x55f], 0x692e2a5c
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x559], 0
mov dword [ebp - 0x564], 0x104
test byte [0x10040090], 8
jne 0x10006718
mov ecx, dword [ebp + 0x14]
test ebx, ebx
sete dl
test ecx, ecx
sete al
or dl, al
jne 0x10006690
test esi, esi
jne 0x10006690
cmp dword [ebx], 0x58
je 0x100066a0
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
cmp dword [ebx + 4], 0x300
jne 0x10006690
lea eax, [ebp - 0x564]
lea esi, [ebp - 0x480]
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sym.mscms.dll_GetColorDirectoryA
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x100066e2
mov eax, dword [ebp - 0x564]
add eax, 7
cmp eax, 0x104
jbe 0x10006760
test byte [0x10040090], 4
je 0x10006690
mov dword [esp + 0xc], str.cant_retrieve_color_directory_n
mov dword [esp + 8], str.EnumColorProfilesA
mov dword [esp + 4], 0x10040090
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10006690
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.EnumColorProfilesA
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10006676
mov eax, dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp + 4], esi
lea esi, [ebp - 0x37c]
mov dword [ebp - 0x568], edx
mov dword [esp], esi
mov dword [ebp - 0x594], eax
call eax
lea eax, [ebp - 0x55f]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcat]
lea eax, [ebp - 0x14c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x570], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x10006690
mov dword [esp + 4], 5
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0x568]
test eax, eax
mov dword [ebp - 0x578], eax
je 0x10006fa7
mov eax, dword [ebx + 0xc]
mov ecx, 0x16
lea edi, [ebp - 0x558]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x59c], eax
test eax, eax
je 0x10006e6b
mov eax, dword [ebp - 0x59c]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x574], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x568], edi
call edi
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
sub esp, 0x18
mov esi, eax
lea eax, [eax + eax]
mov dword [esp], eax
mov dword [ebp - 0x56c], ecx
call ecx
mov edx, dword [ebp - 0x574]
test eax, eax
mov ebx, eax
je 0x10006f9d
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x59c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov dword [ebp - 0x54c], ebx
mov edx, dword [ebp - 0x574]
mov dword [ebp - 0x59c], ebx
sub esp, 0x18
lea esi, [ebp - 0x120]
mov dword [ebp - 0x574], edx
mov eax, dword [ebp - 0x568]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov edi, dword [ebp - 0x56c]
sub esp, 0x18
mov ebx, eax
lea eax, [eax + eax]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x574]
test eax, eax
mov edi, eax
je 0x10006fb1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x568]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
lea edx, [ebp - 0x500]
mov eax, edi
sub esp, 0x18
call sym._header_from_file
mov dword [ebp - 0x580], eax
test eax, eax
je 0x1000696f
lea edx, [ebp - 0x500]
lea eax, [ebp - 0x558]
call sym._match_profile
test eax, eax
jne 0x10006eb2
mov dword [ebp - 0x598], 0
mov dword [ebp - 0x584], 0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov dword [ebp - 0x574], eax
call eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x5a0], eax
jmp 0x100069de
mov eax, dword [ebp - 0x58c]
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x594]
call eax
mov eax, dword [ebp - 0x590]
add dword [ebp - 0x598], ebx
mov dword [ebp - 0x584], eax
mov eax, dword [ebp - 0x57c]
mov dword [ebp - 0x578], eax
mov dword [esp], edi
mov eax, dword [ebp - 0x574]
call eax
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x570]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileA]
sub esp, 8
test eax, eax
je 0x10006d45
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x568]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov ecx, dword [ebp - 0x56c]
sub esp, 0x18
mov ebx, eax
lea eax, [eax + eax]
mov dword [esp], eax
call ecx
mov edi, eax
test eax, eax
je 0x10006f72
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x568]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
lea edx, [ebp - 0x500]
mov eax, edi
sub esp, 0x18
call sym._header_from_file
mov dword [ebp - 0x580], eax
test eax, eax
je 0x100069d3
lea edx, [ebp - 0x500]
lea eax, [ebp - 0x558]
call sym._match_profile
test eax, eax
je 0x100069d3
mov eax, dword [ebp - 0x584]
add eax, 1
mov dword [ebp - 0x590], eax
shl eax, 2
mov dword [ebp - 0x588], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x578]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x57c], eax
test eax, eax
je 0x10006fe2
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x10006aef
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
mov eax, dword [ebp - 0x56c]
sbb edx, 3
sub edx, esi
lea ebx, [edx + 1]
mov dword [ebp - 0x564], ebx
mov dword [esp], ebx
call eax
mov ecx, dword [ebp - 0x57c]
mov edx, dword [ebp - 0x588]
mov dword [ebp - 0x58c], eax
mov dword [ecx + edx - 4], eax
test eax, eax
je 0x10006fc8
test byte [0x10040090], 8
je 0x100069a0
mov eax, dword [ebp - 0x5a0]
test eax, eax
je 0x10006d21
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, 0x100441b1
sub esp, 8
test eax, eax
jne 0x10006c70
cmp byte [ebp - 0x120], 0
je 0x10006e86
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp byte [esi + eax], 0
jne 0x10006ba0
mov byte [ebp - 0x278], 0x22
lea ecx, [ebp - 0x277]
mov dword [ebp - 0x584], edi
mov dword [ebp - 0x578], esi
jmp 0x10006c03
cmp al, 9
je 0x10006cc0
cmp al, 0xa
jne 0x10006cdb
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea edi, [ebp - 0x155]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x10006c3c
test edx, edx
jle 0x10006c3c
mov edx, eax
add dword [ebp - 0x578], 1
mov eax, dword [ebp - 0x578]
movzx eax, byte [eax - 1]
cmp al, 0xd
je 0x10006ca8
jle 0x10006bd0
cmp al, 0x22
je 0x10006d10
cmp al, 0x5c
jne 0x10006cd1
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10006bf0
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x584]
test eax, eax
jle 0x10006e98
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x278]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.matching_profile:__s_n
mov dword [esp + 8], str.EnumColorProfilesA
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov ebx, dword [ebp - 0x564]
jmp 0x100069a0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10006bf0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10006bf0
lea edi, [eax - 0x20]
mov ebx, edi
cmp bl, 0x5e
jbe 0x10006d3b
mov ebx, 0x785c
add ecx, 4
mov word [ecx - 4], bx
mov ebx, eax
and eax, 0xf
shr bl, 4
movzx eax, byte [eax + str.0123456789abcdef]
movzx edi, bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10006bf0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10006bf0
movzx eax, si
mov dword [esp], 0x100441bb
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, eax
jmp 0x10006c70
mov byte [ecx], al
add ecx, 1
jmp 0x10006bf0
mov edx, eax
mov eax, dword [ebp - 0x598]
mov ebx, dword [ebp + 0x10]
add eax, 1
mov dword [ebp - 0x56c], eax
test ebx, ebx
je 0x10006ea0
mov edi, dword [ebp + 0x14]
cmp dword [edi], eax
jb 0x10006ea0
mov eax, dword [ebp - 0x584]
test eax, eax
je 0x10006dbe
mov ecx, dword [ebp - 0x578]
mov ebx, dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [ecx + eax*4]
mov esi, ecx
mov dword [ebp - 0x568], eax
lea esi, [esi]
mov edi, dword [esi]
mov eax, dword [ebp + 0x10]
add esi, 4
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x594]
call eax
mov dword [esp], edi
call ebx
mov edi, dword [ebp + 0x10]
lea eax, [edi + eax + 1]
mov dword [ebp + 0x10], eax
cmp esi, dword [ebp - 0x568]
jne 0x10006d90
mov eax, dword [ebp + 0x10]
mov edx, 1
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x56c]
mov ecx, dword [ebp + 0x18]
mov dword [eax], edi
test ecx, ecx
je 0x10006ded
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp - 0x584]
mov dword [ebp + 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp - 0x584]
test eax, eax
je 0x10006e24
mov edi, dword [ebp - 0x578]
mov dword [ebp - 0x568], edx
mov esi, edi
lea ebx, [edi + eax*4]
mov edi, dword [ebp - 0x574]
nop
mov edx, dword [esi]
add esi, 4
mov dword [esp], edx
call edi
cmp ebx, esi
jne 0x10006e10
mov edx, dword [ebp - 0x568]
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x568], edx
mov edi, dword [ebp - 0x574]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x59c]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x570]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x568]
sub esp, 4
jmp 0x10006692
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x568], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x56c], eax
jmp 0x100068af
mov eax, 0x2222
lea ecx, [ebp - 0x277]
mov word [ebp - 0x278], ax
lea eax, [ecx + 1]
jmp 0x10006c5d
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
jmp 0x10006dc9
mov ecx, esi
mov edx, dword [ecx]
add ecx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x10006eb4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ecx + 2]
cmove ecx, edx
mov ebx, eax
add bl, al
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x564], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x56c]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x578]
mov dword [eax], ebx
test ebx, ebx
je 0x10006f84
test byte [0x10040090], 8
jne 0x10006f35
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x594]
mov dword [esp], ebx
call eax
mov dword [ebp - 0x584], 1
jmp 0x10006983
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], str.matching_profile:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.EnumColorProfilesA
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x598], eax
jmp 0x10006f17
mov dword [ebp + 0x18], 0
mov edx, dword [ebp - 0x580]
jmp 0x10006ded
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x580]
mov dword [ebp + 0x18], edi
mov dword [ebp - 0x574], eax
jmp 0x10006e24
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x59c], 0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp + 0x18], 0
mov dword [ebp - 0x574], eax
jmp 0x10006e24
mov eax, dword [ebp - 0x57c]
mov edx, dword [ebp - 0x580]
mov dword [ebp + 0x18], edi
mov dword [ebp - 0x578], eax
jmp 0x10006ded
mov dword [ebp + 0x18], edi
mov edx, dword [ebp - 0x580]
jmp 0x10006ded