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

Disassembly:
test dword [0x7eda90], 0xfffffe00
jne 0x617678
test dword [0x7eda90], 0xffffff80
jne 0x61812c
test dword [0x7eda90], 0xffffffff
jne 0x618bc0
call fcn.006a6b5c
jmp fcn.00617640
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
push ecx
mov eax, 0x128
call fcn.00696350
mov ecx, dword [esp + 0x128]
mov ebx, ecx
mov edi, dword [0x6ff828]
mov esi, dword [edi + 0xc]
mov dword [esp + 0xa4], esi
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xa8], ecx
mov edx, dword [edi + 0x18]
add edx, esi
mov dword [esp + 0xac], edx
movsx eax, word [0x6ff760]
mov dword [esp + 0xb0], eax
movzx edi, byte [edi + 0x58]
test edi, 0x20
je 0x6176dd
dec eax
mov dword [esp + 0xb0], eax
xor edi, edi
sub edx, esi
sub eax, ecx
push ebx
push dword [ebp + 8]
push edi
push dword [0x6ff858]
push eax
push edx
push ecx
push esi
push 0x50300000
push edi
push str.PreviewClass
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebx + 8], eax
pxor xmm0, xmm0
movq qword [esp], xmm0
movq qword [esp + 8], xmm0
movq qword [esp + 0x10], xmm0
movq qword [esp + 0x18], xmm0
movq qword [esp + 0x20], xmm0
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x30], xmm0
movq qword [esp + 0x38], xmm0
movq qword [esp + 0x40], xmm0
movq qword [esp + 0x48], xmm0
movq qword [esp + 0x50], xmm0
movq qword [esp + 0x58], xmm0
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 4], 0x6c
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebx + 0x18]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
mov dword [esp + 0x10c], eax
lea eax, [esp]
push eax
push 0x6c
mov edx, dword [esp + 0x114]
push edx
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0xb4], xmm0
movsd xmm1, qword [esp + 0x10]
movsd qword [esp + 0xbc], xmm1
mov eax, dword [esp + 0xb4]
mov dword [ebx + 0x44], eax
mov edx, dword [esp + 0xb8]
mov dword [ebx + 0x48], edx
mov ecx, dword [esp + 0xbc]
sub ecx, eax
mov dword [ebx + 0x4c], ecx
mov eax, dword [esp + 0xc0]
sub eax, edx
mov dword [esp + 0x114], eax
mov dword [ebx + 0x50], eax
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0x114]
cdq
mov eax, dword [esp + 0x114]
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x114], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x110], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0xb4]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [esp + 0xb4]
push eax
mov edx, dword [esp + 0x110]
push edx
push edi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [esp + 0x110]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x1c], edi
mov eax, dword [ebx + 0x4c]
add eax, 4
mov dword [ebx + 0x68], eax
mov edx, 0x10
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x70], edx
mov ecx, dword [ebx + 0x50]
add ecx, 4
mov dword [ebx + 0x6c], ecx
lea edi, [esp + 0xa4]
push edi
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xa4]
mov dword [ebx + 0x54], ecx
mov eax, dword [esp + 0xa8]
mov dword [ebx + 0x58], eax
mov edx, dword [esp + 0xb0]
sub edx, eax
sub edx, dword [ebx + 0x64]
mov dword [ebx + 0x60], edx
mov edi, dword [esp + 0xac]
sub edi, ecx
sub edi, dword [ebx + 0x70]
mov dword [ebx + 0x5c], edi
mov eax, 1
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov eax, dword [0x6d9e70]
mov dword [esp + 0xc4], eax
mov eax, dword [0x6d9e74]
mov dword [esp + 0xc8], eax
mov eax, dword [0x6d9e78]
mov dword [esp + 0xcc], eax
mov eax, dword [0x6d9e7c]
mov dword [esp + 0xd0], eax
push 0x7dffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebx + 0x28], eax
xor eax, eax
push 0x808080
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebx + 0xc], eax
xor eax, eax
push 0x8000ff
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebx + 0x10], eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x38], eax
lea eax, [esp + 0xc4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xcc]
sub ecx, dword [esp + 0xc4]
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x2c], eax
push eax
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0xc4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0x64]
inc ecx
mov dword [esp + 0xd0], ecx
mov edi, dword [esp + 0xcc]
sub edi, dword [esp + 0xc4]
mov eax, edi
cdq
xor edi, edx
sub edi, edx
mov edx, dword [esp + 0xc8]
sub ecx, edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push edi
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x30], eax
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x40], eax
lea eax, [esp + 0xc4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0x70]
inc ecx
mov dword [esp + 0xcc], ecx
mov edi, dword [esp + 0xc4]
sub ecx, edi
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x34], eax
push eax
push dword [ebx + 0x40]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], 0x1c
mov dword [esp + 0x70], 0xf
mov ecx, dword [ebx + 0x4c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x78], edx
mov edi, 1
mov dword [esp + 0x74], edi
mov ecx, dword [ebx + 0x5c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
lea eax, [esp + 0x6c]
push edi
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebx + 0x4c]
sub eax, dword [ebx + 0x5c]
test eax, eax
jg 0x61810e
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebx + 0x84], 0
mov dword [esp + 0x88], 0x1c
mov dword [esp + 0x8c], 0xf
mov ecx, dword [ebx + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x94], edx
mov edi, 1
mov dword [esp + 0x90], edi
mov ecx, dword [ebx + 0x60]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x98], edx
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x88]
push edi
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebx + 0x50]
sub eax, dword [ebx + 0x60]
test eax, eax
jg 0x6180ea
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebx + 0x88], 0
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x70]
mov dword [esp + 0xdc], ecx
mov edx, dword [ebx + 0x64]
inc edx
mov dword [esp + 0x114], edx
mov dword [esp + 0xe0], edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0x114]
cdq
mov eax, dword [esp + 0x114]
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0xf8], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xd4]
push dword [ebx + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0xfc], edi
mov ecx, dword [ebx + 0x64]
mov edi, ecx
shr edi, 0x1f
add edi, ecx
shr edi, 1
mov dword [esp + 0x110], edi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x108], edx
lea eax, [edx + edi]
mov dword [esp + 0x10c], eax
push 0x58
push dword [ebx + 8]
mov edi, dword [esp + 0x104]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cvtsi2sd xmm0, eax
cmp dword [ebx + 0x8c], 0
je 0x617c87
divsd xmm0, qword [0x6d9e10]
jmp 0x617c8f
divsd xmm0, qword [0x6d9e18]
push dword [ebx + 0xc]
push edi
movsd qword [esp + 0x120], xmm0
call dword [sym.imp.GDI32.dll_SelectObject]
movsd xmm0, qword [esp + 0x118]
mov edx, dword [ebx + 0x70]
inc edx
cvtsi2sd xmm2, edx
mov ecx, dword [ebx + 0x68]
add ecx, 0x10
cvtsi2sd xmm1, ecx
comisd xmm1, xmm2
jb 0x617e10
xor edx, edx
movsd qword [esp + 0x120], xmm2
movsd qword [esp + 0x118], xmm0
mov dword [esp + 0x100], eax
mov dword [esp + 0xf4], esi
mov esi, edx
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea eax, [edx + edx*4]
add eax, eax
neg eax
add eax, esi
jne 0x617d41
movsd xmm0, qword [esp + 0x120]
cvttsd2si ecx, xmm0
mov edx, dword [ebx + 0x64]
mov eax, edx
sub eax, dword [esp + 0x10c]
mov dword [esp + 0x104], eax
movsx eax, cx
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x124], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x617db8
cmp eax, 5
jne 0x617d80
movsd xmm0, qword [esp + 0x120]
cvttsd2si ecx, xmm0
mov edx, dword [ebx + 0x64]
mov eax, edx
sub eax, dword [esp + 0x110]
mov dword [esp + 0x104], eax
movsx eax, cx
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x124], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x617db8
movsd xmm0, qword [esp + 0x120]
cvttsd2si ecx, xmm0
mov edx, dword [ebx + 0x64]
mov eax, edx
sub eax, dword [esp + 0x108]
mov dword [esp + 0x104], eax
movsx eax, cx
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x124], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x104]
movsx ecx, cx
push ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
movsd xmm1, qword [esp + 0x120]
addsd xmm1, qword [esp + 0x118]
movsd qword [esp + 0x120], xmm1
inc esi
mov eax, dword [ebx + 0x68]
add eax, 0x10
cvtsi2sd xmm0, eax
comisd xmm0, xmm1
jae 0x617ceb
mov eax, dword [esp + 0x100]
mov esi, dword [esp + 0xf4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xf8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x20], edi
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov ecx, dword [ebx + 0x70]
inc ecx
mov dword [esp + 0xec], ecx
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf0], edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xfc]
cdq
mov eax, dword [esp + 0xfc]
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x104], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xe4]
push dword [ebx + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0xf4], esi
mov ecx, dword [ebx + 0x70]
mov esi, ecx
shr esi, 0x1f
add esi, ecx
shr esi, 1
mov dword [esp + 0x114], esi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x10c], edx
lea eax, [edx + esi]
mov dword [esp + 0x110], eax
push 0x5a
push edi
mov esi, dword [esp + 0xfc]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cvtsi2sd xmm0, eax
cmp dword [ebx + 0x8c], 0
je 0x617f07
divsd xmm0, qword [0x6d9e10]
jmp 0x617f0f
divsd xmm0, qword [0x6d9e18]
push dword [ebx + 0xc]
push edi
movsd qword [esp + 0x128], xmm0
call dword [sym.imp.GDI32.dll_SelectObject]
movsd xmm0, qword [esp + 0x120]
mov dword [esp + 0xf8], eax
mov eax, dword [ebx + 0x64]
inc eax
cvtsi2sd xmm2, eax
mov edx, dword [ebx + 0x6c]
add edx, 0x10
cvtsi2sd xmm1, edx
comisd xmm1, xmm2
jb 0x61808f
xor eax, eax
movsd qword [esp + 0x118], xmm2
movsd qword [esp + 0x120], xmm0
mov dword [esp + 0xf4], esi
mov esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
neg edx
add edx, esi
jne 0x617fc3
mov edx, dword [ebx + 0x70]
lea ecx, [edx - 1]
movsd xmm0, qword [esp + 0x118]
cvttsd2si eax, xmm0
sub edx, dword [esp + 0x110]
dec edx
mov dword [esp + 0x108], edx
movsx ecx, cx
movsx edx, ax
mov dword [esp + 0x100], edx
push 0
push edx
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x61803e
cmp edx, 5
jne 0x618004
mov edx, dword [ebx + 0x70]
lea ecx, [edx - 1]
movsd xmm0, qword [esp + 0x118]
cvttsd2si eax, xmm0
sub edx, dword [esp + 0x114]
dec edx
mov dword [esp + 0x108], edx
movsx ecx, cx
movsx edx, ax
mov dword [esp + 0x100], edx
push 0
push edx
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x61803e
mov edx, dword [ebx + 0x70]
lea ecx, [edx - 1]
movsd xmm0, qword [esp + 0x118]
cvttsd2si eax, xmm0
sub edx, dword [esp + 0x10c]
dec edx
mov dword [esp + 0x108], edx
movsx ecx, cx
movsx edx, ax
mov dword [esp + 0x100], edx
push 0
push edx
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x108]
movsx edx, dx
mov ecx, dword [esp + 0x100]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
movsd xmm1, qword [esp + 0x118]
addsd xmm1, qword [esp + 0x120]
movsd qword [esp + 0x118], xmm1
inc esi
mov edx, dword [ebx + 0x6c]
add edx, 0x10
cvtsi2sd xmm0, edx
comisd xmm0, xmm1
jae 0x617f6b
mov esi, dword [esp + 0xf4]
mov eax, dword [esp + 0x104]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xf8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x24], edi
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x14], eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add esp, 0x12c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x98]
inc eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], 1
jmp 0x617ba7
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x7c]
inc eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x84], 1
jmp 0x617b0b
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x124
call fcn.00696350
mov ecx, dword [esp + 0x124]
mov ebp, ecx
mov esi, dword [0x6ff828]
mov edx, dword [esi + 0xc]
mov dword [esp + 0xa4], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0xa8], eax
mov ecx, dword [esi + 0x18]
add ecx, edx
mov dword [esp + 0xac], ecx
movsx ebx, word [0x6ff760]
mov dword [esp + 0xb0], ebx
movzx esi, byte [esi + 0x58]
test esi, 0x20
je 0x61818c
dec ebx
mov dword [esp + 0xb0], ebx
xor esi, esi
sub ecx, edx
sub ebx, eax
push ebp
push dword [esp + 0x140]
push esi
push dword [0x6ff858]
push ebx
push ecx
push eax
push edx
push 0x50300000
push esi
push str.PreviewClass
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 8], eax
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 4], 0x6c
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebp + 0x18]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
mov esi, eax
lea eax, [esp]
push eax
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0xb8], edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xb4]
mov dword [ebp + 0x44], eax
mov edx, dword [esp + 0xb8]
mov dword [ebp + 0x48], edx
mov ecx, dword [esp + 0xbc]
sub ecx, eax
mov dword [ebp + 0x4c], ecx
mov eax, dword [esp + 0xc0]
sub eax, edx
mov dword [esp + 0x10c], eax
mov dword [ebp + 0x50], eax
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0x10c]
cdq
mov eax, dword [esp + 0x10c]
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x10c], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x108], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0xb4]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [esp + 0xb4]
push eax
push esi
push edi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
push esi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1c], edi
mov eax, dword [ebp + 0x4c]
add eax, 4
mov dword [ebp + 0x68], eax
mov edx, 0x10
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x70], edx
mov ecx, dword [ebp + 0x50]
add ecx, 4
mov dword [ebp + 0x6c], ecx
lea esi, [esp + 0xa4]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xa4]
mov dword [ebp + 0x54], ecx
mov eax, dword [esp + 0xa8]
mov dword [ebp + 0x58], eax
mov edx, dword [esp + 0xb0]
sub edx, eax
sub edx, dword [ebp + 0x64]
mov dword [ebp + 0x60], edx
mov esi, dword [esp + 0xac]
sub esi, ecx
sub esi, dword [ebp + 0x70]
mov dword [ebp + 0x5c], esi
mov edi, 1
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x78], edi
mov dword [ebp + 0x7c], edi
mov dword [ebp + 0x80], edi
mov eax, dword [0x6d9e70]
mov dword [esp + 0xc4], eax
mov eax, dword [0x6d9e74]
mov dword [esp + 0xc8], eax
mov eax, dword [0x6d9e78]
mov dword [esp + 0xcc], eax
mov eax, dword [0x6d9e7c]
mov dword [esp + 0xd0], eax
push 0x7dffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp + 0x28], eax
xor eax, eax
push 0x808080
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp + 0xc], eax
xor eax, eax
push 0x8000ff
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x38], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xcc]
sub ecx, dword [esp + 0xc4]
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x2c], eax
push eax
push dword [ebp + 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x3c], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0x64]
inc ecx
mov dword [esp + 0xd0], ecx
mov esi, dword [esp + 0xcc]
sub esi, dword [esp + 0xc4]
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov edi, dword [esp + 0xc8]
sub ecx, edi
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x30], eax
push eax
push dword [ebp + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x40], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0x70]
inc ecx
mov dword [esp + 0xcc], ecx
mov esi, dword [esp + 0xc4]
sub ecx, esi
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x34], eax
push eax
push dword [ebp + 0x40]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], 0x1c
mov dword [esp + 0x70], 0xf
mov esi, dword [ebp + 0x4c]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 3
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x78], edx
mov ecx, 1
mov dword [esp + 0x74], ecx
mov edi, dword [ebp + 0x5c]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 3
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
lea eax, [esp + 0x6c]
push ecx
push eax
push edx
push ebx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x5c]
test eax, eax
jg 0x618b93
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebp + 0x84], 0
mov dword [esp + 0x88], 0x1c
mov dword [esp + 0x8c], 0xf
mov esi, dword [ebp + 0x50]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 3
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x94], edx
mov ecx, 1
mov dword [esp + 0x90], ecx
mov edi, dword [ebp + 0x60]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 3
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x98], edx
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x88]
push ecx
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebp + 0x50]
sub eax, dword [ebp + 0x60]
test eax, eax
jg 0x618b6f
push 0
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebp + 0x88], 0
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov esi, dword [ebp + 0x68]
add esi, dword [ebp + 0x70]
mov dword [esp + 0xdc], esi
mov ecx, dword [ebp + 0x64]
inc ecx
mov dword [esp + 0xe0], ecx
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xd4]
push dword [ebp + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0xfc], esi
mov ecx, dword [ebp + 0x64]
mov esi, ecx
shr esi, 0x1f
add esi, ecx
shr esi, 1
mov dword [esp + 0x108], esi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x100], edx
lea eax, [edx + esi]
mov dword [esp + 0x104], eax
push 0x58
push dword [ebp + 8]
mov esi, dword [esp + 0x104]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
cmp dword [ebp + 0x8c], 0
je 0x618734
fld qword [0x6d9e20]
fdivp st(1)
jmp 0x61873c
fld qword [0x6d9e28]
fdivp st(1)
push dword [ebp + 0xc]
push edi
fstp qword [esp + 0x120]
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [esp + 0x118]
mov edx, eax
mov ecx, dword [ebp + 0x70]
inc ecx
mov dword [esp + 0x110], ecx
fild dword [esp + 0x110]
mov eax, dword [ebp + 0x68]
add eax, 0x10
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
fcomp st(1)
fnstsw ax
sahf
jb 0x618bae
xor eax, eax
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf4], ebx
fstp qword [esp + 0x120]
fstp qword [esp + 0x118]
mov esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
neg edx
add edx, esi
jne 0x6187fc
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x104]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x618863
cmp edx, 5
jne 0x618833
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x108]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x618863
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x100]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x10c]
movsx edx, bx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x120]
fadd qword [esp + 0x118]
fst qword [esp + 0x120]
inc esi
mov edx, dword [ebp + 0x68]
add edx, 0x10
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
fcompp
fnstsw ax
sahf
jae 0x6187ae
mov edx, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf4]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x20], edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov esi, dword [ebp + 0x70]
inc esi
mov dword [esp + 0xec], esi
mov ecx, dword [ebp + 0x64]
add ecx, dword [ebp + 0x6c]
mov dword [esp + 0xf0], ecx
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0xfc], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xe4]
push dword [ebp + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp + 0x70]
mov esi, ecx
shr esi, 0x1f
add esi, ecx
shr esi, 1
mov dword [esp + 0x10c], esi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x104], edx
lea eax, [edx + esi]
mov dword [esp + 0x108], eax
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
cmp dword [ebp + 0x8c], 0
je 0x618999
fld qword [0x6d9e20]
fdivp st(1)
jmp 0x6189a1
fld qword [0x6d9e28]
fdivp st(1)
push dword [ebp + 0xc]
push edi
fstp qword [esp + 0x128]
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [esp + 0x120]
mov dword [esp + 0xf8], eax
mov edx, dword [ebp + 0x64]
inc edx
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
mov ecx, dword [ebp + 0x6c]
add ecx, 0x10
mov dword [esp + 0x110], ecx
fild dword [esp + 0x110]
fcomp st(1)
fnstsw ax
sahf
jb 0x618bb7
xor esi, esi
mov dword [esp + 0xf4], ebx
fstp qword [esp + 0x118]
fstp qword [esp + 0x120]
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea eax, [edx + edx*4]
add eax, eax
neg eax
add eax, esi
jne 0x618a58
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x108]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x618ac3
cmp eax, 5
jne 0x618a91
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x10c]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x618ac3
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x104]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
movsx edx, bx
mov eax, dword [esp + 0x100]
push eax
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x118]
fadd qword [esp + 0x120]
fst qword [esp + 0x118]
inc esi
mov edx, dword [ebp + 0x6c]
add edx, 0x10
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
fcompp
fnstsw ax
sahf
jae 0x618a08
mov ebx, dword [esp + 0xf4]
mov eax, dword [esp + 0xfc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xf8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x24], edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x14], eax
push dword [esp + 0x140]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add esp, 0x128
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x98]
inc eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x88], 1
jmp 0x618662
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x7c]
inc eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x84], 1
jmp 0x6185c6
fstp st(1)
fstp st(0)
jmp 0x6188c0
fstp st(1)
fstp st(0)
jmp 0x618b12
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x124
call fcn.00696350
mov ecx, dword [esp + 0x124]
mov ebp, ecx
mov esi, dword [0x6ff828]
mov edx, dword [esi + 0xc]
mov dword [esp + 0xa4], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0xa8], eax
mov ecx, dword [esi + 0x18]
add ecx, edx
mov dword [esp + 0xac], ecx
movsx ebx, word [0x6ff760]
mov dword [esp + 0xb0], ebx
movzx esi, byte [esi + 0x58]
test esi, 0x20
je 0x618c20
dec ebx
mov dword [esp + 0xb0], ebx
xor esi, esi
sub ecx, edx
sub ebx, eax
push ebp
push dword [esp + 0x140]
push esi
push dword [0x6ff858]
push ebx
push ecx
push eax
push edx
push 0x50300000
push esi
push str.PreviewClass
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 8], eax
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 4], 0x6c
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebp + 0x18]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
mov esi, eax
lea eax, [esp]
push eax
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0xb8], edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xb4]
mov dword [ebp + 0x44], eax
mov edx, dword [esp + 0xb8]
mov dword [ebp + 0x48], edx
mov ecx, dword [esp + 0xbc]
sub ecx, eax
mov dword [ebp + 0x4c], ecx
mov eax, dword [esp + 0xc0]
sub eax, edx
mov dword [esp + 0x10c], eax
mov dword [ebp + 0x50], eax
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0x10c]
cdq
mov eax, dword [esp + 0x10c]
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x10c], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x108], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0xb4]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [esp + 0xb4]
push eax
push esi
push edi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
push esi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1c], edi
mov eax, dword [ebp + 0x4c]
add eax, 4
mov dword [ebp + 0x68], eax
mov edx, 0x10
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x70], edx
mov ecx, dword [ebp + 0x50]
add ecx, 4
mov dword [ebp + 0x6c], ecx
lea esi, [esp + 0xa4]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xa4]
mov dword [ebp + 0x54], ecx
mov eax, dword [esp + 0xa8]
mov dword [ebp + 0x58], eax
mov edx, dword [esp + 0xb0]
sub edx, eax
sub edx, dword [ebp + 0x64]
mov dword [ebp + 0x60], edx
mov esi, dword [esp + 0xac]
sub esi, ecx
sub esi, dword [ebp + 0x70]
mov dword [ebp + 0x5c], esi
mov edi, 1
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x78], edi
mov dword [ebp + 0x7c], edi
mov dword [ebp + 0x80], edi
mov eax, dword [0x6d9e70]
mov dword [esp + 0xc4], eax
mov eax, dword [0x6d9e74]
mov dword [esp + 0xc8], eax
mov eax, dword [0x6d9e78]
mov dword [esp + 0xcc], eax
mov eax, dword [0x6d9e7c]
mov dword [esp + 0xd0], eax
push 0x7dffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp + 0x28], eax
xor eax, eax
push 0x808080
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp + 0xc], eax
xor eax, eax
push 0x8000ff
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x38], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xcc]
sub ecx, dword [esp + 0xc4]
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x2c], eax
push eax
push dword [ebp + 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x3c], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0x64]
inc ecx
mov dword [esp + 0xd0], ecx
mov esi, dword [esp + 0xcc]
sub esi, dword [esp + 0xc4]
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov edi, dword [esp + 0xc8]
sub ecx, edi
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x30], eax
push eax
push dword [ebp + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x40], eax
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0x70]
inc ecx
mov dword [esp + 0xcc], ecx
mov esi, dword [esp + 0xc4]
sub ecx, esi
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
cdq
xor eax, edx
sub eax, edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp + 0x34], eax
push eax
push dword [ebp + 0x40]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], 0x1c
mov dword [esp + 0x70], 0xf
mov esi, dword [ebp + 0x4c]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 3
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x78], edx
mov ecx, 1
mov dword [esp + 0x74], ecx
mov edi, dword [ebp + 0x5c]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 3
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
lea eax, [esp + 0x6c]
push ecx
push eax
push edx
push ebx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x5c]
test eax, eax
jg 0x619627
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebp + 0x84], 0
mov dword [esp + 0x88], 0x1c
mov dword [esp + 0x8c], 0xf
mov esi, dword [ebp + 0x50]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 3
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x94], edx
mov ecx, 1
mov dword [esp + 0x90], ecx
mov edi, dword [ebp + 0x60]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 3
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x98], edx
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x88]
push ecx
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, dword [ebp + 0x50]
sub eax, dword [ebp + 0x60]
test eax, eax
jg 0x619603
push 0
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowScrollBar]
mov dword [ebp + 0x88], 0
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov esi, dword [ebp + 0x68]
add esi, dword [ebp + 0x70]
mov dword [esp + 0xdc], esi
mov ecx, dword [ebp + 0x64]
inc ecx
mov dword [esp + 0xe0], ecx
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xd4]
push dword [ebp + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0xfc], esi
mov ecx, dword [ebp + 0x64]
mov esi, ecx
shr esi, 0x1f
add esi, ecx
shr esi, 1
mov dword [esp + 0x108], esi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x100], edx
lea eax, [edx + esi]
mov dword [esp + 0x104], eax
push 0x58
push dword [ebp + 8]
mov esi, dword [esp + 0x104]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
cmp dword [ebp + 0x8c], 0
je 0x6191c8
fld qword [0x6d9e30]
fdivp st(1)
jmp 0x6191d0
fld qword [0x6d9e38]
fdivp st(1)
push dword [ebp + 0xc]
push edi
fstp qword [esp + 0x120]
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [esp + 0x118]
mov edx, eax
mov ecx, dword [ebp + 0x70]
inc ecx
mov dword [esp + 0x110], ecx
fild dword [esp + 0x110]
mov eax, dword [ebp + 0x68]
add eax, 0x10
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
fcomp st(1)
fnstsw ax
sahf
jb 0x619642
xor eax, eax
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf4], ebx
fstp qword [esp + 0x120]
fstp qword [esp + 0x118]
mov esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
neg edx
add edx, esi
jne 0x619290
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x104]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x6192f7
cmp edx, 5
jne 0x6192c7
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x108]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x6192f7
fld qword [esp + 0x120]
call fcn.006a6fc0
mov edx, dword [ebp + 0x64]
mov ebx, edx
sub ebx, dword [esp + 0x100]
movsx eax, ax
movsx ecx, dx
push 0
push ecx
push eax
push edi
mov dword [esp + 0x11c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x10c]
movsx edx, bx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x120]
fadd qword [esp + 0x118]
fst qword [esp + 0x120]
inc esi
mov edx, dword [ebp + 0x68]
add edx, 0x10
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
fcompp
fnstsw ax
sahf
jae 0x619242
mov edx, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf4]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x20], edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov esi, dword [ebp + 0x70]
inc esi
mov dword [esp + 0xec], esi
mov ecx, dword [ebp + 0x64]
add ecx, dword [ebp + 0x6c]
mov dword [esp + 0xf0], ecx
mov eax, esi
cdq
xor esi, edx
sub esi, edx
mov eax, ecx
cdq
xor ecx, edx
sub ecx, edx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0xfc], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xe4]
push dword [ebp + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp + 0x70]
mov esi, ecx
shr esi, 0x1f
add esi, ecx
shr esi, 1
mov dword [esp + 0x10c], esi
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x104], edx
lea eax, [edx + esi]
mov dword [esp + 0x108], eax
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x110], eax
fild dword [esp + 0x110]
cmp dword [ebp + 0x8c], 0
je 0x61942d
fld qword [0x6d9e30]
fdivp st(1)
jmp 0x619435
fld qword [0x6d9e38]
fdivp st(1)
push dword [ebp + 0xc]
push edi
fstp qword [esp + 0x128]
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [esp + 0x120]
mov dword [esp + 0xf8], eax
mov edx, dword [ebp + 0x64]
inc edx
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
mov ecx, dword [ebp + 0x6c]
add ecx, 0x10
mov dword [esp + 0x110], ecx
fild dword [esp + 0x110]
fcomp st(1)
fnstsw ax
sahf
jb 0x61964b
xor esi, esi
mov dword [esp + 0xf4], ebx
fstp qword [esp + 0x118]
fstp qword [esp + 0x120]
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, esi
sar ecx, 0x1f
sub edx, ecx
lea eax, [edx + edx*4]
add eax, eax
neg eax
add eax, esi
jne 0x6194ec
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x108]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x619557
cmp eax, 5
jne 0x619525
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x10c]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x619557
mov ebx, dword [ebp + 0x70]
lea edx, [ebx - 1]
fld qword [esp + 0x118]
call fcn.006a6fc0
sub ebx, dword [esp + 0x104]
dec ebx
movsx edx, dx
movsx ecx, ax
mov dword [esp + 0x100], ecx
push 0
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
movsx edx, bx
mov eax, dword [esp + 0x100]
push eax
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x118]
fadd qword [esp + 0x120]
fst qword [esp + 0x118]
inc esi
mov edx, dword [ebp + 0x6c]
add edx, 0x10
mov dword [esp + 0x110], edx
fild dword [esp + 0x110]
fcompp
fnstsw ax
sahf
jae 0x61949c
mov ebx, dword [esp + 0xf4]
mov eax, dword [esp + 0xfc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xf8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x24], edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x14], eax
push dword [esp + 0x140]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add esp, 0x128
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x98]
inc eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x88], 1
jmp 0x6190f6
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x7c]
inc eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x84], 1
jmp 0x61905a
fstp st(1)
fstp st(0)
jmp 0x619354
fstp st(1)
fstp st(0)
jmp 0x6195a6