Function at 0x10001570
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xd4
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x100015d0
cmp eax, 0x111
jne 0x100015c0
cmp dword [ebp + 0x10], 1
je 0x10001600
xor eax, eax
cmp dword [ebp + 0x10], 2
jne 0x100015c2
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x10001962
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowLongW]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xe
mov dword [esp + 4], 0x65
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0x14
mov dword [ebp - 0xb0], eax
lea eax, [eax + eax + 2]
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 esi
mov dword [ebx], eax
sub esp, 0xc
test eax, eax
je 0x1000159b
mov edi, dword [ebp - 0xb0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x65
lea edx, [edi + 1]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItemTextW]
mov dword [ebp - 0xb8], 0
mov edx, dword [ebx]
sub esp, 0x10
cmp word [edx], 0
je 0x100019ec
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100016c8
sub eax, edx
add eax, 2
lea ecx, [ebp - 0xb8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0xb0]
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0xb4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
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 [0x1000401c], 8
jne 0x10001970
mov edx, dword [ebp - 0xb8]
test edi, edi
je 0x100018b0
test edx, edx
je 0x100019f6
cmp edx, 0x7b
jne 0x100018b0
xor eax, eax
mov edx, dword [ebx]
xor edi, edi
mov dword [esp + 0xc], 0x20
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0xac]
mov dword [esp + 8], eax
mov eax, dword [0x10004018]
mov dword [ebp - 0xbc], edx
mov word [ebp - 0xac], di
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call edi
lea eax, [ebp - 0x6c]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x10004018]
mov dword [esp + 0xc], 0x30
mov dword [esp + 4], 0x12d
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xbc]
sub esp, 0x10
cmp word [edx], 0
je 0x10001a12
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100017c8
sub eax, edx
mov ecx, eax
add eax, 0x60
sar ecx, 1
lea edi, [ecx + 0x30]
mov dword [ebp - 0xbc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xc0], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0xc0]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x10001a26
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x6c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xbc]
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._swprintf
lea eax, [ebp - 0xac]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 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 0x10001962
xor eax, eax
lea esi, [ebp - 0x6c]
mov dword [ebp - 0xbc], edx
mov word [ebp - 0x6c], ax
mov eax, dword [0x10004018]
mov dword [ebp - 0xac], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xac]
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], edx
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x100019b0
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 0x100015c2
mov eax, dword [ebp - 0xb8]
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], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001729
mov eax, dword [ebp - 0xac]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, dword [ebp - 0xac]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x10001936
mov eax, 2
jmp 0x100016d6
mov eax, dword [ebp + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x10001962
mov dword [ebp - 0xbc], 0x30
mov eax, 0x60
jmp 0x100017e3
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x10001881