Function at 0x65b02c20
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x128
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
test byte [0x65b0401c], 8
jne 0x65b02c70
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, str._XcvPort
call sym._open_monitor_by_name
mov edi, eax
test eax, eax
jne 0x65b02cc0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x10c], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x10c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__s___p___s__n
mov dword [esp + 8], str.localui_ConfigurePortUI
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65b02c48
mov dword [esp + 8], 3
mov edi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 4], 0x65b06122
mov dword [esp], ebx
call edi
test eax, eax
jne 0x65b02d60
mov eax, dword [ebp - 0x104]
mov dword [esp + 0xc], sym._dlgproc_lptconfig_16
mov dword [esp + 8], esi
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
mov dword [esp + 0x10], eax
mov eax, dword [0x65b04018]
mov dword [esp + 4], 0xc8
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
mov edi, eax
test byte [0x65b0401c], 8
jne 0x65b030e0
test edi, edi
jne 0x65b02d3e
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x4c7
mov eax, dword [ebp - 0x104]
mov dword [esp], eax
call sym._ClosePrinter_4
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x65b0612a
mov dword [esp], ebx
call edi
test eax, eax
je 0x65b02ef8
mov dword [esp + 4], str.FILE:
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x65b02e50
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x65b02e50
cmp ax, 0x7c
je 0x65b02e50
mov dword [esp + 8], 5
mov edi, dword [sym.imp.ucrtbase.dll_wcsncmp]
mov dword [esp + 4], str.CUPS:
mov dword [esp], ebx
call edi
test eax, eax
je 0x65b02e50
mov dword [esp + 8], 4
mov dword [esp + 4], str.LPR:
mov dword [esp], ebx
call edi
test eax, eax
je 0x65b02e50
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edx, eax
test byte [0x65b0401c], 8
jne 0x65b0312d
cmp edx, 0xffffffff
je 0x65b03177
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esi, [esi]
nop
xor eax, eax
lea edi, [ebp - 0xf8]
lea ebx, [ebp - 0xb8]
xor edx, edx
mov word [ebp - 0xf8], ax
mov eax, dword [0x65b04018]
mov word [ebp - 0xb8], dx
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x20
mov dword [ebp - 0x10c], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call edx
mov eax, dword [0x65b04018]
mov edx, dword [ebp - 0x10c]
sub esp, 0x10
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x12f
mov dword [esp], eax
call edx
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x4c7
sub esp, 0x10
xor edi, edi
jmp 0x65b02d3e
mov eax, dword [ebp - 0x104]
cmp word [ebx], 0
mov dword [ebp - 0x10c], eax
je 0x65b03124
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x65b02f10
sub eax, ebx
mov edx, eax
sar edx, 1
mov dword [ebp - 0xf8], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x65b02eeb
mov edi, dword [ebp - 0xf8]
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [edi + edi - 2]
mov dword [ebp - 0x110], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov ecx, dword [ebp - 0x110]
xor eax, eax
mov dword [ebp - 0xf8], 0x32
mov dword [ebp - 0x100], 0
mov word [ecx + edi*2 - 2], ax
cmp word [ecx], 0
je 0x65b0311a
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x65b02fa0
sub eax, ecx
add eax, 2
lea edx, [ebp - 0x100]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0xf8]
mov dword [esp + 0x18], edx
lea edx, [ebp - 0xb8]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.GetDefaultCommConfig
mov dword [esp], eax
mov dword [ebp - 0x110], ecx
call sym._XcvDataW_32
mov ecx, dword [ebp - 0x110]
sub esp, 0x20
test eax, eax
mov edi, eax
je 0x65b030b0
mov eax, dword [ebp - 0x100]
test eax, eax
jne 0x65b030b2
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x110], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CommConfigDialogW]
mov ecx, dword [ebp - 0x110]
sub esp, 0xc
test eax, eax
je 0x65b030b0
lea eax, [ebp - 0x100]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0xfc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], str.SetDefaultCommConfig
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xb8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x100], 0
mov dword [esp], eax
call sym._XcvDataW_32
mov ecx, dword [ebp - 0x110]
sub esp, 0x20
mov edi, eax
jmp 0x65b030b2
xor edi, edi
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x65b02d3e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.got__u_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.dlg_configure_lpt
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65b02d2d
mov eax, 2
jmp 0x65b02fae
xor eax, eax
xor edx, edx
jmp 0x65b02f1f
mov dword [ebp - 0x10c], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x10c]
mov dword [esp + 0xc], str._p_for_OPEN_EXISTING_on__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.get_type_from_name
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10c]
jmp 0x65b02e36
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edx, eax
test byte [0x65b0401c], 8
jne 0x65b031c8
cmp edx, 0xffffffff
je 0x65b02e50
jmp 0x65b02e3f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p_for_OPEN_ALWAYS_n
mov dword [esp + 8], str.get_type_from_name
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
mov dword [ebp - 0x10c], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10c]
jmp 0x65b031ba