Function at 0x408830
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x477600
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba894], eax
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp eax, ebp
jb 0x4088d2
mov edx, dword [esp + 0x14]
push edx
call fcn.004683c8
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 0x4088fc
mov eax, dword [esp + 0x4c]
push eax
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba890], eax
cmp dword [esp + 0x28], ebp
jb 0x408979
mov eax, dword [esp + 0x14]
push eax
call fcn.004683c8
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 0x4089a3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba88c], eax
cmp dword [esp + 0x28], ebp
jb 0x408a20
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004683c8
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 0x408a4a
mov edx, dword [esp + 0x4c]
push edx
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba888], eax
cmp dword [esp + 0x28], ebp
jb 0x408ac4
mov edx, dword [esp + 0x14]
push edx
call fcn.004683c8
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 0x408aee
mov eax, dword [esp + 0x4c]
push eax
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba884], eax
cmp dword [esp + 0x28], ebp
jb 0x408b68
mov eax, dword [esp + 0x14]
push eax
call fcn.004683c8
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 0x408b92
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba880], eax
cmp dword [esp + 0x28], ebp
jb 0x408c0c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004683c8
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 0x408c36
mov edx, dword [esp + 0x4c]
push edx
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba87c], eax
cmp dword [esp + 0x28], ebp
jb 0x408cb0
mov edx, dword [esp + 0x14]
push edx
call fcn.004683c8
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 0x408cda
mov eax, dword [esp + 0x4c]
push eax
call fcn.004683c8
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.004015c0
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.004015c0
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.0042efc0
mov dword [0x4ba878], eax
cmp dword [esp + 0x44], ebp
jb 0x408d59
mov eax, dword [esp + 0x30]
push eax
call fcn.004683c8
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 0x408d7e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004683c8
add esp, 4
mov ecx, dword [esp + 0x70]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x7c
ret