Function at 0x4089e0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x477a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
push 0xd
mov edi, ecx
xor ebx, ebx
mov esi, 0xf
push str.CaptionHeight
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
push 0x1e
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1f8]
mov byte [esp + 0x94], 1
call fcn.0042f090
mov dword [0x4bc8b0], eax
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp eax, ebp
jb 0x408a82
mov edx, dword [esp + 0x14]
push edx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408aac
mov eax, dword [esp + 0x4c]
push eax
call fcn.004687f8
add esp, 4
push 0xb
push str.ClientWidth
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
push 0x3c5
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x1f8]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x94], 3
call fcn.0042f090
mov dword [0x4bc8ac], eax
cmp dword [esp + 0x28], ebp
jb 0x408b29
mov eax, dword [esp + 0x14]
push eax
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408b53
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004687f8
add esp, 4
push 0xc
push str.ClientHeight
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
mov ecx, dword [edi + 0x1f8]
push 0x28a
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x94], 5
call fcn.0042f090
mov dword [0x4bc8a8], eax
cmp dword [esp + 0x28], ebp
jb 0x408bd0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408bfa
mov edx, dword [esp + 0x4c]
push edx
call fcn.004687f8
add esp, 4
push 0xa
push str.BorderLeft
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 6
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
push 1
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1f8]
mov byte [esp + 0x94], 7
call fcn.0042f090
mov dword [0x4bc8a4], eax
cmp dword [esp + 0x28], ebp
jb 0x408c74
mov edx, dword [esp + 0x14]
push edx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408c9e
mov eax, dword [esp + 0x4c]
push eax
call fcn.004687f8
add esp, 4
push 0xb
push str.BorderRight
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 8
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
push 1
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x1f8]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x94], 9
call fcn.0042f090
mov dword [0x4bc8a0], eax
cmp dword [esp + 0x28], ebp
jb 0x408d18
mov eax, dword [esp + 0x14]
push eax
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408d42
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004687f8
add esp, 4
push 9
push str.BorderTop
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xa
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
mov ecx, dword [edi + 0x1f8]
push 1
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x94], 0xb
call fcn.0042f090
mov dword [0x4bc89c], eax
cmp dword [esp + 0x28], ebp
jb 0x408dbc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408de6
mov edx, dword [esp + 0x4c]
push edx
call fcn.004687f8
add esp, 4
push 0xc
push str.BorderBottom
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004015f0
push 1
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1f8]
mov byte [esp + 0x94], 0xd
call fcn.0042f090
mov dword [0x4bc898], eax
cmp dword [esp + 0x28], ebp
jb 0x408e60
mov edx, dword [esp + 0x14]
push edx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x408e8a
mov eax, dword [esp + 0x4c]
push eax
call fcn.004687f8
add esp, 4
push 0xb
push str.BorderColor
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.004015f0
push 0xc
push str.WireSettings
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], 0xe
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.004015f0
push ebx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [edi + 0x1f8]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x94], 0xf
call fcn.0042f090
mov dword [0x4bc894], eax
cmp dword [esp + 0x44], ebp
jb 0x408f09
mov eax, dword [esp + 0x30]
push eax
call fcn.004687f8
add esp, 4
mov eax, dword [esp + 0x7c]
pop edi
mov dword [esp + 0x40], esi
pop esi
cmp eax, ebp
pop ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
pop ebx
jb 0x408f2e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004687f8
add esp, 4
mov ecx, dword [esp + 0x70]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x7c
ret