Function at 0x65b026f0
Capabilities:
Get number of processors
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, 0x108
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0xdc], eax
test byte [0x65b0401c], 8
je 0x65b0278d
xor esi, esi
test ebx, ebx
je 0x65b02729
mov esi, dword [ebx]
mov eax, edx
mov dword [ebp - 0xe4], edx
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0xe0], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov edi, dword [ebp - 0xe0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0xdc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.__s___p___s___p___ppPortName:__p__n
mov dword [esp + 8], str.localui_AddPortUI
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0xe4]
lea ecx, [ebp - 0xd0]
mov eax, str._XcvMonitor
xor edi, edi
call sym._open_monitor_by_name
mov esi, eax
test eax, eax
jne 0x65b02808
test byte [0x65b0401c], 8
jne 0x65b027c0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.___lu_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localui_AddPortUI
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xbc], edx
mov dword [esp + 8], eax
mov eax, dword [0x65b04018]
mov dword [esp + 0xc], sym._dlgproc_addport_16
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
mov edi, eax
test byte [0x65b0401c], 8
jne 0x65b029e8
test ebx, ebx
je 0x65b0286c
mov dword [ebx], 0
test edi, edi
je 0x65b029c0
mov edx, dword [ebp - 0xc0]
cmp word [edx], 0
je 0x65b02a70
mov eax, edx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x65b02890
sub eax, edx
add eax, 2
lea ecx, [ebp - 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0xcc]
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0xc8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str.AddPort
mov dword [esp], eax
call sym._XcvDataW_32
sub esp, 0x20
mov esi, eax
mov edi, eax
test byte [0x65b0401c], 8
jne 0x65b02a38
mov ecx, dword [ebp - 0xc0]
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0xe0], ecx
test esi, esi
je 0x65b02997
mov eax, dword [ebp - 0xc4]
test ebx, ebx
je 0x65b02986
test eax, eax
jne 0x65b02986
cmp word [ecx], 0
mov eax, ecx
je 0x65b02bd7
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x65b02930
sub eax, dword [ebp - 0xe0]
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebx], eax
sub esp, 8
mov edx, eax
test eax, eax
je 0x65b02bf5
mov ebx, dword [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0xe0], ebx
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65b02970
mov eax, dword [ebp - 0xc4]
cmp eax, 0xb7
je 0x65b02a80
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 0xe0]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
jmp 0x65b029cf
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x4c7
xor esi, esi
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call sym._ClosePrinter_4
sub esp, 4
jmp 0x65b027a5
mov eax, dword [ebp - 0xc0]
call sym._wine_dbgstr_wn.constprop.0
mov edx, eax
mov dword [esp + 0x18], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.got__lu_with__lu_for__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localui_AddPortUI
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65b02862
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.got__lu_with_status__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localui_AddPortUI
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65b028f6
mov eax, 2
jmp 0x65b0289e
lea eax, [ebp - 0xb8]
xor edx, edx
xor ecx, ecx
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 8], eax
mov eax, dword [0x65b04018]
mov word [ebp - 0xb8], dx
mov word [ebp - 0x78], cx
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x78]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x65b04018]
mov dword [esp + 0xc], 0x30
mov dword [esp + 4], 0x12e
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xe0]
sub esp, 0x10
cmp word [eax], 0
je 0x65b02be1
add eax, 2
cmp word [eax], 0
jne 0x65b02af0
sub eax, dword [ebp - 0xe0]
mov edx, eax
add eax, 0x62
sar edx, 1
lea ebx, [edx + 0x31]
mov dword [ebp - 0xe8], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0xe4], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x65b02c0c
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0xe0]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x78]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe8]
mov dword [esp + 4], eax
call sym._swprintf
lea eax, [ebp - 0xb8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 0xc], 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword [ebp - 0xe4]
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xdc], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0xdc]
sub esp, 0xc
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], eax
jmp 0x65b02997
mov eax, 2
jmp 0x65b02942
mov dword [ebp - 0xe8], 0x31
mov eax, 0x62
jmp 0x65b02b0f
mov ebx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe0], ebx
jmp 0x65b02986
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x65b02bc6