Function at 0x416c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x210], eax
mov eax, dword [str.arial]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov ax, word [0x4564e4]
push 0x2c
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push 0
push eax
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x190], 0
call fcn.00439a50
push 0x32
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00439a50
add esp, 0x18
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x1ac], 0
test esi, esi
je 0x416cff
push 0x2cec
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.0043bbd4
push 0
lea eax, [ebp - 0x190]
push esi
push eax
call fcn.00406470
add esp, 0x18
mov ebx, eax
jmp 0x416d2f
push 0
push 0
push 0xe
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [eax + 1]
push ebx
call fcn.00442d35
add esp, 4
mov dword [ebp - 0x190], eax
test eax, eax
je 0x419166
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x48d5f4]
test eax, eax
je 0x416d72
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416d72
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x416d56
mov dword [0x48d5f8], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416d72
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x416d72
push 0x4564cc
push edi
call eax
jmp 0x416d7d
push 0x4564cc
push edi
call fcn.004157e0
mov ecx, dword [ebp - 0x190]
mov edi, eax
add esp, 8
mov dword [ebp - 0x194], edi
cmp byte [ecx], 0x7c
je 0x416deb
test edi, edi
je 0x416de5
lea edx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x416da0
sub edi, edx
lea esi, [edi + ebx]
push esi
push ecx
call fcn.0043bbd4
push ebx
push eax
mov dword [ebp - 0x190], eax
add eax, edi
push eax
call fcn.004394d0
sub esi, ebx
push esi
push dword [ebp - 0x194]
push dword [ebp - 0x190]
call fcn.004394d0
mov edi, dword [ebp - 0x1b0]
add esp, 0x20
jmp 0x416ef4
push ecx
jmp 0x41915e
push 0x7c
push ecx
call fcn.00444792
mov esi, eax
add esp, 8
mov eax, dword [0x48d5f4]
test eax, eax
je 0x416e41
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416e41
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x416e1f
mov dword [0x48d5f8], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416e41
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x416e41
mov edi, dword [ebp - 0x1b0]
push 0x4564cc
push edi
call eax
jmp 0x416e52
mov edi, dword [ebp - 0x1b0]
push 0x4564cc
push edi
call fcn.004157e0
add esp, 8
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x190]
sub esi, eax
inc esi
push 0x2d07
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.0043bbd4
push esi
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00406470
mov ecx, dword [0x48d5f4]
add esp, 0x18
test ecx, ecx
je 0x416ed6
mov eax, dword [ecx + 4]
test eax, 0x40000000
je 0x416ed6
mov edx, dword [ecx + 0x1f0c]
test edx, edx
je 0x416eab
mov dword [0x48d5f8], edx
mov eax, dword [ecx + 4]
test eax, 0x40000000
je 0x416ed6
mov eax, dword [ecx + 0x1f28]
test eax, eax
je 0x416ed6
push 0x2d08
push str.D:MyProjectsProPilotLibLibMain.c
push dword [ebp - 0x194]
push 0x4564cc
push edi
call eax
jmp 0x416ef1
push 0x2d08
push str.D:MyProjectsProPilotLibLibMain.c
push dword [ebp - 0x194]
push 0x4564cc
push edi
call fcn.00419c30
add esp, 0x14
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edi
call esi
push 0xfffffffffffffff0
push edi
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_CopyRect]
mov ecx, eax
and ecx, 1
mov edx, ecx
or edx, 2
and al, 2
mov eax, dword [ebp - 0x210]
cmove edx, ecx
mov dword [ebp - 0x1b8], edx
test eax, eax
jne 0x416f64
lea eax, [ebp - 0x18c]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x18c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x188]
neg eax
push eax
mov eax, dword [ebp - 0x18c]
neg eax
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x416f6e
push eax
lea eax, [ebp - 0x18c]
push eax
call esi
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x178]
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
call esi
test eax, eax
je 0x416f9f
push 2
lea eax, [ebp - 0x178]
push eax
push edi
call esi
push eax
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebp - 0x1ec]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x1ec]
mov edi, eax
mov dword [ebp - 0x1f0], edi
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x48d5f4]
test eax, eax
je 0x417005
mov eax, dword [eax + 0xdcc]
test eax, eax
je 0x417005
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x180]
sub eax, dword [ebp - 0x188]
push eax
mov eax, dword [ebp - 0x184]
sub eax, dword [ebp - 0x18c]
push eax
push dword [ebp - 0x1ec]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x23c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
test bl, 0x20
mov dword [ebp - 0x238], eax
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x41707c
mov eax, dword [ebp - 0x1b0]
push eax
push edi
push 0x901b
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x41707c
push eax
lea eax, [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [ebp - 0x1ec]
jmp 0x4170af
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x180]
mov esi, dword [ebp - 0x1ec]
sub eax, ecx
push 0xcc0020
push ecx
push edx
push esi
push eax
mov eax, dword [ebp - 0x184]
sub eax, edx
push eax
push 0
push 0
push edi
call ebx
push 0
lea eax, [ebp - 0x140]
push eax
push 0x3c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x6d], al
test al, al
jne 0x4170d0
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x1cc], eax
movzx eax, byte [ebp - 0x12c]
mov dword [ebp - 0x1d0], eax
movzx eax, byte [ebp - 0x12b]
mov dword [ebp - 0x1c4], eax
movzx eax, byte [ebp - 0x12a]
push esi
mov dword [ebp - 0x1e0], eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ebx, dword [ebp - 0x190]
push 0x7c
push ebx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x17c], ebx
call fcn.0044417b
mov esi, eax
add esp, 8
test esi, esi
je 0x418efd
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b8], eax
nop dword [eax]
mov al, byte [esi + 1]
test al, al
je 0x418ee7
cmp byte [esi + 2], 0x3d
je 0x417189
cmp al, 0x3f
jne 0x418ee7
mov byte [esi], 0
cmp esi, ebx
jbe 0x4173e8
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x4171ce
mov eax, dword [ebp - 0x180]
mov ecx, 0
sub eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x188]
cdq
sub eax, edx
sar eax, 1
cmovs eax, ecx
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
push dword [ebp - 0x1b0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xf4]
cmovne eax, ecx
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0xf4], eax
test ecx, ecx
mov eax, dword [ebp - 0xf0]
cmovne eax, ecx
mov dword [ebp - 0xf0], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417278
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push dword [ebp - 0xec]
push ebx
jmp 0x4173ae
cmp dword [ebp - 0x224], 0
je 0x4172c7
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x1e0]
mov eax, dword [ebp - 0xec]
push dword [ebp - 0x1c4]
add eax, 0xffdfdfe0
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push eax
push ebx
jmp 0x4173ae
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebx + 1]
inc eax
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1b4]
inc eax
mov dword [ebp - 0xfc], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4172e4
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x6c]
sub ebx, ecx
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp - 0x17c]
lea eax, [ebp - 0xfc]
push eax
push 0
lea eax, [ebp - 0x1ac]
push eax
push edi
call fcn.00419720
mov eax, dword [ebp - 0x17c]
add esp, 0x3c
push dword [ebp - 0x1b8]
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp - 0x17c]
lea eax, [ebp - 0xfc]
push eax
push 0
lea eax, [ebp - 0x1ac]
push eax
push edi
call fcn.00419720
mov eax, dword [ebp - 0xf8]
add esp, 0x3c
cmp byte [esi], 0
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x1b4], eax
jne 0x418ed4
mov byte [esi], 0x20
mov al, 0x20
nop dword [eax]
cmp al, 0x7c
je 0x418ed7
inc esi
mov dword [ebp - 0x1d4], esi
lea eax, [esi + 1]
mov dword [ebp - 0x1f4], eax
xor eax, eax
cmp byte [esi], 0x3f
setne al
inc eax
add esi, eax
cmp byte [esi], 0x3d
jne 0x417419
inc esi
push 0x7c
push esi
call fcn.0044417b
mov ebx, eax
mov dword [ebp - 0x210], eax
add esp, 8
test ebx, ebx
je 0x418ed4
push 0x2c
push esi
call fcn.0044417b
add esp, 8
test eax, eax
je 0x41744e
cmp eax, ebx
cmovb ebx, eax
mov dword [ebp - 0x210], ebx
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x31
jle 0x41749a
mov ecx, 0x31
mov eax, 0x31
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00406540
mov cl, byte [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x1d4]
movsx eax, byte [eax]
add eax, 0xffffffc1
cmp eax, 0x3a
ja case.0x417493.64
movzx eax, byte [eax + 0x4191c8]
jmp dword [eax*4 + 0x419178]
test ecx, ecx
jg 0x41745c
xor cl, cl
mov byte [ebp - 0x38], cl
jmp 0x417477
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
add dword [ebp - 0x1b4], eax
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x22c], eax
jmp case.0x417493.64
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x38]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xa1], al
test al, al
jne 0x4174e0
cmp byte [ebp - 0xa0], al
je case.0x417493.64
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x17c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417511
sub ecx, edx
cmp ecx, 8
jne 0x417548
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0xa0]
push 0x461880
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne 0x41761a
mov dword [ebp - 0x17c], eax
mov eax, dword [0x48d5f4]
test eax, eax
je 0x4176ff
push 0x2000
push 0
push 0
push 0
lea ecx, [ebp - 0xa0]
push ecx
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
lea eax, [ebp - 0x158]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x1a4], ecx
test esi, esi
je 0x4175ab
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x1a0]
push 0x2000
push 0
push 0xff00ff
push 0
push edx
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x48d5f4]
push dword [eax + 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
mov dword [ebp - 0x17c], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x4176c4
mov eax, dword [ebp - 0x180]
sub eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x188]
cdq
sub eax, edx
mov ebx, eax
mov eax, 0
sar ebx, 1
cmovs ebx, eax
mov dword [ebp - 0x1c0], ebx
jmp 0x4176ca
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x417548
lea ecx, [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
test eax, eax
je 0x417548
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x417683
mov eax, dword [ebp - 0x180]
sub eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x188]
cdq
sub eax, edx
mov ebx, eax
mov eax, 0
sar ebx, 1
cmovs ebx, eax
mov dword [ebp - 0x1c0], ebx
jmp 0x417689
mov ebx, dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x204]
push 1
add eax, ebx
push eax
push dword [ebp - 0x1b4]
push edi
push dword [ebp - 0x22c]
push dword [ebp - 0x17c]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [ebp - 0x1b4]
add ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1b4], ecx
jmp case.0x417493.64
mov ebx, dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x204]
push 1
add eax, ebx
push eax
push dword [ebp - 0x1b4]
push edi
push dword [ebp - 0x22c]
push dword [ebp - 0x17c]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x4176ff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov ecx, dword [ebp - 0x1b4]
add ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1b4], ecx
jmp case.0x417493.64
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x6d], al
test al, al
jne 0x417720
mov ecx, dword [ebp - 0x140]
movzx eax, byte [ebp - 0x12a]
mov dword [ebp - 0x1bc], ecx
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x1cc], ecx
movzx ecx, byte [ebp - 0x12c]
mov dword [ebp - 0x1d0], ecx
movzx ecx, byte [ebp - 0x12b]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0xec], eax
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x4177b7
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xa0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x6d], al
test al, al
jne 0x4177a0
jmp case.0x417493.64
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x38]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x6d], al
test al, al
jne 0x4177c0
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x4177ea
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1bc], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1bc], eax
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x417817
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x1c8], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1c8], eax
jmp case.0x417493.64
mov eax, dword [ebp - 0x1f4]
movsx eax, byte [eax]
add eax, 0xffffff9e
cmp eax, 0x12
ja case.0x417846.99
movzx eax, byte [eax + 0x419218]
jmp dword [eax*4 + 0x419204]
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x204], eax
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
mov ecx, dword [ebp - 0x180]
add esp, 4
sub ecx, eax
mov dword [ebp - 0x220], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
mov ecx, dword [ebp - 0x184]
add esp, 4
sub ecx, eax
mov dword [ebp - 0x21c], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1dc], eax
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x4178cf
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x1cc], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1cc], eax
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
test eax, eax
je 0x417905
or dword [ebp - 0x1b8], 0x10000000
jmp case.0x417493.64
and dword [ebp - 0x1b8], 0xefffffff
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x41792b
movzx ecx, byte [ebp - 0x12c]
mov dword [ebp - 0x1d0], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1d0], eax
jmp case.0x417493.64
cmp cl, 0x3f
jne 0x417959
movzx ecx, byte [ebp - 0x12b]
mov dword [ebp - 0x1c4], ecx
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
add esp, 4
mov dword [ebp - 0x1c4], eax
jmp case.0x417493.64
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x38]
push 0x461880
push eax
call fcn.00401070
add esp, 0xc
neg eax
sbb eax, eax
and dword [ebp - 0x198], eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
lea eax, [ebp - 0x168]
push eax
push 0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0xf
mov esi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push esi
mov ebx, eax
push 0
or ebx, 0x2000000
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x48d5f4]
test eax, eax
je 0x417a39
cmp dword [eax + 0xdd0], 0
je 0x417a39
mov eax, dword [ebp - 0x1ac]
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push eax
push edi
call esi
mov eax, dword [ebp - 0x198]
neg eax
push eax
push ebx
call fcn.0040e5c0
push eax
call fcn.0040e430
mov eax, dword [0x48d5f4]
add esp, 0xc
push 0
push dword [eax + 0xdcc]
push edi
call esi
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x198]
neg eax
push eax
push ebx
call fcn.0040e5c0
add esp, 8
push eax
jmp 0x418ea0
cmp cl, 0x3f
je 0x417a76
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x38]
push 0x461880
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne case.0x417493.64
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0xec], eax
jmp case.0x417493.64
cmp cl, 0x3f
je 0x417aae
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x38]
push 0x461880
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1a8]
jne 0x417ab4
mov eax, dword [ebp - 0x228]
or eax, 0x2000000
push eax
mov dword [ebp - 0x1a8], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
mov eax, dword [0x48d5f4]
test eax, eax
je 0x418ea8
cmp dword [eax + 0xdd0], 0
je 0x418ea8
mov eax, dword [ebp - 0x1ac]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push eax
push edi
call ebx
push dword [ebp - 0x1a8]
call fcn.0040e430
mov eax, dword [0x48d5f4]
add esp, 4
push 0
push dword [eax + 0xdcc]
push edi
call ebx
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x418ea8
push dword [ebp - 0x1b0]
movsx esi, cl
sub esi, 0x30
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417b5e
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x37]
push 0x461880
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
je 0x417b5e
mov eax, dword [ebp - 0x19c]
jmp 0x417b66
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [0x48d5f4]
or eax, 0x2000000
mov dword [ebp - 0x19c], eax
test ecx, ecx
je 0x417bc7
cmp dword [ecx + 0xdd0], 0
je 0x417bc7
mov eax, dword [ebp - 0x1ac]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push eax
push edi
call ebx
push dword [ebp - 0x19c]
call fcn.0040e430
mov eax, dword [0x48d5f4]
add esp, 4
push 0
push dword [eax + 0xdcc]
push edi
call ebx
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x19c]
push eax
push esi
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1d4], eax
lea eax, [esi + 1]
mov edi, dword [ebp - 0x18c]
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
mov esi, dword [ebp - 0x180]
cdq
sub eax, edx
sar ebx, 1
mov edx, eax
sub esi, ebx
mov eax, dword [ebp - 0x188]
sar edx, 1
mov dword [ebp - 0xdc], eax
add edi, edx
push 6
mov dword [ebp - 0xe8], edi
lea ecx, [edx + eax]
mov dword [ebp - 0xe0], edi
mov eax, dword [ebp - 0x184]
sub eax, ebx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0x1f0]
push eax
push edi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xbc], esi
call dword [sym.imp.GDI32.dll_Polyline]
push dword [ebp - 0x1d4]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
jmp 0x418ebc
mov ebx, dword [ebp - 0x1b0]
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417dd8
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x180]
mov ebx, eax
sub ecx, dword [ebp - 0x188]
push 0xffffff
push 0
push ecx
mov ecx, dword [ebp - 0x184]
sub ecx, dword [ebp - 0x18c]
push ecx
push 0
call fcn.00411a30
add esp, 0x14
mov esi, eax
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp - 0x180]
sub ecx, dword [ebp - 0x188]
push eax
push 0xffffff
push ecx
mov ecx, dword [ebp - 0x184]
sub ecx, dword [ebp - 0x18c]
push ecx
push 0
call fcn.00411a30
add esp, 0x14
mov edi, eax
mov eax, dword [ebp - 0x1b0]
push eax
push dword [ebp - 0x1f0]
push 0x901b
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea eax, [ebp - 0x18c]
push eax
push dword [ebp - 0x1f0]
call dword [sym.imp.USER32.dll_FillRect]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x180]
mov esi, eax
mov edx, dword [ebp - 0x188]
sub ecx, edx
mov eax, dword [ebp - 0x18c]
push 0xee0086
push 0
push 0
push ebx
push ecx
mov ecx, dword [ebp - 0x184]
sub ecx, eax
push ecx
push edx
push eax
push dword [ebp - 0x1f0]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x188]
sub eax, edx
mov ecx, dword [ebp - 0x18c]
push 0x8800c6
push 0
push 0
push ebx
push eax
mov eax, dword [ebp - 0x184]
sub eax, ecx
push eax
push edx
push ecx
mov edi, dword [ebp - 0x1f0]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp case.0x417493.64
push ebx
push edi
push 0x901b
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea eax, [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
jmp case.0x417493.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043dd72
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
mov ecx, ebx
mov dword [ebp - 0x1fc], ebx
sar ecx, 1
add esp, 4
mov dword [ebp - 0x224], 1
sub ecx, 0
je 0x418446
sub ecx, 1
je 0x4181f0
sub ecx, 1
jne 0x41818b
push 5
call esi
push 0xf
mov ebx, eax
call esi
push 2
mov dword [ebp - 0x1d4], eax
call esi
push dword [ebp - 0x1b0]
mov dword [ebp - 0x17c], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417fd6
push 0x12
call esi
mov edx, eax
movsd xmm4, qword [0x456598]
movsd xmm3, qword [0x456558]
mov eax, ebx
shr eax, 8
mov ecx, edx
mov dword [ebp - 0x1e4], eax
movzx esi, bl
shr ebx, 0x10
sar ecx, 0x10
movzx eax, bl
movzx ecx, cl
movsd xmm2, qword [0x456578]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ecx
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x17c]
shr eax, 0x10
cvtdq2pd xmm1, xmm1
movzx eax, al
mulsd xmm0, xmm3
mulsd xmm1, xmm4
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mulsd xmm0, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx ecx, al
mov eax, edx
sar eax, 8
or ecx, 0x200
movzx eax, al
shl ecx, 8
movd xmm1, eax
mov eax, dword [ebp - 0x1e4]
movzx eax, al
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulsd xmm1, xmm4
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x17c]
shr eax, 8
movzx eax, al
mulsd xmm0, xmm3
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
cvttsd2si eax, xmm1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movd xmm1, eax
mov eax, esi
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x17c]
mulsd xmm1, xmm4
movzx eax, al
mulsd xmm0, xmm3
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mulsd xmm0, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
or ecx, eax
jmp 0x417fed
push 0xe
call esi
mov ecx, eax
movzx esi, bl
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x1e4], eax
shr ebx, 0x10
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0x1d4]
movzx eax, cl
movd xmm1, esi
cvtdq2pd xmm1, xmm1
shr esi, 0x1f
movd xmm5, eax
addsd xmm1, qword [esi*8 + 0x456070]
shr eax, 0x1f
cvtdq2pd xmm5, xmm5
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
movaps xmm2, xmm1
addsd xmm5, qword [eax*8 + 0x456070]
mulsd xmm2, qword [0x456588]
mov eax, dword [ebp - 0x1e4]
movzx eax, al
movaps xmm0, xmm5
mulsd xmm0, qword [0x4565a8]
addsd xmm2, xmm0
movsd qword [ebp - 0x218], xmm2
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x456070]
mov eax, ecx
shr ecx, 0x10
shr eax, 8
movzx eax, al
movaps xmm3, xmm2
mulsd xmm3, qword [0x456588]
movd xmm6, eax
shr eax, 0x1f
cvtdq2pd xmm6, xmm6
addsd xmm6, qword [eax*8 + 0x456070]
movzx eax, bl
mov ebx, dword [ebp - 0x1fc]
movaps xmm0, xmm6
mulsd xmm0, qword [0x4565a8]
addsd xmm3, xmm0
movsd qword [ebp - 0x1e8], xmm3
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr eax, 0x1f
addsd xmm3, qword [eax*8 + 0x456070]
movzx eax, cl
movd xmm7, eax
movaps xmm4, xmm3
mulsd xmm4, qword [0x456588]
shr eax, 0x1f
cvtdq2pd xmm7, xmm7
addsd xmm7, qword [eax*8 + 0x456070]
movaps xmm0, xmm7
mulsd xmm0, qword [0x4565a8]
addsd xmm4, xmm0
movsd qword [ebp - 0x1d8], xmm4
test bl, 1
jne 0x418156
movsd xmm4, qword [0x4565b0]
movsd xmm0, qword [0x456578]
mulsd xmm1, xmm4
mulsd xmm5, xmm0
mulsd xmm2, xmm4
mulsd xmm6, xmm0
mulsd xmm3, xmm4
addsd xmm1, xmm5
mulsd xmm7, xmm0
addsd xmm2, xmm6
movsd qword [ebp - 0x1f8], xmm1
addsd xmm3, xmm7
movsd qword [ebp - 0x20c], xmm2
movsd qword [ebp - 0x200], xmm3
jmp 0x418a47
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x1f8], xmm0
movsd xmm0, qword [ebp - 0x264]
movsd qword [ebp - 0x20c], xmm0
movsd xmm0, qword [ebp - 0x150]
movsd qword [ebp - 0x200], xmm0
jmp 0x418a47
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x1f8], xmm0
movsd xmm0, qword [ebp - 0x254]
movsd qword [ebp - 0x218], xmm0
movsd xmm0, qword [ebp - 0x264]
movsd qword [ebp - 0x20c], xmm0
movsd xmm0, qword [ebp - 0x26c]
movsd qword [ebp - 0x1e8], xmm0
movsd xmm0, qword [ebp - 0x150]
movsd qword [ebp - 0x200], xmm0
movsd xmm0, qword [ebp - 0x158]
movsd qword [ebp - 0x1d8], xmm0
jmp 0x418a47
push 0xf
call esi
push 0x10
mov ebx, eax
call esi
mov edx, eax
shr eax, 8
movzx ecx, dl
movzx eax, al
shr edx, 0x10
movd xmm5, ecx
cvtdq2pd xmm5, xmm5
shr ecx, 0x1f
movd xmm6, eax
addsd xmm5, qword [ecx*8 + 0x456070]
movzx ecx, bl
shr eax, 0x1f
cvtdq2pd xmm6, xmm6
movd xmm1, ecx
movaps xmm0, xmm5
addsd xmm6, qword [eax*8 + 0x456070]
mulsd xmm0, qword [0x4565b0]
mov eax, ebx
shr ecx, 0x1f
cvtdq2pd xmm1, xmm1
shr eax, 8
movzx eax, al
shr ebx, 0x10
addsd xmm1, qword [ecx*8 + 0x456070]
movaps xmm2, xmm1
mulsd xmm2, qword [0x456578]
addsd xmm2, xmm0
movaps xmm0, xmm6
mulsd xmm0, qword [0x4565b0]
movsd qword [ebp - 0x218], xmm2
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x456070]
movzx eax, dl
movd xmm7, eax
movaps xmm3, xmm2
mulsd xmm3, qword [0x456578]
shr eax, 0x1f
cvtdq2pd xmm7, xmm7
addsd xmm3, xmm0
addsd xmm7, qword [eax*8 + 0x456070]
movzx eax, bl
mov ebx, dword [ebp - 0x1fc]
movsd qword [ebp - 0x1e8], xmm3
movd xmm3, eax
movaps xmm0, xmm7
mulsd xmm0, qword [0x4565b0]
shr eax, 0x1f
cvtdq2pd xmm3, xmm3
addsd xmm3, qword [eax*8 + 0x456070]
movaps xmm4, xmm3
mulsd xmm4, qword [0x456578]
addsd xmm4, xmm0
movsd qword [ebp - 0x1d8], xmm4
test bl, 1
jne 0x418353
movsd xmm4, qword [0x4565b0]
movsd xmm0, qword [0x456578]
mulsd xmm1, xmm4
mulsd xmm5, xmm0
mulsd xmm2, xmm4
mulsd xmm6, xmm0
mulsd xmm3, xmm4
addsd xmm1, xmm5
mulsd xmm7, xmm0
addsd xmm2, xmm6
movsd qword [ebp - 0x1f8], xmm1
addsd xmm3, xmm7
movsd qword [ebp - 0x20c], xmm2
movsd qword [ebp - 0x200], xmm3
jmp 0x418383
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x1f8], xmm0
movsd xmm0, qword [ebp - 0x264]
movsd qword [ebp - 0x20c], xmm0
movsd xmm0, qword [ebp - 0x150]
movsd qword [ebp - 0x200], xmm0
push 0xe
call esi
mov ecx, eax
mov dword [ebp - 0xec], eax
sar ecx, 8
movzx ecx, cl
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, al
sar eax, 0x10
movzx eax, al
cvtps2pd xmm1, xmm0
movd xmm0, ecx
mulsd xmm1, qword [0x4565a0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456570]
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456548]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1e8]
cvtpd2ps xmm0, xmm0
cvttsd2si eax, xmm1
cvtps2pd xmm1, xmm0
movzx eax, al
movsd xmm0, qword [ebp - 0x218]
mulsd xmm1, qword [0x4565a0]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456570]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1d8]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456548]
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
movzx ecx, cl
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jmp 0x41897f
push 0x1b
call esi
push 2
mov ebx, eax
call esi
push 0xf
mov dword [ebp - 0x1d4], eax
call esi
mov edx, eax
movzx esi, bl
mov ecx, ebx
movsd xmm5, qword [0x4565a0]
shr ecx, 8
movzx eax, cl
mov dword [ebp - 0x1e4], eax
shr ebx, 0x10
movzx eax, bl
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1d4]
mov ecx, eax
movzx ebx, al
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x1d4], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 0x230], eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x17c], ecx
movzx ecx, dl
shr edx, 0x10
movzx eax, dl
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x208], eax
mov eax, edx
shr eax, 0x1f
movsd xmm6, qword [0x456570]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movsd xmm7, qword [0x456548]
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x208]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm7
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
movd xmm4, eax
mov eax, dword [ebp - 0x1e4]
cvtdq2pd xmm4, xmm4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, esi
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x456070]
cvtpd2ps xmm0, xmm0
mov eax, dword [ebp - 0x1f4]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm7
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, qword [0x4565c8]
cvttsd2si eax, xmm1
movzx eax, al
movd xmm2, eax
mov eax, dword [ebp - 0x17c]
cvtdq2pd xmm2, xmm2
movaps xmm3, xmm2
mulsd xmm3, qword [0x456550]
addsd xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x1d4]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
movsd xmm6, qword [0x456580]
mulsd xmm2, xmm6
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm7
movsd xmm7, qword [0x456578]
mulsd xmm4, xmm7
addsd xmm1, xmm0
cvttsd2si eax, xmm1
xorps xmm1, xmm1
movzx eax, al
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
addsd xmm0, xmm4
movsd xmm4, qword [0x4565f0]
addsd xmm0, xmm2
subsd xmm3, xmm0
xorps xmm0, xmm0
maxsd xmm0, xmm3
subsd xmm4, xmm0
comisd xmm1, xmm4
movsd qword [ebp - 0x234], xmm4
jbe 0x4186ca
xorps xmm4, xmm4
movsd qword [ebp - 0x234], xmm4
xorps xmm1, xmm1
mov eax, dword [ebp - 0x1e4]
cvtsi2sd xmm1, ebx
shr ebx, 0x1f
xorps xmm2, xmm2
xorps xmm5, xmm5
cvtsi2sd xmm2, ecx
shr ecx, 0x1f
addsd xmm1, qword [ebx*8 + 0x456070]
cvtsi2sd xmm5, esi
shr esi, 0x1f
mov ebx, dword [ebp - 0x1fc]
addsd xmm2, qword [ecx*8 + 0x456070]
mulsd xmm1, xmm6
xorps xmm3, xmm3
addsd xmm5, qword [esi*8 + 0x456070]
cvtsi2sd xmm3, eax
shr eax, 0x1f
movaps xmm0, xmm2
mulsd xmm0, xmm7
addsd xmm3, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x17c]
addsd xmm1, xmm0
movaps xmm0, xmm5
mulsd xmm0, xmm6
xorps xmm6, xmm6
cvtsi2sd xmm6, edx
shr edx, 0x1f
addsd xmm1, xmm0
xorps xmm0, xmm0
addsd xmm6, qword [edx*8 + 0x456070]
subsd xmm1, xmm4
maxsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
shr eax, 0x1f
movsd qword [ebp - 0x218], xmm0
movaps xmm0, xmm6
mulsd xmm0, xmm7
xorps xmm7, xmm7
addsd xmm1, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x208]
mulsd xmm1, qword [0x456580]
cvtsi2sd xmm7, eax
shr eax, 0x1f
addsd xmm1, xmm0
movaps xmm0, xmm3
mulsd xmm0, qword [0x456580]
addsd xmm7, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x1f4]
addsd xmm1, xmm0
xorps xmm0, xmm0
subsd xmm1, xmm4
xorps xmm4, xmm4
cvtsi2sd xmm4, eax
shr eax, 0x1f
maxsd xmm0, xmm1
xorps xmm1, xmm1
addsd xmm4, qword [eax*8 + 0x456070]
mov eax, dword [ebp - 0x1d4]
movsd qword [ebp - 0x1e8], xmm0
movaps xmm0, xmm7
mulsd xmm0, qword [0x456578]
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x456070]
mulsd xmm1, qword [0x456580]
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, qword [0x456580]
addsd xmm1, xmm0
xorps xmm0, xmm0
subsd xmm1, qword [ebp - 0x234]
maxsd xmm0, xmm1
movsd qword [ebp - 0x1d8], xmm0
test bl, 1
jne 0x41888b
movsd xmm1, qword [0x4565c8]
movsd xmm0, qword [0x456550]
mulsd xmm2, xmm1
mulsd xmm5, xmm0
mulsd xmm3, xmm0
mulsd xmm6, xmm1
mulsd xmm4, xmm0
addsd xmm2, xmm5
mulsd xmm7, xmm1
addsd xmm3, xmm6
movsd qword [ebp - 0x1f8], xmm2
addsd xmm4, xmm7
movsd qword [ebp - 0x20c], xmm3
movsd qword [ebp - 0x200], xmm4
jmp 0x4188bb
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x1f8], xmm0
movsd xmm0, qword [ebp - 0x264]
movsd qword [ebp - 0x20c], xmm0
movsd xmm0, qword [ebp - 0x150]
movsd qword [ebp - 0x200], xmm0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call esi
mov ecx, eax
mov dword [ebp - 0xec], eax
sar ecx, 8
movzx ecx, cl
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, al
sar eax, 0x10
movzx eax, al
cvtps2pd xmm1, xmm0
movd xmm0, ecx
mulsd xmm1, qword [0x4565a0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456570]
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456548]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1e8]
cvtpd2ps xmm0, xmm0
cvttsd2si eax, xmm1
cvtps2pd xmm1, xmm0
movzx eax, al
movsd xmm0, qword [ebp - 0x218]
mulsd xmm1, qword [0x4565a0]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456570]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1d8]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x456548]
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
movzx ecx, cl
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jge 0x41898b
push 0x12
call esi
mov dword [ebp - 0xec], eax
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x418a47
mov edx, dword [ebp - 0xec]
mov eax, edx
movsd xmm2, qword [0x456558]
movsd xmm3, qword [0x4565c0]
movsd xmm0, qword [ebp - 0x1d8]
sar eax, 0x10
movzx eax, al
mulsd xmm0, xmm3
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1e8]
mulsd xmm0, xmm3
cvttsd2si eax, xmm1
movzx ecx, al
mov eax, edx
sar eax, 8
or ecx, 0x200
movzx eax, al
shl ecx, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x218]
mulsd xmm0, xmm3
cvttsd2si eax, xmm1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
or ecx, eax
mov dword [ebp - 0xec], ecx
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418caf
mov ecx, dword [0x48d5f4]
test ecx, ecx
je 0x418c33
cmp dword [ecx + 0xdd0], 0
jne 0x418c33
mov eax, dword [0x48d604]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x418c33
test bl, 1
jne 0x418c33
mov eax, dword [ebp - 0x18c]
xor edx, edx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0xdc], eax
xor eax, eax
mov word [ebp - 0xd2], ax
mov eax, dword [ebp - 0x184]
add eax, 0xffffff9c
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0xbc], eax
xor eax, eax
cvttsd2si edi, qword [ebp - 0x1e8]
mov word [ebp - 0xb2], ax
mov word [ebp - 0xc2], dx
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x100], 1
cvttsd2si eax, qword [ebp - 0x1f8]
shl di, 8
mov word [ebp - 0xd6], di
mov word [ebp - 0xc6], di
mov word [ebp - 0xb6], di
mov edi, dword [ebp - 0x1f0]
cvttsd2si ebx, qword [ebp - 0x218]
shl ax, 8
mov word [ebp - 0xa8], ax
cvttsd2si eax, qword [ebp - 0x20c]
shl bx, 8
mov word [ebp - 0xd8], bx
mov word [ebp - 0xc8], bx
mov word [ebp - 0xb8], bx
cvttsd2si esi, qword [ebp - 0x1d8]
shl ax, 8
mov word [ebp - 0xa6], ax
cvttsd2si eax, qword [ebp - 0x200]
shl si, 8
mov word [ebp - 0xd4], si
mov word [ebp - 0xc4], si
mov word [ebp - 0xb4], si
shl ax, 8
mov word [ebp - 0xa4], ax
xor eax, eax
mov word [ebp - 0xa2], ax
mov dword [ebp - 0x104], eax
test edi, edi
je 0x418c1a
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 4
lea eax, [ebp - 0xe0]
push eax
push edi
call dword [ebp - 0x230]
mov eax, dword [0x48d604]
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], 3
test eax, eax
je case.0x417493.64
push 0
push 1
lea ecx, [ebp - 0x104]
push ecx
push 4
lea ecx, [ebp - 0xe0]
push ecx
push edi
call eax
jmp case.0x417493.64
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], 3
jmp case.0x417493.64
cvttsd2si eax, qword [ebp - 0x1d8]
movzx esi, al
cvttsd2si eax, qword [ebp - 0x1e8]
or esi, 0x200
shl esi, 8
movzx eax, al
or esi, eax
cvttsd2si eax, qword [ebp - 0x218]
shl esi, 8
movzx eax, al
or esi, eax
test ecx, ecx
je 0x418ca9
cmp dword [ecx + 0xdd0], 0
je 0x418ca9
mov eax, dword [ebp - 0x1ac]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push eax
push edi
call ebx
push esi
call fcn.0040e430
mov eax, dword [0x48d5f4]
add esp, 4
push 0
push dword [eax + 0xdcc]
push edi
call ebx
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
jmp 0x418ea0
push 0xf
call esi
push 0x10
mov ebx, eax
call esi
mov edx, eax
movsd xmm5, qword [0x4565b8]
movzx ecx, dl
movsd xmm6, qword [0x456560]
movzx esi, bl
movd xmm4, ecx
shr ecx, 0x1f
cvtdq2pd xmm4, xmm4
addsd xmm4, qword [ecx*8 + 0x456070]
mov ecx, edx
shr edx, 0x10
shr ecx, 8
movzx eax, cl
mov ecx, ebx
shr ebx, 0x10
shr ecx, 8
movd xmm3, eax
shr eax, 0x1f
cvtdq2pd xmm3, xmm3
addsd xmm3, qword [eax*8 + 0x456070]
movzx eax, dl
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x456070]
movzx eax, bl
movd xmm1, eax
movaps xmm0, xmm2
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mulsd xmm0, xmm6
addsd xmm1, qword [eax*8 + 0x456070]
mulsd xmm2, xmm5
mulsd xmm1, xmm5
addsd xmm1, xmm0
movaps xmm0, xmm3
mulsd xmm0, xmm6
cvttsd2si eax, xmm1
movzx ebx, al
movzx eax, cl
or ebx, 0x200
shl ebx, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x456070]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm6
cvttsd2si eax, xmm1
movd xmm1, esi
cvtdq2pd xmm1, xmm1
shr esi, 0x1f
movzx eax, al
or ebx, eax
shl ebx, 8
addsd xmm1, qword [esi*8 + 0x456070]
mulsd xmm1, xmm5
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
or ebx, eax
mov eax, ebx
movzx esi, bl
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mulsd xmm0, xmm6
addsd xmm0, xmm2
cvttsd2si eax, xmm0
movzx edx, al
movzx eax, cl
or edx, 0x200
mulsd xmm3, xmm5
shl edx, 8
mulsd xmm4, xmm5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x456070]
mulsd xmm0, xmm6
addsd xmm0, xmm3
cvttsd2si eax, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
movzx eax, al
or edx, eax
shl edx, 8
addsd xmm0, qword [esi*8 + 0x456070]
mulsd xmm0, xmm6
addsd xmm0, xmm4
cvttsd2si eax, xmm0
movzx eax, al
or edx, eax
mov eax, dword [0x48d5f4]
mov dword [ebp - 0xec], edx
test eax, eax
je 0x418e9f
cmp dword [eax + 0xdd0], 0
je 0x418e9f
mov eax, dword [ebp - 0x1ac]
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push eax
push edi
call esi
push ebx
call fcn.0040e430
mov eax, dword [0x48d5f4]
add esp, 4
push 0
push dword [eax + 0xdcc]
push edi
call esi
push edi
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
test esi, esi
je case.0x417493.64
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x210]
mov al, byte [esi]
test al, al
jne 0x4173f0
jmp 0x418ed7
mov byte [esi], 0
cmp byte [esi], 0
je 0x418edd
inc esi
mov ebx, esi
mov dword [ebp - 0x17c], ebx
jmp 0x418ee8
inc esi
push 0x7c
push esi
call fcn.0044417b
mov esi, eax
add esp, 8
test esi, esi
jne 0x417170
test ebx, ebx
je 0x4190e9
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x418f3d
mov eax, dword [ebp - 0x180]
sub eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x188]
cdq
sub eax, edx
mov esi, eax
mov eax, 0
sar esi, 1
cmovs esi, eax
jmp 0x418f43
mov esi, dword [ebp - 0x1c0]
add esi, dword [ebp - 0x204]
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x1c0], esi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
mov eax, dword [ebp - 0x1b4]
push dword [ebp - 0x1b0]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xf4]
cmovne eax, ecx
mov dword [ebp - 0xf8], esi
mov ecx, dword [ebp - 0x220]
test ecx, ecx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf0]
cmovne eax, ecx
mov dword [ebp - 0xf0], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418ff2
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push dword [ebp - 0xec]
jmp 0x4190cf
cmp dword [ebp - 0x224], 0
jne 0x418fb3
lea eax, [esi + 1]
mov esi, ebx
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1b4]
inc eax
mov dword [ebp - 0xfc], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x419016
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x6c]
sub esi, ecx
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
lea eax, [ebp - 0xfc]
push eax
push 0
lea eax, [ebp - 0x1ac]
push eax
push edi
call fcn.00419720
mov eax, dword [ebp - 0x1c0]
add esp, 0x3c
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x6c]
push dword [ebp - 0x1b8]
mov byte [esi + ebx], 0
push eax
push dword [ebp - 0x1e0]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1bc]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
lea eax, [ebp - 0xfc]
push eax
push 0
lea eax, [ebp - 0x1ac]
push eax
push edi
call fcn.00419720
add esp, 0x3c
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x188]
sub eax, edx
mov ecx, dword [ebp - 0x18c]
push 0xcc0020
push 0
push 0
push edi
push eax
mov eax, dword [ebp - 0x184]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x1ec]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x419133
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0x238]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x419158
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x190]
call fcn.0043d146
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret