Function at 0x65b015a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
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, 0xe8
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, 0x110
je 0x65b01610
cmp eax, 0x111
jne 0x65b015f8
cmp ebx, 1
je 0x65b01640
xor eax, eax
cmp ebx, 2
jne 0x65b015fa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x65b019aa
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 4], 8
call dword [sym.imp.user32.dll_SetWindowLongW]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xe
mov dword [esp + 4], 0x65
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
sub esp, 0x14
mov dword [ebp - 0xbc], eax
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xcc], eax
call eax
mov dword [ebx], eax
sub esp, 0xc
test eax, eax
je 0x65b015dc
mov edx, dword [ebp - 0xbc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x65
lea ecx, [edx + 1]
mov dword [esp], esi
mov dword [esp + 0xc], ecx
call dword [sym.imp.user32.dll_GetDlgItemTextW]
mov dword [ebp - 0xc4], 0
mov ecx, dword [ebx]
sub esp, 0x10
cmp word [ecx], 0
je 0x65b01a29
mov eax, ecx
nop
add eax, 2
cmp word [eax], 0
jne 0x65b01700
sub eax, ecx
add eax, 2
lea edi, [ebp - 0xc4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edi
lea edi, [ebp - 0xbc]
mov dword [esp + 0x18], edi
lea edi, [ebp - 0xc0]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], str.PortIsValid
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._XcvDataW_32
sub esp, 0x20
mov edi, eax
test byte [0x65b0401c], 8
jne 0x65b019b8
mov ecx, dword [ebp - 0xc4]
test edi, edi
je 0x65b018f8
test ecx, ecx
je 0x65b01a33
cmp ecx, 0x7b
jne 0x65b018f8
mov ecx, dword [ebx]
lea eax, [ebp - 0xb8]
xor edi, edi
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], eax
mov eax, dword [0x65b04018]
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
mov word [ebp - 0xb8], cx
mov word [ebp - 0x78], di
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call edi
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], 0x12d
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0xd0]
sub esp, 0x10
cmp word [ecx], 0
je 0x65b01a4c
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x65b01800
sub eax, ecx
mov edi, eax
add eax, 0x60
sar edi, 1
lea edx, [edi + 0x30]
mov dword [ebp - 0xd0], edx
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xd8], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xd4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0xcc]
call eax
mov ecx, dword [ebp - 0xd8]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x65b01a60
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x78]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._swprintf
lea eax, [ebp - 0xb8]
mov dword [esp], esi
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword [ebp - 0xd4]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov dword [ebx], 0
sub esp, 0xc
jmp 0x65b019aa
xor eax, eax
lea edi, [ebp - 0x78]
mov dword [ebp - 0xcc], ecx
mov word [ebp - 0x78], ax
mov eax, dword [0x65b04018]
mov dword [ebp - 0xb8], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], edi
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xb8]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x65b019f0
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx], 0
sub esp, 0xc
mov eax, 1
jmp 0x65b015fa
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.got__lu_with_status__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.dlgproc_addport
mov dword [esp + 4], 0x65b0401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65b01761
mov eax, dword [ebp - 0xb8]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword [ebp - 0xb8]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x65b0197e
mov eax, 2
jmp 0x65b0170e
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x65b019aa
mov dword [ebp - 0xd0], 0x30
mov eax, 0x60
jmp 0x65b0181b
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x65b018c8