Function at 0x65143420
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov ebx, dword [ebp + 0xc]
test byte [0x651530f8], 8
jne 0x651436c0
mov dword [esp + 4], str.AddPort
mov esi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x65143618
test byte [0x651530f8], 8
jne 0x65143520
lea eax, [ebp - 0x148]
mov dword [esp + 4], 0x65155600
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x651434b0
test byte [0x651530f8], 8
jne 0x651437a0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x10]
call sym._does_port_exist
test eax, eax
jne 0x65143a20
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x65155114
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x148]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x651530f8], 8
je 0x6514349c
jmp 0x651437a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x65143d10
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x65143b70
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x6514393e
mov edi, dword [ebp + 0x10]
cmp word [edi], 0
je 0x65143d81
mov ecx, edi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x65143570
mov ebx, dword [ebp + 0x10]
mov eax, 0x224c
lea ecx, [ebp - 0x142]
lea esi, [ebp - 0x22]
mov word [ebp - 0x144], ax
mov dword [ebp - 0x15c], ebx
jmp 0x651435d5
cmp ax, 9
je 0x65143af0
cmp ax, 0xa
jne 0x65143a82
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x65143910
cmp ecx, esi
ja 0x65143910
mov edx, eax
add dword [ebp - 0x15c], 2
mov eax, dword [ebp - 0x15c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x65143b08
jbe 0x651435a0
cmp ax, 0x22
je 0x65143ad8
cmp ax, 0x5c
jne 0x65143a75
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x651435c0
mov dword [esp + 4], str.ConfigureLPTPortCommandOK
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x651437d8
test byte [0x651530f8], 8
jne 0x65143ba0
lea eax, [ebp - 0x148]
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x6514349c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], str.TransmissionRetryTimeout
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x148]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514349c
test ebx, ebx
je 0x65143b90
mov eax, ebx
shr eax, 0x10
je 0x651438a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x651438b5
cmp word [ebx], 0
je 0x65143e60
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x65143700
mov ecx, 0x224c
mov dword [ebp + 0xc], ebx
mov esi, ebx
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x65143768
cmp ax, 9
je 0x65143a08
cmp ax, 0xa
jne 0x65143996
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x65143b20
lea edi, [ebp - 0x22]
cmp ecx, edi
ja 0x65143b20
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x65143978
jbe 0x65143730
cmp ax, 0x22
je 0x651439f0
cmp ax, 0x5c
jne 0x65143989
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x65143750
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.___lu_n
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov dword [esp + 4], str.DeletePort
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x65143ca8
test byte [0x651530f8], 8
jne 0x65143e88
lea eax, [ebp - 0x148]
mov dword [esp + 4], 0x65155600
mov esi, 2
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x6514349c
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [ebp - 0x148]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x651530f8], 8
je 0x6514349c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.___lu_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514349c
movzx eax, bx
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__p___s___p___ld___p___ld___p__n
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0x651530f8
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], 3
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
jmp 0x6514343c
mov byte [ecx], 0x22
test eax, eax
jle 0x65143d9a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.InputData___ld_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65143467
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143750
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x65143b60
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65143750
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x65143750
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143750
mov eax, dword [ebp - 0x148]
mov esi, 0xb7
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x651530f8], 8
je 0x6514349c
mov dword [esp + 0x10], 0xb7
mov dword [esp + 0xc], str.___u_n
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514349c
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x65143c98
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x651435c0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x651435c0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x651435c0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x651435c0
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x65143e79
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x651438b5
mov byte [ecx], al
add ecx, 1
jmp 0x65143750
movzx eax, word [ebp + 0x10]
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x6514393e
mov edx, 0x65155034
jmp 0x651438b5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x65143da8
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x65144168
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x65143db0
mov edi, dword [ebp + 0x10]
cmp word [edi], 0
je 0x65144421
mov ecx, edi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x65143bf0
mov ebx, dword [ebp + 0x10]
mov eax, 0x224c
lea ecx, [ebp - 0x142]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], ax
mov dword [ebp - 0x15c], ebx
jmp 0x65143c55
cmp ax, 9
je 0x65144070
cmp ax, 0xa
jne 0x65143fef
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, edi
ja 0x65144088
test edx, edx
jle 0x65144088
mov edx, eax
add dword [ebp - 0x15c], 2
mov eax, dword [ebp - 0x15c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x65144058
jbe 0x65143c20
cmp ax, 0x22
je 0x65144040
cmp ax, 0x5c
jne 0x65143fe2
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x65143c40
mov byte [ecx], al
add ecx, 1
jmp 0x651435c0
mov dword [esp + 4], str.GetDefaultCommConfig
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x65143d20
test byte [0x651530f8], 8
jne 0x65144275
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x1c]
mov dword [eax], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDefaultCommConfigW]
sub esp, 0xc
mov ebx, eax
test byte [0x651530f8], 8
jne 0x6514423b
test ebx, ebx
jne 0x65143d7a
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
jmp 0x6514349c
mov edx, 0x65155034
jmp 0x6514393e
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x651443bd
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 3
mov dword [eax], 4
jbe 0x65144198
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x2d
lea eax, [ebp - 0x148]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x65143de4
xor esi, esi
jmp 0x6514349c
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x6514392b
mov edx, 0x65155034
lea esi, [esi]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.InputData___ld_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514363d
lea eax, [ebp - 0x14c]
lea ebx, [ebp - 0x144]
mov dword [ebp - 0x14c], 0x1e
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x65143e3e
cmp word [ebp - 0x144], 0
jne 0x6514469b
mov eax, dword [ebp - 0x148]
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514349c
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x65143b3e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x65144442
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x651441a2
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x65143fae
mov edi, dword [ebp + 0x10]
cmp word [edi], 0
je 0x6514444c
mov ecx, edi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x65143ed8
mov ebx, dword [ebp + 0x10]
mov esi, 0x224c
lea ecx, [ebp - 0x142]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], si
mov dword [ebp - 0x15c], ebx
jmp 0x65143f3d
cmp ax, 9
je 0x651440d8
cmp ax, 0xa
jne 0x651440f6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x65143f80
test edx, edx
jle 0x65143f80
mov edx, eax
add dword [ebp - 0x15c], 2
mov eax, dword [ebp - 0x15c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x651440c0
jbe 0x65143f08
cmp ax, 0x22
je 0x65144150
cmp ax, 0x5c
jne 0x651440e9
mov esi, 0x5c5c
add ecx, 2
mov word [ecx - 2], si
jmp 0x65143f30
mov byte [ecx], 0x22
test eax, eax
jle 0x65144465
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.InputData___ld_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x651437fd
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x65144188
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65143c40
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x65143c40
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143c40
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143c40
mov byte [ecx], 0x22
test eax, eax
jle 0x6514443a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x65143db0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143f30
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143f30
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x651443b3
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65143f30
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65143f30
movzx eax, word [ebp + 0x10]
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x65143db0
mov byte [ecx], al
add ecx, 1
jmp 0x65143c40
mov esi, 0x7a
jmp 0x6514349c
movzx eax, word [ebp + 0x10]
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x65143fae
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20
lea ebx, [eax + 0xc]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x651441db
lea ebx, [eax + 2]
lea esi, [ebp - 0x144]
lea ecx, [ebp - 0x126]
mov eax, esi
movzx edx, word [ebx]
test dx, dx
je 0x651441ff
add eax, 2
add ebx, 2
mov word [eax - 2], dx
cmp eax, ecx
jne 0x651441e9
mov word [eax], 0
cmp word [ebp - 0x144], 0
jne 0x651446be
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetDefaultCommConfigW]
sub esp, 0xc
mov ebx, eax
test byte [0x651530f8], 8
je 0x65143cfa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.got__lu_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65143cfa
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x651445da
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x651445b5
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x6514437f
mov edi, dword [ebp + 0x10]
cmp word [edi], 0
je 0x651445e4
mov ecx, edi
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x651442c0
mov ebx, 0x224c
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x142]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], bx
jmp 0x6514431d
cmp ax, 9
je 0x65144480
cmp ax, 0xa
jne 0x6514449e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, edi
ja 0x65144351
test edx, edx
jle 0x65144351
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514446d
jbe 0x651442f0
cmp ax, 0x22
je 0x651444f0
cmp ax, 0x5c
jne 0x65144491
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65144310
mov byte [ecx], 0x22
test eax, eax
jle 0x651445fa
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.InputData___ld_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65143cc9
mov byte [ecx], al
add ecx, 1
jmp 0x65143f30
mov dword [esp + 4], 0x6515536c
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x65144501
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x17
mov dword [eax], 0x18
jbe 0x65144198
mov edi, dword [ebp + 0x18]
mov eax, dword [str.localui.dll]
xor esi, esi
mov dword [edi], eax
mov eax, dword [0x65155384]
mov dword [edi + 4], eax
mov eax, dword [0x65155388]
mov dword [edi + 8], eax
mov eax, dword [0x6515538c]
mov dword [edi + 0xc], eax
mov eax, dword [0x65155390]
mov dword [edi + 0x10], eax
mov eax, dword [0x65155394]
mov dword [edi + 0x14], eax
jmp 0x6514349c
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x651440a3
mov edx, 0x65155034
jmp 0x65143fae
mov edi, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], di
lea eax, [ecx + 1]
jmp 0x65143f9b
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65144310
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65144310
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x651445d0
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65144310
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65144310
mov dword [esp + 4], str.PortIsValid
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x65144602
test byte [0x651530f8], 8
jne 0x6514465f
mov eax, dword [ebp + 0x10]
mov edx, 1
call sym._get_type_from_name
mov ebx, eax
test byte [0x651530f8], 8
je 0x65143cfa
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.detected_as__lu_n
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x65143d7a
test byte [0x651530f8], 8
je 0x65143cfe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.___lu_n
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65143cfe
movzx eax, word [ebp + 0x10]
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x6514437f
mov byte [ecx], al
add ecx, 1
jmp 0x65144310
mov edx, 0x65155034
jmp 0x6514437f
mov word [ebp - 0x144], 0x224c
lea ecx, [ebp - 0x142]
mov byte [ebp - 0x142], 0x22
lea eax, [ecx + 1]
jmp 0x6514436c
mov dword [esp + 4], str.SetDefaultCommConfig
mov dword [esp], ebx
call esi
push edx
push edx
test eax, eax
je 0x651441bd
mov esi, 0x57
test byte [0x651530f8], 1
je 0x6514349c
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.command_not_supported:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6514349c
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.InputData___ld_:__s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], str.localmon_XcvDataPort
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65144526
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcstoul]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jmp 0x65143e3e
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov word [ebp + eax*2 - 0x146], 0
jmp 0x65144212