Function at 0x496b20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 0
je 0x497a41
cmp dword [esi], 0
jne 0x496b7b
cmp dword [esi + 4], 0
jne 0x496b7b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591d7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.00496860
add esp, 0xc
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1c], eax
je 0x496c06
cmp dword [edi + 0xc], 0
je 0x496c06
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x496c06
push ecx
call dword [sym.imp.GDI32.dll_UnrealizeObject]
push 0
push dword [edi + 0x24]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
call ebx
mov dword [edi + 0x20], 1
mov edi, dword [ebp - 0x18]
push edi
mov edi, dword [sym.imp.GDI32.dll_RealizePalette]
call edi
mov eax, dword [ebp - 0x20]
push dword [eax + 0x24]
mov dword [eax + 0x20], 0
call dword [sym.imp.GDI32.dll_UnrealizeObject]
mov eax, dword [ebp - 0x20]
push 0
push dword [eax + 0x24]
push dword [ebp - 0x1c]
call ebx
push dword [ebp - 0x1c]
call edi
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
cmp dword [esi + 4], 0
je 0x496c7e
push 8
push ebx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [esi + 0x14]
cdq
mov ecx, eax
mov eax, dword [esi + 0xc]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, dword [esi + 0x10]
cdq
push 0
push ecx
mov ecx, eax
mov eax, dword [esi + 8]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
push dword [esi + 0x28]
push dword [esi + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
jmp 0x496c87
push dword [esi]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00497df0
add esp, 8
test eax, eax
jne 0x496ca5
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00497d70
add esp, 8
cmp dword [ebp - 0x24], 3
jne 0x496d8f
cmp dword [ebp - 0x2c], 0
je 0x496d8f
cmp dword [esi + 0x18], 0
jne 0x496d8f
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov edi, eax
push ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x28]
mov eax, dword [ebp - 8]
mov edi, dword [esi + 0x24]
push 0xcc0020
push 0
sub eax, ecx
push 0
push dword [ebp - 0x1c]
cdq
sub eax, edx
push ecx
sar eax, 1
push edi
push eax
mov eax, dword [ebp - 0xc]
sub eax, edi
mov edi, dword [ebp - 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [esi], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x18], 1
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, edi
mov dword [ebp - 0x1c], ebx
jmp 0x496d92
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
test eax, 0x100000
je 0x496dc4
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x186a0
push dword [esi + 0x40]
push dword [esi + 0x24]
call edi
push 0x186a0
push dword [esi + 0x44]
mov dword [ebp - 0x38], eax
push dword [esi + 0x28]
call edi
mov edx, dword [ebp - 0x38]
jmp 0x496ddc
test eax, 0x200000
je 0x496dd3
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
jmp 0x496dd9
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x38], edx
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edi
cmp edx, edi
jne 0x496df2
mov byte [ebp - 0x2d], 1
cmp eax, dword [esi + 0x28]
je 0x496df6
mov byte [ebp - 0x2d], 0
mov ecx, dword [ebp - 0x24]
dec ecx
cmp ecx, 0xa
ja case.0x496e03.10
jmp dword [ecx*4 + 0x497a58]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 1
push 1
push dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x38]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [ebp - 0x2d], 0
push 0xcc0020
je 0x496e81
push 0
push 0
push ebx
push dword [esi + 0x28]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x18]
call ebx
jmp 0x496ea5
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
je 0x496ec5
cmp dword [eax + 0xc], 0
je 0x496ec5
cmp dword [eax + 0x24], 0
je 0x496ec5
mov eax, dword [esi + 0x30]
or eax, 0x2000000
push eax
jmp 0x496ec8
push dword [esi + 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp byte [ebp - 0x2d], 0
push 0xcc0020
je 0x496ef4
push 0
push 0
push dword [ebp - 0x18]
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x2c]
call ebx
jmp 0x496f12
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x18]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp byte [ebp - 0x2d], 0
push 0x8800c6
je 0x496f4e
push 0
push 0
push dword [ebp - 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x18]
call ebx
jmp 0x496f6c
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x2c]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp byte [ebp - 0x2d], 0
push 0x8800c6
je 0x496fbf
push 0
push 0
push dword [ebp - 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call ebx
push 0xee0086
push 0
push 0
push dword [ebp - 0x18]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call ebx
jmp 0x496ffb
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x38]
mov ebx, dword [sym.imp.GDI32.dll_StretchBlt]
push eax
push esi
push 0
push 0
push dword [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call ebx
mov eax, dword [ebp - 0x40]
push 0xee0086
push eax
push esi
push 0
push 0
push dword [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call ebx
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x3c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push dword [ebp - 0x34]
call ebx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0xff00ff
jmp 0x497a2e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [esi + 0x24]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
inc eax
test eax, eax
jle 0x4979eb
mov eax, dword [ebp - 8]
cdq
idiv dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
inc eax
test eax, eax
jle 0x4970c9
cmp dword [ebp - 0x2c], 0
mov eax, dword [esi + 0x28]
je 0x497090
mov ecx, dword [esi + 0x24]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1c]
push eax
imul eax, ebx
push ecx
imul ecx, dword [ebp - 0x24]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4970b6
imul eax, ebx
mov ebx, dword [ebp - 0x18]
push 0
push eax
mov eax, dword [esi + 0x24]
imul eax, ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_PlayMetaFile]
mov edi, ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
cdq
idiv dword [esi + 0x28]
mov ecx, dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x28], ebx
inc eax
cmp ebx, eax
jl 0x497064
mov eax, dword [ebp - 0xc]
cdq
idiv dword [esi + 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
inc eax
cmp ecx, eax
jl 0x497053
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
je 0x497a24
mov eax, dword [esi + 0x24]
cmp edx, eax
jne 0x4979f3
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0x40], ecx
jne 0x4979f3
push 0xcc0020
push 0
push 0
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x497a2e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x18]
je 0x497165
push 0xcc0020
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x497a2e
push 0
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
jmp 0x497a24
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x18]
je 0x497165
push 0xcc0020
push 0
push 0
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x497a2e
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x18]
je 0x497a24
push edi
mov dword [esi + 0x18], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 8
push 8
mov ebx, eax
push edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x42
push 8
push 8
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0049ac9f
mov ecx, 1
add esp, 4
mov dword [ebp - 0x28], ecx
jmp 0x497230
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea ebx, [edx + 3]
test ebx, ebx
jle 0x497281
mov esi, dword [ebp - 0x24]
call fcn.0049ac7c
and eax, 0x8000003f
jns 0x497255
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, eax
push 0xffffff
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x497269
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
push ecx
sar eax, 3
push eax
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
dec ebx
jne 0x497244
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xca0749
push 0
push 0
push dword [ebp - 0x1c]
mov edi, eax
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, 0x14
jl 0x497230
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x20]
call ebx
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x497a2e
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
mov dword [esi + 0x18], 1
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, 0x66666667
imul dword [esi + 0x28]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x28]
cdq
sub eax, edx
mov edi, eax
mov ecx, dword [ebp - 0x28]
mov eax, 0x66666667
imul dword [esi + 0x24]
mov eax, dword [esi + 0x24]
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul ebx, dword [ebp - 0x24]
cdq
sar edi, 1
add ecx, edi
add ecx, dword [ebp - 0x10]
sub eax, edx
push ecx
sar eax, 1
mov dword [ebp - 0x3c], edi
lea ecx, [eax + ebx]
add ecx, dword [ebp - 0x14]
sub eax, ebx
add eax, dword [ebp - 0x14]
push ecx
mov ecx, edi
sub ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, dword [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], eax
je 0x4973d0
mov ebx, dword [ebp - 0x1c]
push 0xcc0020
push 0
push 0
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4973dd
push dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4973f5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x19
jb 0x4973f8
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x14
jl 0x497325
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
je 0x49744c
push 0xcc0020
push 0
push 0
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x38]
jmp 0x4970e6
push dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
jmp 0x497a24
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
mov edi, 1
mov dword [esi + 0x18], 1
mov dword [ebp - 0x24], edi
jmp 0x497479
mov edi, dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x28]
mov eax, 0x66666667
imul dword [esi + 0x24]
mov eax, dword [esi + 0x24]
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul ebx, edi
mov edi, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
add ecx, edi
push ecx
lea ecx, [eax + ebx]
add ecx, dword [ebp - 0x14]
sub eax, ebx
add eax, dword [ebp - 0x14]
push ecx
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, dword [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], eax
je 0x4974f5
mov ebx, dword [ebp - 0x1c]
push 0xcc0020
push 0
push 0
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x497502
push dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x49751a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x28]
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x19
jb 0x497520
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x14
jl 0x497476
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
je 0x497a24
push 0xcc0020
push 0
push 0
push ebx
jmp 0x4972f5
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
cmp dword [ebp - 0x2c], 0
je 0x497a21
mov eax, edi
cdq
and edx, 3
add eax, edx
mov ecx, edi
sar eax, 2
mov dword [esi + 0x18], 1
and ecx, 0x80000003
jns 0x497597
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x4975c2
mov ecx, eax
and ecx, 0x80000001
jns 0x4975a8
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4975b6
lea ebx, [eax*4]
mov dword [ebp - 0x20], ebx
jmp 0x4975de
lea ebx, [eax*4 - 4]
mov dword [ebp - 0x20], ebx
jmp 0x4975de
and eax, 0x80000001
jns 0x4975ce
dec eax
or eax, 0xfffffffe
inc eax
je 0x4975d8
lea ebx, [edi - 8]
mov dword [ebp - 0x20], ebx
jmp 0x4975de
lea eax, [edi - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x18]
add eax, 0xf
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
jg 0x497608
cmp ecx, ebx
jge 0x497a2e
mov eax, dword [ebp - 0x14]
push 0xcc0020
push 0
push ecx
push dword [ebp - 0x1c]
add eax, ecx
push dword [esi + 0x28]
push 4
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x497a2e
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push 0xcc0020
push 0
push ecx
push dword [ebp - 0x1c]
add eax, ecx
push dword [esi + 0x28]
push 4
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x497a2e
add dword [ebp - 0x24], 8
sub dword [ebp - 0x20], 8
mov ebx, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x497666
add ebx, 0xf
mov dword [ebp - 0x28], ebx
jmp 0x4975f4
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
cmp dword [ebp - 0x2c], 0
je 0x497a21
mov edi, dword [esi + 0x28]
mov eax, edi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 0x18], 1
mov dword [ebp - 0x3c], edi
and ecx, 0x80000001
jns 0x4976b2
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4976d9
mov ecx, eax
and ecx, 0x80000001
jns 0x4976c3
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4976cd
lea edi, [eax + eax]
mov dword [ebp - 0x20], edi
jmp 0x4976f5
lea edi, [eax*2 - 2]
mov dword [ebp - 0x20], edi
jmp 0x4976f5
and eax, 0x80000001
jns 0x4976e5
dec eax
or eax, 0xfffffffe
inc eax
je 0x4976ef
add edi, 0xfffffffc
mov dword [ebp - 0x20], edi
jmp 0x4976f5
lea eax, [edi - 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x18]
add eax, 0xf
mov dword [ebp - 0x34], eax
jmp 0x497710
cmp dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x24]
jg 0x497722
cmp ecx, dword [ebp - 0x3c]
jge 0x497a2e
mov eax, dword [ebp - 0x10]
push 0xcc0020
push ecx
push 0
push ebx
push 2
push dword [esi + 0x24]
add eax, ecx
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x497a2e
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push 0xcc0020
push ecx
push 0
push ebx
push 2
push dword [esi + 0x24]
add eax, ecx
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x497a2e
add dword [ebp - 0x24], 4
sub dword [ebp - 0x20], 4
mov ebx, dword [ebp - 0x34]
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x497780
add ebx, 0xf
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x497710
cmp dword [esi + 0x18], 0
jne case.0x496e03.10
cmp dword [ebp - 0x2c], 0
je 0x497a21
xor edx, edx
cmp edi, dword [esi + 0x28]
mov dword [esi + 0x18], 1
cmovg edi, dword [esi + 0x28]
mov eax, edi
mov dword [ebp - 0x20], edx
and eax, 0x80000001
jns 0x4977cd
dec eax
or eax, 0xfffffffe
inc eax
je 0x4977d3
sar edi, 1
jmp 0x4977d6
sar edi, 1
inc edi
xor ecx, ecx
test edi, edi
js 0x4977e2
lea ecx, [edi + 2]
and ecx, 0xfffffffe
lea eax, [edi + 2]
cmp ecx, eax
jne 0x4977ea
inc edi
mov dword [ebp - 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xf
mov dword [ebp - 0x3c], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
cmp ecx, edx
jg 0x4970dd
xor eax, eax
cmp ecx, edx
jg 0x4978f2
mov edx, dword [esi + 0x24]
push 0xcc0020
push ecx
lea eax, [ecx + ecx]
sub edx, eax
push ecx
push ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x28]
sub edx, eax
mov eax, dword [ebp - 0x10]
push 1
push dword [ebp - 0x24]
add eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
push ebx
mov dword [ebp - 0x28], edx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push 0xcc0020
push ecx
push ecx
push dword [ebp - 0x1c]
add eax, ecx
push dword [ebp - 0x28]
push 1
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push 0xcc0020
add ecx, edx
push ecx
push edx
push dword [ebp - 0x1c]
inc eax
push 1
push eax
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0xcc0020
push edx
add ecx, edx
push ecx
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x10]
push 1
add eax, edx
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov eax, 1
jmp 0x4978f5
mov ebx, dword [ebp - 0x18]
test edi, edi
js 0x4979bc
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
push 0xcc0020
push edi
push edi
push dword [ebp - 0x1c]
lea eax, [edi + edi]
sub edx, eax
sub ecx, eax
mov eax, dword [ebp - 0x10]
push 1
push edx
add eax, edi
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
push ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov eax, dword [ebp - 0x10]
push 0xcc0020
push edi
push edi
push dword [ebp - 0x1c]
add eax, edi
push dword [ebp - 0x28]
push 1
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push 0xcc0020
add ecx, edi
push ecx
push edi
push dword [ebp - 0x1c]
inc eax
push 1
push eax
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
push 0xcc0020
push edi
add ecx, edi
push ecx
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x10]
push 1
add eax, edi
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4970dd
add dword [ebp - 0x20], 2
mov esi, dword [ebp - 0x3c]
sub edi, 2
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x4979d0
mov ebx, dword [ebp - 0x1c]
add esi, 0xf
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x44]
jmp 0x497800
mov edx, dword [ebp - 0x38]
jmp 0x4970e3
push 4
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push 0
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x497a2e
mov edi, dword [ebp - 0x18]
push dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004591d7
mov esp, ebp
pop ebp
ret