Function at 0x407730
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x476090
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.004015a0
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.004015a0
push 0x1e
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1ec]
mov byte [esp + 0x94], 1
call fcn.0042d700
mov dword [0x4ba888], eax
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp eax, ebp
jb 0x4077d2
mov edx, dword [esp + 0x14]
push edx
call fcn.00466c9d
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 0x4077fc
mov eax, dword [esp + 0x4c]
push eax
call fcn.00466c9d
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.004015a0
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.004015a0
push 0x3c5
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x1ec]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x94], 3
call fcn.0042d700
mov dword [0x4ba884], eax
cmp dword [esp + 0x28], ebp
jb 0x407879
mov eax, dword [esp + 0x14]
push eax
call fcn.00466c9d
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 0x4078a3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00466c9d
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.004015a0
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.004015a0
mov ecx, dword [edi + 0x1ec]
push 0x28a
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x94], 5
call fcn.0042d700
mov dword [0x4ba880], eax
cmp dword [esp + 0x28], ebp
jb 0x407920
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00466c9d
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 0x40794a
mov edx, dword [esp + 0x4c]
push edx
call fcn.00466c9d
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.004015a0
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.004015a0
push 1
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1ec]
mov byte [esp + 0x94], 7
call fcn.0042d700
mov dword [0x4ba87c], eax
cmp dword [esp + 0x28], ebp
jb 0x4079c4
mov edx, dword [esp + 0x14]
push edx
call fcn.00466c9d
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 0x4079ee
mov eax, dword [esp + 0x4c]
push eax
call fcn.00466c9d
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.004015a0
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.004015a0
push 1
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x1ec]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x94], 9
call fcn.0042d700
mov dword [0x4ba878], eax
cmp dword [esp + 0x28], ebp
jb 0x407a68
mov eax, dword [esp + 0x14]
push eax
call fcn.00466c9d
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 0x407a92
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00466c9d
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.004015a0
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.004015a0
mov ecx, dword [edi + 0x1ec]
push 1
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x94], 0xb
call fcn.0042d700
mov dword [0x4ba874], eax
cmp dword [esp + 0x28], ebp
jb 0x407b0c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00466c9d
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 0x407b36
mov edx, dword [esp + 0x4c]
push edx
call fcn.00466c9d
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.004015a0
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.004015a0
push 1
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x1ec]
mov byte [esp + 0x94], 0xd
call fcn.0042d700
mov dword [0x4ba870], eax
cmp dword [esp + 0x28], ebp
jb 0x407bb0
mov edx, dword [esp + 0x14]
push edx
call fcn.00466c9d
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 0x407bda
mov eax, dword [esp + 0x4c]
push eax
call fcn.00466c9d
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.004015a0
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.004015a0
push ebx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [edi + 0x1ec]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x94], 0xf
call fcn.0042d700
mov dword [0x4ba86c], eax
cmp dword [esp + 0x44], ebp
jb 0x407c59
mov eax, dword [esp + 0x30]
push eax
call fcn.00466c9d
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 0x407c7e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00466c9d
add esp, 4
mov ecx, dword [esp + 0x70]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x7c
ret