Function at 0x416500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x478bf4]
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 [0x455498]
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.00439330
push 0x32
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00439330
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 0x4165df
push 0x2cec
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.0043be56
push 0
lea eax, [ebp - 0x190]
push esi
push eax
call fcn.00406150
add esp, 0x18
mov ebx, eax
jmp 0x41660f
push 0
push 0
push 0xe
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [eax + 1]
push ebx
call fcn.0043d27d
add esp, 4
mov dword [ebp - 0x190], eax
test eax, eax
je 0x418a46
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x48c5d4]
test eax, eax
je 0x416652
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416652
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x416636
mov dword [0x48c5d8], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416652
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x416652
push 0x455480
push edi
call eax
jmp 0x41665d
push 0x455480
push edi
call fcn.004150c0
mov ecx, dword [ebp - 0x190]
mov edi, eax
add esp, 8
mov dword [ebp - 0x194], edi
cmp byte [ecx], 0x7c
je 0x4166cb
test edi, edi
je 0x4166c5
lea edx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x416680
sub edi, edx
lea esi, [edi + ebx]
push esi
push ecx
call fcn.0043be56
push ebx
push eax
mov dword [ebp - 0x190], eax
add eax, edi
push eax
call fcn.00438db0
sub esi, ebx
push esi
push dword [ebp - 0x194]
push dword [ebp - 0x190]
call fcn.00438db0
mov edi, dword [ebp - 0x1b0]
add esp, 0x20
jmp 0x4167d4
push ecx
jmp 0x418a3e
push 0x7c
push ecx
call fcn.00444854
mov esi, eax
add esp, 8
mov eax, dword [0x48c5d4]
test eax, eax
je 0x416721
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416721
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x4166ff
mov dword [0x48c5d8], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x416721
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x416721
mov edi, dword [ebp - 0x1b0]
push 0x455480
push edi
call eax
jmp 0x416732
mov edi, dword [ebp - 0x1b0]
push 0x455480
push edi
call fcn.004150c0
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.0043be56
push esi
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00406150
mov ecx, dword [0x48c5d4]
add esp, 0x18
test ecx, ecx
je 0x4167b6
mov eax, dword [ecx + 4]
test eax, 0x40000000
je 0x4167b6
mov edx, dword [ecx + 0x1f0c]
test edx, edx
je 0x41678b
mov dword [0x48c5d8], edx
mov eax, dword [ecx + 4]
test eax, 0x40000000
je 0x4167b6
mov eax, dword [ecx + 0x1f28]
test eax, eax
je 0x4167b6
push 0x2d08
push str.D:MyProjectsProPilotLibLibMain.c
push dword [ebp - 0x194]
push 0x455480
push edi
call eax
jmp 0x4167d1
push 0x2d08
push str.D:MyProjectsProPilotLibLibMain.c
push dword [ebp - 0x194]
push 0x455480
push edi
call fcn.00419510
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 0x416844
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 0x41684e
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 0x41687f
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 [0x48c5d4]
test eax, eax
je 0x4168e5
mov eax, dword [eax + 0xdcc]
test eax, eax
je 0x4168e5
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 0x41695c
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 0x41695c
push eax
lea eax, [ebp - 0x18c]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [ebp - 0x1ec]
jmp 0x41698f
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 0x4169b0
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.0044437d
mov esi, eax
add esp, 8
test esi, esi
je 0x4187dd
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b8], eax
nop dword [eax]
mov al, byte [esi + 1]
test al, al
je 0x4187c7
cmp byte [esi + 2], 0x3d
je 0x416a69
cmp al, 0x3f
jne 0x4187c7
mov byte [esi], 0
cmp esi, ebx
jbe 0x416cc8
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x416aae
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 0x416b58
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 0x416c8e
cmp dword [ebp - 0x224], 0
je 0x416ba7
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 0x416c8e
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 0x416bc4
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.00419000
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.00419000
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 0x4187b4
mov byte [esi], 0x20
mov al, 0x20
nop dword [eax]
cmp al, 0x7c
je 0x4187b7
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 0x416cf9
inc esi
push 0x7c
push esi
call fcn.0044437d
mov ebx, eax
mov dword [ebp - 0x210], eax
add esp, 8
test ebx, ebx
je 0x4187b4
push 0x2c
push esi
call fcn.0044437d
add esp, 8
test eax, eax
je 0x416d2e
cmp eax, ebx
cmovb ebx, eax
mov dword [ebp - 0x210], ebx
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x31
jle 0x416d7a
mov ecx, 0x31
mov eax, 0x31
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00406220
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.0x416d73.64
movzx eax, byte [eax + 0x418aa8]
jmp dword [eax*4 + 0x418a58]
test ecx, ecx
jg 0x416d3c
xor cl, cl
mov byte [ebp - 0x38], cl
jmp 0x416d57
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
add dword [ebp - 0x1b4], eax
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x22c], eax
jmp case.0x416d73.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 0x416dc0
cmp byte [ebp - 0xa0], al
je case.0x416d73.64
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x17c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416df1
sub ecx, edx
cmp ecx, 8
jne 0x416e28
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0xa0]
push 0x460864
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne 0x416efa
mov dword [ebp - 0x17c], eax
mov eax, dword [0x48c5d4]
test eax, eax
je 0x416fdf
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 0x416e8b
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 [0x48c5d4]
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 0x416fa4
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 0x416faa
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x416e28
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 0x416e28
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x416f63
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 0x416f69
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.0x416d73.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 0x416fdf
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.0x416d73.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 0x417000
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.0x416d73.64
cmp cl, 0x3f
jne 0x417097
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 0x417080
jmp case.0x416d73.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 0x4170a0
jmp case.0x416d73.64
cmp cl, 0x3f
jne 0x4170ca
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1bc], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1bc], eax
jmp case.0x416d73.64
cmp cl, 0x3f
jne 0x4170f7
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x1c8], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1c8], eax
jmp case.0x416d73.64
mov eax, dword [ebp - 0x1f4]
movsx eax, byte [eax]
add eax, 0xffffff9e
cmp eax, 0x12
ja case.0x417126.99
movzx eax, byte [eax + 0x418af8]
jmp dword [eax*4 + 0x418ae4]
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x204], eax
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
mov ecx, dword [ebp - 0x180]
add esp, 4
sub ecx, eax
mov dword [ebp - 0x220], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
mov ecx, dword [ebp - 0x184]
add esp, 4
sub ecx, eax
mov dword [ebp - 0x21c], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1dc], eax
jmp case.0x416d73.64
cmp cl, 0x3f
jne 0x4171af
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x1cc], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1cc], eax
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
test eax, eax
je 0x4171e5
or dword [ebp - 0x1b8], 0x10000000
jmp case.0x416d73.64
and dword [ebp - 0x1b8], 0xefffffff
jmp case.0x416d73.64
cmp cl, 0x3f
jne 0x41720b
movzx ecx, byte [ebp - 0x12c]
mov dword [ebp - 0x1d0], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1d0], eax
jmp case.0x416d73.64
cmp cl, 0x3f
jne 0x417239
movzx ecx, byte [ebp - 0x12b]
mov dword [ebp - 0x1c4], ecx
jmp case.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
add esp, 4
mov dword [ebp - 0x1c4], eax
jmp case.0x416d73.64
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x38]
push 0x460864
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 [0x48c5d4]
test eax, eax
je 0x417319
cmp dword [eax + 0xdd0], 0
je 0x417319
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.0040dea0
push eax
call fcn.0040dd10
mov eax, dword [0x48c5d4]
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.0040dea0
add esp, 8
push eax
jmp 0x418780
cmp cl, 0x3f
je 0x417356
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x38]
push 0x460864
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne case.0x416d73.64
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0xec], eax
jmp case.0x416d73.64
cmp cl, 0x3f
je 0x41738e
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x38]
push 0x460864
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1a8]
jne 0x417394
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 [0x48c5d4]
test eax, eax
je 0x418788
cmp dword [eax + 0xdd0], 0
je 0x418788
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.0040dd10
mov eax, dword [0x48c5d4]
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 0x418788
push dword [ebp - 0x1b0]
movsx esi, cl
sub esi, 0x30
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41743e
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x37]
push 0x460864
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
je 0x41743e
mov eax, dword [ebp - 0x19c]
jmp 0x417446
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [0x48c5d4]
or eax, 0x2000000
mov dword [ebp - 0x19c], eax
test ecx, ecx
je 0x4174a7
cmp dword [ecx + 0xdd0], 0
je 0x4174a7
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.0040dd10
mov eax, dword [0x48c5d4]
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 0x41879c
mov ebx, dword [ebp - 0x1b0]
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4176b8
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.00411310
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.00411310
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.0x416d73.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.0x416d73.64
lea eax, [ebp - 0x38]
push eax
call fcn.0043e103
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 0x417d26
sub ecx, 1
je 0x417ad0
sub ecx, 1
jne 0x417a6b
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 0x4178b6
push 0x12
call esi
mov edx, eax
movsd xmm4, qword [0x455548]
movsd xmm3, qword [0x455508]
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 [0x455528]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ecx
addsd xmm0, qword [eax*8 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
mulsd xmm0, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
movzx eax, al
or ecx, eax
jmp 0x4178cd
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 + 0x455030]
shr eax, 0x1f
cvtdq2pd xmm5, xmm5
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
movaps xmm2, xmm1
addsd xmm5, qword [eax*8 + 0x455030]
mulsd xmm2, qword [0x455538]
mov eax, dword [ebp - 0x1e4]
movzx eax, al
movaps xmm0, xmm5
mulsd xmm0, qword [0x455558]
addsd xmm2, xmm0
movsd qword [ebp - 0x218], xmm2
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x455030]
mov eax, ecx
shr ecx, 0x10
shr eax, 8
movzx eax, al
movaps xmm3, xmm2
mulsd xmm3, qword [0x455538]
movd xmm6, eax
shr eax, 0x1f
cvtdq2pd xmm6, xmm6
addsd xmm6, qword [eax*8 + 0x455030]
movzx eax, bl
mov ebx, dword [ebp - 0x1fc]
movaps xmm0, xmm6
mulsd xmm0, qword [0x455558]
addsd xmm3, xmm0
movsd qword [ebp - 0x1e8], xmm3
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr eax, 0x1f
addsd xmm3, qword [eax*8 + 0x455030]
movzx eax, cl
movd xmm7, eax
movaps xmm4, xmm3
mulsd xmm4, qword [0x455538]
shr eax, 0x1f
cvtdq2pd xmm7, xmm7
addsd xmm7, qword [eax*8 + 0x455030]
movaps xmm0, xmm7
mulsd xmm0, qword [0x455558]
addsd xmm4, xmm0
movsd qword [ebp - 0x1d8], xmm4
test bl, 1
jne 0x417a36
movsd xmm4, qword [0x455560]
movsd xmm0, qword [0x455528]
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 0x418327
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 0x418327
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 0x418327
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 + 0x455030]
movzx ecx, bl
shr eax, 0x1f
cvtdq2pd xmm6, xmm6
movd xmm1, ecx
movaps xmm0, xmm5
addsd xmm6, qword [eax*8 + 0x455030]
mulsd xmm0, qword [0x455560]
mov eax, ebx
shr ecx, 0x1f
cvtdq2pd xmm1, xmm1
shr eax, 8
movzx eax, al
shr ebx, 0x10
addsd xmm1, qword [ecx*8 + 0x455030]
movaps xmm2, xmm1
mulsd xmm2, qword [0x455528]
addsd xmm2, xmm0
movaps xmm0, xmm6
mulsd xmm0, qword [0x455560]
movsd qword [ebp - 0x218], xmm2
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x455030]
movzx eax, dl
movd xmm7, eax
movaps xmm3, xmm2
mulsd xmm3, qword [0x455528]
shr eax, 0x1f
cvtdq2pd xmm7, xmm7
addsd xmm3, xmm0
addsd xmm7, qword [eax*8 + 0x455030]
movzx eax, bl
mov ebx, dword [ebp - 0x1fc]
movsd qword [ebp - 0x1e8], xmm3
movd xmm3, eax
movaps xmm0, xmm7
mulsd xmm0, qword [0x455560]
shr eax, 0x1f
cvtdq2pd xmm3, xmm3
addsd xmm3, qword [eax*8 + 0x455030]
movaps xmm4, xmm3
mulsd xmm4, qword [0x455528]
addsd xmm4, xmm0
movsd qword [ebp - 0x1d8], xmm4
test bl, 1
jne 0x417c33
movsd xmm4, qword [0x455560]
movsd xmm0, qword [0x455528]
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 0x417c63
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 [0x455550]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x455520]
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4554f8]
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 [0x455550]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x455520]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1d8]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4554f8]
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
movzx ecx, cl
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jmp 0x41825f
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 [0x455550]
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 [0x455520]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movsd xmm7, qword [0x4554f8]
addsd xmm0, qword [eax*8 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm7
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, qword [0x455578]
cvttsd2si eax, xmm1
movzx eax, al
movd xmm2, eax
mov eax, dword [ebp - 0x17c]
cvtdq2pd xmm2, xmm2
movaps xmm3, xmm2
mulsd xmm3, qword [0x455500]
addsd xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x455030]
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 + 0x455030]
mov eax, dword [ebp - 0x1d4]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
movsd xmm6, qword [0x455530]
mulsd xmm2, xmm6
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x455030]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm7
movsd xmm7, qword [0x455528]
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 [0x4555a0]
addsd xmm0, xmm2
subsd xmm3, xmm0
xorps xmm0, xmm0
maxsd xmm0, xmm3
subsd xmm4, xmm0
comisd xmm1, xmm4
movsd qword [ebp - 0x234], xmm4
jbe 0x417faa
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 + 0x455030]
cvtsi2sd xmm5, esi
shr esi, 0x1f
mov ebx, dword [ebp - 0x1fc]
addsd xmm2, qword [ecx*8 + 0x455030]
mulsd xmm1, xmm6
xorps xmm3, xmm3
addsd xmm5, qword [esi*8 + 0x455030]
cvtsi2sd xmm3, eax
shr eax, 0x1f
movaps xmm0, xmm2
mulsd xmm0, xmm7
addsd xmm3, qword [eax*8 + 0x455030]
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 + 0x455030]
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 + 0x455030]
mov eax, dword [ebp - 0x208]
mulsd xmm1, qword [0x455530]
cvtsi2sd xmm7, eax
shr eax, 0x1f
addsd xmm1, xmm0
movaps xmm0, xmm3
mulsd xmm0, qword [0x455530]
addsd xmm7, qword [eax*8 + 0x455030]
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 + 0x455030]
mov eax, dword [ebp - 0x1d4]
movsd qword [ebp - 0x1e8], xmm0
movaps xmm0, xmm7
mulsd xmm0, qword [0x455528]
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x455030]
mulsd xmm1, qword [0x455530]
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, qword [0x455530]
addsd xmm1, xmm0
xorps xmm0, xmm0
subsd xmm1, qword [ebp - 0x234]
maxsd xmm0, xmm1
movsd qword [ebp - 0x1d8], xmm0
test bl, 1
jne 0x41816b
movsd xmm1, qword [0x455578]
movsd xmm0, qword [0x455500]
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 0x41819b
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 [0x455550]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x455520]
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4554f8]
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 [0x455550]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x455520]
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x1d8]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4554f8]
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
movzx ecx, cl
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jge 0x41826b
push 0x12
call esi
mov dword [ebp - 0xec], eax
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x418327
mov edx, dword [ebp - 0xec]
mov eax, edx
movsd xmm2, qword [0x455508]
movsd xmm3, qword [0x455570]
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 0x41858f
mov ecx, dword [0x48c5d4]
test ecx, ecx
je 0x418513
cmp dword [ecx + 0xdd0], 0
jne 0x418513
mov eax, dword [0x48c5e4]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x418513
test bl, 1
jne 0x418513
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 0x4184fa
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 [0x48c5e4]
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], 3
test eax, eax
je case.0x416d73.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.0x416d73.64
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], 3
jmp case.0x416d73.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 0x418589
cmp dword [ecx + 0xdd0], 0
je 0x418589
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.0040dd10
mov eax, dword [0x48c5d4]
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 0x418780
push 0xf
call esi
push 0x10
mov ebx, eax
call esi
mov edx, eax
movsd xmm5, qword [0x455568]
movzx ecx, dl
movsd xmm6, qword [0x455510]
movzx esi, bl
movd xmm4, ecx
shr ecx, 0x1f
cvtdq2pd xmm4, xmm4
addsd xmm4, qword [ecx*8 + 0x455030]
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 + 0x455030]
movzx eax, dl
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x455030]
movzx eax, bl
movd xmm1, eax
movaps xmm0, xmm2
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mulsd xmm0, xmm6
addsd xmm1, qword [eax*8 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
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 + 0x455030]
mulsd xmm0, xmm6
addsd xmm0, xmm4
cvttsd2si eax, xmm0
movzx eax, al
or edx, eax
mov eax, dword [0x48c5d4]
mov dword [ebp - 0xec], edx
test eax, eax
je 0x41877f
cmp dword [eax + 0xdd0], 0
je 0x41877f
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.0040dd10
mov eax, dword [0x48c5d4]
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.0x416d73.64
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x210]
mov al, byte [esi]
test al, al
jne 0x416cd0
jmp 0x4187b7
mov byte [esi], 0
cmp byte [esi], 0
je 0x4187bd
inc esi
mov ebx, esi
mov dword [ebp - 0x17c], ebx
jmp 0x4187c8
inc esi
push 0x7c
push esi
call fcn.0044437d
mov esi, eax
add esp, 8
test esi, esi
jne 0x416a50
test ebx, ebx
je 0x4189c9
push 0xfffffffffffffff0
push dword [ebp - 0x1b0]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x200
je 0x41881d
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 0x418823
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 0x4188d2
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 0x4189af
cmp dword [ebp - 0x224], 0
jne 0x418893
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 0x4188f6
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.00419000
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.00419000
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 0x418a13
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 0x418a38
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x190]
call fcn.0043d262
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004379e8
mov esp, ebp
pop ebp
ret