Function at 0x4055af
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f73d
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x58ee50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x314], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call fcn.004267e7
mov dword [ebp - 0x24], eax
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
call fcn.004047a4
mov dword [ebp - 0x30], vtable.CBrush.0
and dword [ebp - 4], 0
call fcn.004050c6
test eax, eax
je 0x405635
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x28], eax
jmp 0x405640
push 4
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x30]
call fcn.00426acf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and eax, 2
je 0x405680
cmp dword [0x5902b0], 0
jne 0x405680
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and eax, 1
je 0x405680
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and eax, 0xfffffffe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x34]
and eax, 0x800
je 0x4056f1
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x30]
test eax, eax
jne 0x4056ab
and dword [ebp - 0x318], 0
jmp 0x4056b4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x318], eax
push dword [ebp - 0x318]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
sar eax, 1
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
push 2
push 6
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x406994
and dword [ebp - 0x8c], 0
and dword [ebp - 0x88], 0
and dword [ebp - 0x84], 0
and dword [ebp - 0x80], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x5c], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x38], 0
push 7
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x7c]
call fcn.004047a4
mov dword [ebp - 0x7c], vtable.CBrush.0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004047a4
mov dword [ebp - 0x4c], vtable.CPen.0
mov byte [ebp - 4], 2
or dword [ebp - 0x64], 0xffffffff
or dword [ebp - 0x58], 0xffffffff
or dword [ebp - 0x68], 0xffffffff
and dword [ebp - 0x60], 0
push dword [ebp - 0x28]
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00426acf
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00426acf
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x74], eax
call fcn.00422712
push eax
lea ecx, [ebp - 0x54]
call fcn.00403cbd
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x4058f2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call fcn.00404d82
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x54]
call fcn.0040fcbb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x12c]
sub eax, 0x10
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
call fcn.00403d0e
cmp dword [ebp - 0x64], 0
jge 0x40587b
cmp dword [ebp - 0x68], 0
jl 0x40587b
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
and dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x5e0820
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x4058bb
cmp dword [ebp - 0x64], 0
jge 0x4058bb
mov eax, dword [ebp - 0x74]
and eax, 1
je 0x4058a6
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x44], 0
jle 0x4058a6
mov dword [ebp - 0x38], 1
jmp 0x4058b9
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x48], 0
jle 0x4058b9
mov dword [ebp - 0x38], 1
jmp 0x4058f0
cmp dword [ebp - 0x64], 0xffffffff
je 0x4058f0
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x74]
and eax, 1
je 0x4058e1
mov eax, dword [ebp - 0x74]
and eax, 2
jne 0x4058e1
mov dword [ebp - 0x5c], 1
jmp 0x4058f0
mov eax, dword [ebp - 0x74]
and eax, 2
je 0x4058f0
mov dword [ebp - 0x40], 1
jmp 0x4058fa
lea ecx, [ebp - 0x54]
call fcn.0040383e
mov eax, dword [ebp - 0x74]
and eax, 1
je 0x4059d7
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00426bbc
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x38], 0
jne 0x405938
cmp dword [ebp - 0x50], 0
jne 0x405938
cmp dword [ebp - 0x5c], 0
jne 0x405938
cmp dword [ebp - 0x40], 0
jne 0x405938
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x40598a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x174], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 5]
mov dword [ebp - 0x170], eax
push dword [ebp - 0x17c]
push dword [ebp - 0x178]
push dword [ebp - 0x174]
push dword [ebp - 0x170]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x7c]
test eax, eax
jne 0x40599a
and dword [ebp - 0x320], 0
jmp 0x4059a3
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x320], eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x90]
mov ecx, dword [ebp - 0x24]
call fcn.00426bbc
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x70], eax
jmp 0x405a38
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00426bbc
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x30]
test eax, eax
jne 0x4059f9
and dword [ebp - 0x324], 0
jmp 0x405a02
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x324], eax
push dword [ebp - 0x324]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x94]
mov ecx, dword [ebp - 0x24]
call fcn.00426bbc
push dword [ebp - 0x28]
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
sub eax, 4
sub eax, dword [0x5902c8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x3c], eax
jns 0x405a5a
and dword [ebp - 0x328], 0
jmp 0x405a63
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x38], 0
jne 0x405a88
cmp dword [ebp - 0x50], 0
jne 0x405a88
cmp dword [ebp - 0x5c], 0
jne 0x405a88
cmp dword [ebp - 0x40], 0
je 0x406311
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 3]
mov dword [ebp - 0x18c], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 3]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x180], eax
push dword [ebp - 0x18c]
push dword [ebp - 0x188]
push dword [ebp - 0x184]
push dword [ebp - 0x180]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x28]
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
cmp dword [ebp - 0x38], 0
je 0x405d01
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x3c], 0
je 0x405d01
lea eax, [ebp - 0x30]
test eax, eax
jne 0x405b2e
and dword [ebp - 0x32c], 0
jmp 0x405b37
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x32c], eax
push dword [ebp - 0x32c]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x19c], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x190], eax
push dword [ebp - 0x19c]
push dword [ebp - 0x198]
push dword [ebp - 0x194]
push dword [ebp - 0x190]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x28]
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x74]
and eax, 1
je 0x405c80
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x314]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x24], 0
jne 0x405c38
and dword [ebp - 0x1ac], 0
jmp 0x405c44
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1a8], eax
push 1
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [ebp - 0x1ac]
push 1
push dword [ebp - 0x1a8]
call fcn.0042e2bf
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040fb2a
jmp 0x405cfc
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x314]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x24], 0
jne 0x405cb6
and dword [ebp - 0x1b8], 0
jmp 0x405cc2
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1bc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1b4], eax
push 1
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x1b8]
push 0
push dword [ebp - 0x1b4]
call fcn.0042e2bf
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040fb2a
jmp 0x406311
cmp dword [ebp - 0x40], 0
je 0x405ed0
cmp dword [ebp - 0x5c], 0
jne 0x405ecb
mov dword [ebp - 0xa4], vtable.CGdiObject.0
and dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], vtable.CBitmap.0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x314]
call fcn.00408597
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x1cc], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c0], eax
push dword [ebp - 0x1cc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x28]
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x38], 0
je 0x405e2e
lea eax, [ebp - 0xa4]
test eax, eax
jne 0x405de5
and dword [ebp - 0x330], 0
jmp 0x405df1
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x330], eax
push dword [ebp - 0x28]
push 0
push 0
push dword [ebp - 0x330]
push dword [0x5902c8]
push dword [0x5902c4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
push eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov ecx, dword [ebp - 0x314]
call fcn.0040b76a
jmp 0x405ea7
cmp dword [0x5e0750], 0
je 0x405e6e
push dword [ebp - 0x28]
lea eax, [ebp - 0xa4]
push eax
push dword [0x5902c8]
push dword [0x5902c4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
push eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
push eax
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x314]
call fcn.0040d19d
jmp 0x405ea7
push dword [ebp - 0x28]
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [0x5902c8]
push dword [0x5902c4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
push eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
push eax
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x314]
call fcn.0040cd5b
lea ecx, [ebp - 0xa4]
call fcn.00426b29
mov byte [ebp - 4], 3
mov dword [ebp - 0xa4], vtable.CBitmap.0
lea ecx, [ebp - 0xa4]
call fcn.004036a4
jmp 0x406311
cmp dword [ebp - 0x5c], 0
je 0x40606c
lea eax, [ebp - 0x30]
test eax, eax
jne 0x405eea
and dword [ebp - 0x334], 0
jmp 0x405ef3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x334], eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x1dc], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1d0], eax
push dword [ebp - 0x1dc]
push dword [ebp - 0x1d8]
push dword [ebp - 0x1d4]
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
call fcn.004050b5
test eax, eax
je 0x405fc3
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x405fa2
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
jmp 0x405fc3
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x60], 0
je 0x406067
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x24], 0
jne 0x406023
and dword [ebp - 0x1ec], 0
jmp 0x40602f
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1e8], eax
push 1
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x1ec]
push dword [ebp - 0x58]
push dword [ebp - 0x1e8]
call fcn.0042e2bf
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040fb2a
jmp 0x406311
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x4061c4
mov dword [ebp - 0xc0], vtable.CGdiObject.0
and dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], vtable.CBrush.0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], eax
push ecx
push ecx
fld qword [0x56cb78]
fstp qword [esp]
push dword [ebp - 0xb8]
call fcn.004069ca
add esp, 0xc
mov dword [ebp - 0xb8], eax
push dword [ebp - 0xb8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00426acf
lea eax, [ebp - 0xc0]
test eax, eax
jne 0x4060ea
and dword [ebp - 0x338], 0
jmp 0x4060f6
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x338], eax
push dword [ebp - 0x338]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [ebp - 0xc0]
call fcn.00426b29
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x1fc], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1f0], eax
push dword [ebp - 0x1fc]
push dword [ebp - 0x1f8]
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f0]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
call fcn.004050b5
test eax, eax
je 0x4061a6
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov byte [ebp - 4], 3
mov dword [ebp - 0xc0], vtable.CBrush.0
lea ecx, [ebp - 0xc0]
call fcn.004036a4
jmp 0x40626d
lea eax, [ebp - 0x30]
test eax, eax
jne 0x4061d4
and dword [ebp - 0x33c], 0
jmp 0x4061dd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x33c], eax
push dword [ebp - 0x33c]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x20c], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x200], eax
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
push dword [ebp - 0x204]
push dword [ebp - 0x200]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x28]
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004304a2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0x60], 0
je 0x406311
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x24], 0
jne 0x4062cd
and dword [ebp - 0x21c], 0
jmp 0x4062d9
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
mov dword [ebp - 0x218], eax
push 1
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
push dword [ebp - 0x21c]
push dword [ebp - 0x58]
push dword [ebp - 0x218]
call fcn.0042e2bf
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040fb2a
cmp dword [ebp - 0x64], 0
jge 0x40642f
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x40642f
cmp dword [ebp - 0x38], 0
jne 0x40642f
mov eax, dword [ebp - 0x1c]
add eax, dword [0x5902c8]
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + ecx + 2]
mov dword [ebp - 0x22c], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x220], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x30
push 0
lea eax, [ebp - 0xf0]
push eax
call fcn.0051ce30
add esp, 0xc
mov dword [ebp - 0xf0], 0x30
mov dword [ebp - 0xec], 8
lea eax, [ebp - 0xf0]
push eax
push 0
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [ebp - 0x74]
and eax, 8
jne 0x4063eb
cmp dword [ebp - 0xd4], 0
je 0x40642f
mov eax, dword [ebp - 0x74]
and eax, 8
je 0x406401
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x340], eax
jmp 0x40640d
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x340], eax
push dword [ebp - 0x340]
mov eax, dword [ebp - 0x74]
and eax, 1
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x314]
call fcn.0040ca3e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [0x5902c4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 9]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x230], eax
xor eax, eax
cmp dword [ebp - 0x230], 0
sete al
movzx eax, al
test eax, eax
jne 0x406943
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x104], eax
call fcn.00422712
push eax
lea ecx, [ebp - 0x118]
call fcn.00403cbd
mov byte [ebp - 4], 7
call fcn.00422712
push eax
lea ecx, [ebp - 0x100]
call fcn.00403cbd
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x118]
call fcn.0040383e
lea ecx, [ebp - 0x100]
call fcn.0040383e
push 9
lea ecx, [ebp - 0x54]
call fcn.0040ddeb
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0xffffffff
je 0x4065f1
mov eax, dword [ebp - 0xf4]
inc eax
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040dea3
mov dword [ebp - 0x344], eax
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x288]
lea ecx, [ebp - 0x100]
call fcn.0040fcbb
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x150]
sub eax, 0x10
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
call fcn.00403d0e
push 0
push 9
lea ecx, [ebp - 0x54]
call fcn.0040dd10
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040dee0
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x118]
call fcn.0040fcbb
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x154]
sub eax, 0x10
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
call fcn.00403d0e
mov eax, dword [ebp - 0x108]
sub eax, dword [0x5902c4]
mov dword [ebp - 0x108], eax
jmp 0x406600
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040fcbb
mov eax, dword [ebp - 0x24]
push dword [eax + 8]
call dword [sym.imp.GDI32.dll_GetBkMode]
mov dword [ebp - 0x114], eax
push 1
mov ecx, dword [ebp - 0x24]
call fcn.00425ee5
mov dword [ebp - 0xf8], 0x24
mov dword [ebp - 0xfc], 0x26
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and eax, 2
jne 0x4066d9
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x2c8]
push dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
cmp dword [ebp - 0xf4], 0xffffffff
je 0x4066d4
mov eax, dword [ebp - 0x100]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2d4], eax
push dword [ebp - 0xfc]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x2d0]
push dword [ebp - 0x2d4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
jmp 0x4068f9
mov eax, dword [ebp - 0x74]
and eax, 1
jne 0x406864
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x128]
inc eax
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x11c], eax
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x2dc], eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x2d8]
push dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
cmp dword [ebp - 0xf4], 0xffffffff
je 0x4067c4
mov eax, dword [ebp - 0x100]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2e4], eax
push dword [ebp - 0xfc]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x2e0]
push dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x2ec], eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x2e8]
push dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
cmp dword [ebp - 0xf4], 0xffffffff
je 0x40685f
mov eax, dword [ebp - 0x100]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2f4], eax
push dword [ebp - 0xfc]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x2f0]
push dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
jmp 0x4068f9
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x2fc], eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
cmp dword [ebp - 0xf4], 0xffffffff
je 0x4068f9
mov eax, dword [ebp - 0x100]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x304], eax
push dword [ebp - 0xfc]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x300]
push dword [ebp - 0x304]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [eax + 0x68]
push dword [ebp - 0x114]
mov ecx, dword [ebp - 0x24]
call fcn.00425ee5
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x100]
sub eax, 0x10
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
call fcn.00403d0e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x118]
sub eax, 0x10
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
call fcn.00403d0e
lea ecx, [ebp - 0x4c]
call fcn.00426b29
lea ecx, [ebp - 0x7c]
call fcn.00426b29
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x54]
sub eax, 0x10
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
call fcn.00403d0e
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], vtable.CPen.0
lea ecx, [ebp - 0x4c]
call fcn.004036a4
mov byte [ebp - 4], 0
mov dword [ebp - 0x7c], vtable.CBrush.0
lea ecx, [ebp - 0x7c]
call fcn.004036a4
lea ecx, [ebp - 0x30]
call fcn.00426b29
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CBrush.0
lea ecx, [ebp - 0x30]
call fcn.004036a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b26c
leave
ret 4