Function at 0x6514a190
Capabilities:
Check if process is running under wine
Delete file
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1078
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.651417f8
sub esp, eax
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0x1050], edi
mov dword [ebp - 0x104c], eax
add eax, 0x1c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [edi + 4]
sub esp, 4
mov ebx, dword [edx + 0x34]
lea eax, [edx + 0x34]
cmp eax, ebx
jne 0x6514a1f2
jmp 0x6514af88
mov ebx, dword [ebx]
cmp ebx, eax
je 0x6514af88
cmp dword [ebx + 8], esi
jne 0x6514a1e8
mov ecx, dword [ebx + 0x10]
movzx eax, byte [0x65157028]
mov dword [ebp - 0x104c], ecx
and eax, 8
test ecx, ecx
je 0x6514a590
test al, al
jne 0x6514a4a0
mov esi, dword [ebp - 0x104c]
movzx eax, word [esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_isalpha]
test eax, eax
je 0x6514a237
cmp word [esi + 2], 0x3a
je 0x6514a25e
mov eax, dword [ebp - 0x104c]
mov dword [esp + 8], 5
mov dword [esp + 4], str.FILE:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
jne 0x6514a330
mov dword [ebp - 0x1058], str.FILE:
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
call sym._print_proc_load
mov edi, eax
test eax, eax
je 0x6514a6a0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x6514a6d8
lea eax, [ebp - 0x818]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1034]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov eax, dword [edi + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [edi + 8]
sub esp, 0x1c
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x6514a700
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1054], eax
test byte [0x65157028], 4
jne 0x6514a978
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x1054]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [esp], edi
call esi
xor edx, edx
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [ebp - 0x103c]
mov dword [esp + 4], str.SoftwareWinePrintingSpooler
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov ecx, dword [ebp - 0x104c]
sub esp, 0xc
mov dword [ebp - 0x1058], ecx
test eax, eax
jne 0x6514a268
lea eax, [ebp - 0x1034]
lea esi, [ebp - 0x1018]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1038]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1034], 0x800
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x6514abed
mov dword [ebp - 0x1058], esi
test byte [0x65157028], 8
je 0x6514abed
mov eax, esi
shr eax, 0x10
je 0x6514b64e
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x1054], str._invalid_
sub esp, 8
test eax, eax
jne 0x6514b44e
movzx edx, word [ebp - 0x1018]
test dx, dx
je 0x6514b69a
mov edi, eax
lea eax, [eax + 1]
cmp word [esi + edi*2 + 2], 0
jne 0x6514a408
mov eax, 0x224c
mov dword [ebp - 0x1054], ebx
mov ebx, esi
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x816]
jmp 0x6514a46f
cmp dx, 9
je 0x6514b53d
cmp dx, 0xa
jne 0x6514b55b
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea ecx, [edi - 1]
test edi, edi
jle 0x6514b416
lea edx, [ebp - 0x6f6]
cmp eax, edx
ja 0x6514b416
movzx edx, word [ebx]
mov edi, ecx
add ebx, 2
cmp dx, 0xd
je 0x6514b52c
jbe 0x6514a431
cmp dx, 0x22
je 0x6514b5ac
cmp dx, 0x5c
jne 0x6514b54e
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x6514a451
mov eax, dword [ebp - 0x104c]
shr eax, 0x10
je 0x6514ab5f
mov edi, dword [ebp - 0x104c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x1054], str._invalid_
sub esp, 8
test eax, eax
jne 0x6514a5b8
cmp word [edi], 0
je 0x6514b221
mov ecx, edi
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x6514a4f0
mov eax, 0x224c
mov dword [ebp - 0x1054], ebx
mov esi, dword [ebp - 0x104c]
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], ax
jmp 0x6514a55b
cmp ax, 9
je 0x6514aeb0
cmp ax, 0xa
jne 0x6514aece
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x6514afa0
lea edi, [ebp - 0x6f6]
cmp ecx, edi
ja 0x6514afa0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514ae98
jbe 0x6514a520
cmp ax, 0x22
je 0x6514af20
cmp ax, 0x5c
jne 0x6514aec1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x6514a540
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x104c], ecx
test al, al
je 0x6514a21a
mov dword [ebp - 0x1054], str._null_
test ecx, ecx
jne 0x6514a4a0
lea esi, [esi]
nop
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x6514b028
mov eax, esi
shr eax, 0x10
je 0x6514afdd
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514adb4
cmp word [esi], 0
je 0x6514b242
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6514a600
mov ecx, 0x224c
mov dword [ebp - 0x1058], ebx
mov word [ebp - 0x818], cx
lea ecx, [ebp - 0x816]
jmp 0x6514a66b
cmp ax, 9
je 0x6514ae68
cmp ax, 0xa
jne 0x6514adff
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x6514ad80
lea edi, [ebp - 0x6f6]
cmp ecx, edi
ja 0x6514ad80
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514ae80
jbe 0x6514a630
cmp ax, 0x22
je 0x6514ae50
cmp ax, 0x5c
jne 0x6514adf2
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514a650
test byte [0x65157028], 4
jne 0x6514aa7a
mov eax, str.winprint
call sym._print_proc_load
xor edx, edx
mov edi, eax
test eax, eax
jne 0x6514a283
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1050]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x6514a28e
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x6514a2de
jmp 0x6514a28e
mov edx, dword [ebp - 0x1034]
mov dword [esp], edx
mov dword [ebp - 0x105c], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x105c]
test eax, eax
mov dword [ebp - 0x1054], eax
je 0x6514a2de
lea eax, [ebp - 0x818]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1034]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1054]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [edi + 8]
sub esp, 0x1c
test eax, eax
je 0x6514b00d
mov eax, dword [ebp - 0x818]
xor ecx, ecx
test eax, eax
je 0x6514b00d
mov dword [ebp - 0x1060], ebx
mov ebx, dword [ebp - 0x1054]
mov dword [ebp - 0x105c], edi
mov edi, ecx
jmp 0x6514a7a5
inc edi
cmp edi, dword [ebp - 0x818]
jae 0x6514b007
mov dword [esp + 4], esi
mov eax, dword [ebx + edi*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x6514a798
mov ebx, dword [ebp - 0x1060]
mov dword [ebp - 0x1060], eax
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x1054]
mov dword [ebp - 0x1064], edi
mov edi, dword [ebp - 0x105c]
mov dword [ebp - 0x105c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ecx
mov dword [ebp - 0x1054], eax
call eax
mov ecx, dword [ebp - 0x1064]
cmp ecx, dword [ebp - 0x105c]
mov edx, dword [ebp - 0x1060]
jae 0x6514a2e9
mov eax, dword [ebp - 0x1058]
mov dword [esp + 8], str._s__Port
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp], eax
mov dword [ebp - 0x105c], edx
call sym._swprintf
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1034], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1028], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 8]
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1034]
mov dword [esp + 4], eax
lea eax, [ebp - 0x818]
mov dword [esp], eax
call dword [edi + 0xc]
mov edx, dword [ebp - 0x105c]
sub esp, 8
test eax, eax
mov esi, eax
je 0x6514af38
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 8]
mov dword [esp + 8], str._s__Job__d
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x818]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [edi + 0x10]
sub esp, 8
mov edx, eax
test eax, eax
jne 0x6514a900
test byte [0x65157028], 4
jne 0x6514b289
mov dword [ebp - 0x104c], edx
mov dword [esp], esi
call dword [edi + 0x14]
mov eax, dword [edi]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x1054]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, ebx
sub esp, 4
call sym._free_job
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 4]
add eax, 0x1c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x104c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x6514b39a
mov eax, ebx
shr eax, 0x10
je 0x6514b30d
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x104c], str._invalid_
sub esp, 8
test eax, eax
jne 0x6514ac3c
cmp word [ebx], 0
je 0x6514b3a9
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6514a9d0
mov eax, 0x224c
mov dword [ebp - 0x1050], edi
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], ax
mov dword [ebp - 0x104c], ebx
jmp 0x6514aa3b
cmp ax, 9
je 0x6514b100
cmp ax, 0xa
jne 0x6514b136
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x6f6]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x6514ac04
test edx, edx
jle 0x6514ac04
mov edx, eax
add dword [ebp - 0x104c], 2
mov eax, dword [ebp - 0x104c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x6514b0e9
jbe 0x6514aa00
cmp ax, 0x22
je 0x6514b190
cmp ax, 0x5c
jne 0x6514b129
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x6514aa20
mov eax, dword [ebp - 0x1050]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x6514b3eb
mov eax, esi
shr eax, 0x10
je 0x6514b032
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514b047
cmp word [esi], 0
je 0x6514b3f5
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6514aac8
mov eax, 0x224c
lea edi, [ebp - 0x816]
mov word [ebp - 0x818], ax
jmp 0x6514ab2b
cmp ax, 9
je 0x6514b278
cmp ax, 0xa
jne 0x6514b1bf
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x6514b355
lea ecx, [ebp - 0x6f6]
cmp edi, ecx
ja 0x6514b355
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514b263
jbe 0x6514aaf0
cmp ax, 0x22
je 0x6514b210
cmp ax, 0x5c
jne 0x6514b1b2
mov ecx, 0x5c5c
add edi, 2
mov word [edi - 2], cx
jmp 0x6514ab10
movzx eax, word [ebp - 0x104c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x1054], eax
jmp 0x6514a5b8
mov byte [eax], 0x22
mov ebx, dword [ebp - 0x1058]
test edx, edx
jle 0x6514b6ce
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x818]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x1054]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.overriding_port__s_____s_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov dword [ebp - 0x1058], esi
mov eax, dword [ebp - 0x103c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514a268
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x1050]
test eax, eax
jle 0x6514b3c2
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x104c], eax
test esi, esi
je 0x6514b390
mov eax, esi
shr eax, 0x10
je 0x6514b32b
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514ad45
cmp word [esi], 0
je 0x6514b3ca
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6514ac80
mov ecx, 0x224c
mov word [ebp - 0x818], cx
lea ecx, [ebp - 0x816]
jmp 0x6514ace3
cmp ax, 9
je 0x6514b118
cmp ax, 0xa
jne 0x6514b081
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x6514ad17
lea edx, [ebp - 0x6f6]
cmp ecx, edx
ja 0x6514ad17
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514b1a1
jbe 0x6514aca8
cmp ax, 0x22
je 0x6514b0d8
cmp ax, 0x5c
jne 0x6514b074
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514acd0
mov byte [ecx], 0x22
test eax, eax
jle 0x6514b3e3
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x104c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._s_datatype_not_supported_by__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 4], 0x65157028
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514a2f6
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x1058]
test eax, eax
jle 0x6514b25b
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x1054]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], str.need_to_schedule_job__ld_filename__s_to_port__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514a21a
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514afff
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x6515c470]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514a650
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514a650
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514a650
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514a650
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514a540
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514a540
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514aff7
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x6515c470]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514a540
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514a540
test byte [0x65157028], 4
jne 0x6514b2cb
mov eax, dword [edi]
mov dword [ebp - 0x104c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x1054]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [esp], edi
call esi
mov edx, dword [ebp - 0x104c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
add edx, 0x1c
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor edx, edx
sub esp, 4
jmp 0x6514a319
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x1054]
test eax, eax
jle 0x6514b23a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x1054], eax
jmp 0x6514a5b8
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x6514adb4
mov byte [ecx], al
inc ecx
jmp 0x6514a540
mov byte [ecx], al
inc ecx
jmp 0x6514a650
mov edi, dword [ebp - 0x105c]
mov eax, dword [ebp - 0x1054]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1054], eax
call eax
jmp 0x6514a2e9
mov edx, str._null_
jmp 0x6514adb4
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.failed_to_load__s_print_processor_n
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 4], 0x65157028
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514a6ad
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x6514b34d
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x6515c470]
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514acd0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514acd0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514aa20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514aa20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514acd0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514b345
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x6515c470]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x6515c470]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514aa20
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514aa20
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514acd0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x6514b388
mov ecx, eax
mov byte [edi], 0x5c
add edi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + 0x6515c470]
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 1], al
mov byte [edi - 2], cl
jmp 0x6514ab10
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x6514ab10
mov edx, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], dx
lea eax, [ecx + 1]
jmp 0x6514afc1
mov esi, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], si
lea eax, [ecx + 1]
jmp 0x6514ada1
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x6514ab10
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x6514ab10
mov dword [ebp - 0x104c], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.PrintDocumentOnPrintProcessor_failed__ld_n
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x65157028
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x104c]
jmp 0x6514a900
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenPrintProcessor_failed__ld_n
mov dword [esp + 8], str.fpScheduleJob
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x65157028
mov dword [esp], 2
mov dword [ebp - 0x104c], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x104c]
jmp 0x6514af45
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x104c], eax
jmp 0x6514ac3c
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x6514ad45
mov byte [ecx], al
inc ecx
jmp 0x6514aa20
mov byte [ecx], al
inc ecx
jmp 0x6514acd0
mov byte [edi], 0x22
test eax, eax
jle 0x6514b40e
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x6514b047
mov byte [edi], al
inc edi
jmp 0x6514ab10
mov edx, str._null_
jmp 0x6514ad45
mov dword [ebp - 0x104c], str._null_
jmp 0x6514ac3c
mov edx, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], dx
lea eax, [ecx + 1]
jmp 0x6514ac25
mov ebx, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], bx
lea eax, [ecx + 1]
jmp 0x6514ad32
mov edx, str._null_
jmp 0x6514b047
mov eax, 0x224c
mov byte [ebp - 0x816], 0x22
lea edi, [ebp - 0x816]
mov word [ebp - 0x818], ax
lea eax, [edi + 1]
jmp 0x6514b370
mov byte [eax], 0x22
mov ebx, dword [ebp - 0x1054]
test ecx, ecx
jle 0x6514b6b0
mov edi, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], di
lea eax, [ebp - 0x818]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x1054], eax
mov eax, dword [ebp - 0x104c]
shr eax, 0x10
je 0x6514b674
mov edi, dword [ebp - 0x104c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514abb5
cmp word [edi], 0
mov edx, edi
je 0x6514b6b8
mov edi, eax
lea eax, [eax + 1]
cmp word [edx + edi*2 + 2], 0
jne 0x6514b490
mov eax, 0x224c
mov dword [ebp - 0x1058], ebx
mov ecx, dword [ebp - 0x104c]
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x816]
jmp 0x6514b4f8
cmp dx, 9
je 0x6514b5bd
cmp dx, 0xa
jne 0x6514b5db
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea edx, [edi - 1]
test edi, edi
jle 0x6514ab81
lea edi, [ebp - 0x6f6]
cmp eax, edi
ja 0x6514ab81
mov edi, edx
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0xd
je 0x6514b63d
jbe 0x6514b4bd
cmp dx, 0x22
je 0x6514b62c
cmp dx, 0x5c
jne 0x6514b5ce
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x6514b4dd
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x6514a451
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x6514a451
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x6514b66c
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + 0x6515c470]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + 0x6515c470]
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x6514a451
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x6514a451
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x6514b4dd
lea ebx, [edx - 0x20]
cmp bx, 0x5e
jbe 0x6514b692
mov ebx, edx
mov byte [eax], 0x5c
add eax, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x6515c470]
mov byte [eax - 4], bl
mov ebx, edx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [eax - 3], bl
mov ebx, edx
and edx, 0xf
shr bx, 4
movzx edx, byte [edx + 0x6515c470]
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x6514b4dd
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x6514b4dd
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
jmp 0x6514b4dd
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x1054], eax
jmp 0x6514b44e
mov byte [eax], dl
inc eax
jmp 0x6514a451
movzx eax, word [ebp - 0x104c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x6514abb5
mov byte [eax], dl
inc eax
jmp 0x6514b4dd
mov word [ebp - 0x818], 0x224c
lea eax, [ebp - 0x816]
mov byte [ebp - 0x816], 0x22
lea edx, [eax + 1]
jmp 0x6514b437
mov word [ebp - 0x818], 0x224c
lea eax, [ebp - 0x816]
mov byte [ebp - 0x816], 0x22
lea edx, [eax + 1]
jmp 0x6514aba2