Function at 0x10002b90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x114
mov ebx, dword [ebp + 0x10]
test byte [0x1000401c], 8
jne 0x10002bd0
lea ecx, [ebp - 0xf8]
mov edx, ebx
mov eax, str._XcvPort
call sym._open_monitor_by_name
mov edi, eax
test eax, eax
jne 0x10002c20
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov esi, eax
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__s___p___s__n
mov dword [esp + 8], str.localui_ConfigurePortUI
mov dword [esp + 4], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002ba8
mov dword [esp + 8], 3
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 4], 0x10006122
mov dword [esp], ebx
call esi
test eax, eax
jne 0x10002cc0
mov eax, dword [ebp - 0xf8]
mov dword [esp + 0xc], sym._dlgproc_lptconfig_16
mov dword [esp + 4], 0xc8
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [0x10004018]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
mov edi, eax
test byte [0x1000401c], 8
jne 0x10003038
test edi, edi
jne 0x10002ca1
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x4c7
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sym._ClosePrinter_4
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 8], 3
mov dword [esp + 4], 0x1000612a
mov dword [esp], ebx
call esi
test eax, eax
je 0x10002e50
mov dword [esp + 4], str.FILE:
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x10002db0
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x10002db0
cmp ax, 0x7c
je 0x10002db0
mov dword [esp + 8], 5
mov esi, dword [sym.imp.ucrtbase.dll_wcsncmp]
mov dword [esp + 4], str.CUPS:
mov dword [esp], ebx
call esi
test eax, eax
je 0x10002db0
mov dword [esp + 8], 4
mov dword [esp + 4], str.LPR:
mov dword [esp], ebx
call esi
test eax, eax
je 0x10002db0
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 esi, eax
test byte [0x1000401c], 8
jne 0x10003085
cmp esi, 0xffffffff
je 0x100030bd
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esi, [esi]
nop
xor eax, eax
xor edx, edx
lea esi, [ebp - 0xec]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov word [ebp - 0xec], ax
mov eax, dword [0x10004018]
lea ebx, [ebp - 0xac]
mov word [ebp - 0xac], dx
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call edi
mov eax, dword [0x10004018]
sub esp, 0x10
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x12f
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x4c7
sub esp, 0x10
xor edi, edi
jmp 0x10002ca1
mov eax, dword [ebp - 0xf8]
cmp word [ebx], 0
mov dword [ebp - 0xfc], eax
je 0x1000307c
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10002e70
sub eax, ebx
mov edx, eax
sar edx, 1
mov dword [ebp - 0xec], 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 0x10002e42
mov esi, dword [ebp - 0xec]
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [esi + esi - 2]
mov dword [ebp - 0x100], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov ecx, dword [ebp - 0x100]
xor eax, eax
mov dword [ebp - 0xec], 0x32
mov dword [ebp - 0xf4], 0
mov word [ecx + esi*2 - 2], ax
cmp word [ecx], 0
je 0x10003072
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002f00
sub eax, ecx
add eax, 2
lea esi, [ebp - 0xf4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x1c], esi
lea esi, [ebp - 0xec]
mov dword [esp + 0x18], esi
lea esi, [ebp - 0xac]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], esi
mov dword [esp + 4], str.GetDefaultCommConfig
mov dword [esp], eax
mov dword [ebp - 0x100], ecx
call sym._XcvDataW_32
mov ecx, dword [ebp - 0x100]
sub esp, 0x20
test eax, eax
mov edi, eax
je 0x10003008
mov eax, dword [ebp - 0xf4]
test eax, eax
jne 0x1000300a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x100], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CommConfigDialogW]
mov ecx, dword [ebp - 0x100]
sub esp, 0xc
test eax, eax
je 0x10003008
lea eax, [ebp - 0xf4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0xec]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0xf0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xec]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 4], str.SetDefaultCommConfig
mov dword [esp], eax
mov dword [ebp - 0xf4], 0
call sym._XcvDataW_32
mov ecx, dword [ebp - 0x100]
sub esp, 0x20
mov edi, eax
jmp 0x1000300a
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 0x10002ca1
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], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002c90
mov eax, 2
jmp 0x10002f0e
xor eax, eax
xor edx, edx
jmp 0x10002e7f
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p_for_OPEN_EXISTING_on__s_n
mov dword [esp + 8], str.get_type_from_name
mov dword [esp + 4], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002d96
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 esi, eax
test byte [0x1000401c], 8
jne 0x1000310e
cmp esi, 0xffffffff
je 0x10002db0
jmp 0x10002d9f
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], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10003100