Function at 0x10004ab0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x428
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x420], 0x208
test byte [0x10040090], 8
jne 0x10004bd0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10004bc0
test ebx, ebx
je 0x10004bc0
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x41c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sym.mscms.dll_GetColorDirectoryW
sub esp, 0xc
test eax, eax
je 0x10004bc0
lea edx, [ebp - 0x214]
mov eax, ebx
call sym._basename
cmp word [ebp - 0x41c], 0
mov edx, esi
je 0x10004b39
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10004b30
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + 0x10044408]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004b40
cmp word [ebp - 0x41c], 0
mov edx, esi
je 0x10004b69
nop
add edx, 2
cmp word [edx], 0
jne 0x10004b60
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [ebp + eax - 0x214]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004b70
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscmp]
mov edx, eax
mov eax, 1
test edx, edx
je 0x10004bc2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 1
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
test ebx, ebx
je 0x10004de0
mov eax, ebx
shr eax, 0x10
je 0x10004cb0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x100441b1
sub esp, 8
test eax, eax
jne 0x10004cc5
cmp word [ebx], 0
je 0x10004dea
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x10004c10
mov ecx, 0x224c
mov dword [ebp + 0xc], ebx
mov esi, ebx
mov word [ebp - 0x214], cx
lea ecx, [ebp - 0x212]
jmp 0x10004c7b
cmp ax, 9
je 0x10004cf8
cmp ax, 0xa
jne 0x10004d2e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0xf2]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x10004d98
test edx, edx
jle 0x10004d98
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x10004d10
jbe 0x10004c40
cmp ax, 0x22
je 0x10004d80
cmp ax, 0x5c
jne 0x10004d21
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004c60
movzx eax, bx
mov dword [esp], 0x100441bb
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.___s___n
mov dword [esp + 8], str.InstallColorProfileW
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10004ad6
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004c60
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004c60
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10004dd0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10004c60
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10004c60
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x10004e03
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x10004cc5
mov byte [ecx], al
add ecx, 1
jmp 0x10004c60
mov edx, 0x100441aa
jmp 0x10004cc5
mov eax, 0x224c
mov byte [ebp - 0x212], 0x22
lea ecx, [ebp - 0x212]
mov word [ebp - 0x214], ax
lea eax, [ecx + 1]
jmp 0x10004db2