Function at 0x408900
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x478770
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8d0], eax
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp eax, ebp
jb 0x4089a2
mov edx, dword [esp + 0x14]
push edx
call fcn.00469560
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 0x4089cc
mov eax, dword [esp + 0x4c]
push eax
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8cc], eax
cmp dword [esp + 0x28], ebp
jb 0x408a49
mov eax, dword [esp + 0x14]
push eax
call fcn.00469560
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 0x408a73
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8c8], eax
cmp dword [esp + 0x28], ebp
jb 0x408af0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00469560
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 0x408b1a
mov edx, dword [esp + 0x4c]
push edx
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8c4], eax
cmp dword [esp + 0x28], ebp
jb 0x408b94
mov edx, dword [esp + 0x14]
push edx
call fcn.00469560
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 0x408bbe
mov eax, dword [esp + 0x4c]
push eax
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8c0], eax
cmp dword [esp + 0x28], ebp
jb 0x408c38
mov eax, dword [esp + 0x14]
push eax
call fcn.00469560
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 0x408c62
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8bc], eax
cmp dword [esp + 0x28], ebp
jb 0x408cdc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00469560
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 0x408d06
mov edx, dword [esp + 0x4c]
push edx
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8b8], eax
cmp dword [esp + 0x28], ebp
jb 0x408d80
mov edx, dword [esp + 0x14]
push edx
call fcn.00469560
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 0x408daa
mov eax, dword [esp + 0x4c]
push eax
call fcn.00469560
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.004015d0
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.004015d0
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.0042f300
mov dword [0x4bd8b4], eax
cmp dword [esp + 0x44], ebp
jb 0x408e29
mov eax, dword [esp + 0x30]
push eax
call fcn.00469560
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 0x408e4e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00469560
add esp, 4
mov ecx, dword [esp + 0x70]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x7c
ret