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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x484db8]
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 0x45c501
cmp dword [esi], 0
jne 0x45b63b
cmp dword [esi + 4], 0
jne 0x45b63b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e056
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.0045b320
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 0x45b6c6
cmp dword [edi + 0xc], 0
je 0x45b6c6
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x45b6c6
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 0x45b73e
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 0x45b747
push dword [esi]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.0045c8b0
add esp, 8
test eax, eax
jne 0x45b765
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.0045c830
add esp, 8
cmp dword [ebp - 0x24], 3
jne 0x45b84f
cmp dword [ebp - 0x2c], 0
je 0x45b84f
cmp dword [esi + 0x18], 0
jne 0x45b84f
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 0x45b852
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
test eax, 0x100000
je 0x45b884
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 0x45b89c
test eax, 0x200000
je 0x45b893
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
jmp 0x45b899
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 0x45b8b2
mov byte [ebp - 0x2d], 1
cmp eax, dword [esi + 0x28]
je 0x45b8b6
mov byte [ebp - 0x2d], 0
mov ecx, dword [ebp - 0x24]
dec ecx
cmp ecx, 0xa
ja case.0x45b8c3.10
jmp dword [ecx*4 + 0x45c518]
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 0x45b941
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 0x45b965
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 0x45b985
cmp dword [eax + 0xc], 0
je 0x45b985
cmp dword [eax + 0x24], 0
je 0x45b985
mov eax, dword [esi + 0x30]
or eax, 0x2000000
push eax
jmp 0x45b988
push dword [esi + 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp byte [ebp - 0x2d], 0
push 0xcc0020
je 0x45b9b4
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 0x45b9d2
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 0x45ba0e
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 0x45ba2c
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 0x45ba7f
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 0x45babb
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 0x45c4ee
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 0x45c4ab
mov eax, dword [ebp - 8]
cdq
idiv dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
inc eax
test eax, eax
jle 0x45bb89
cmp dword [ebp - 0x2c], 0
mov eax, dword [esi + 0x28]
je 0x45bb50
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 0x45bb76
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 0x45bb24
mov eax, dword [ebp - 0xc]
cdq
idiv dword [esi + 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
inc eax
cmp ecx, eax
jl 0x45bb13
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
je 0x45c4e4
mov eax, dword [esi + 0x24]
cmp edx, eax
jne 0x45c4b3
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0x40], ecx
jne 0x45c4b3
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 0x45c4ee
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 0x45bc25
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 0x45c4ee
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 0x45c4e4
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 0x45bc25
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 0x45c4ee
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.10
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x18]
je 0x45c4e4
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.0045eeae
mov ecx, 1
add esp, 4
mov dword [ebp - 0x28], ecx
jmp 0x45bcf0
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea ebx, [edx + 3]
test ebx, ebx
jle 0x45bd41
mov esi, dword [ebp - 0x24]
call fcn.0045ee8b
and eax, 0x8000003f
jns 0x45bd15
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, eax
push 0xffffff
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x45bd29
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 0x45bd04
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 0x45bcf0
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 0x45c4ee
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.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 0x45be90
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 0x45be9d
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 0x45beb5
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 0x45beb8
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x14
jl 0x45bde5
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
je 0x45bf0c
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 0x45bba6
push dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
jmp 0x45c4e4
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.10
mov edi, 1
mov dword [esi + 0x18], 1
mov dword [ebp - 0x24], edi
jmp 0x45bf39
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 0x45bfb5
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 0x45bfc2
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 0x45bfda
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 0x45bfe0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x14
jl 0x45bf36
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [ebp - 0x2c], 0
je 0x45c4e4
push 0xcc0020
push 0
push 0
push ebx
jmp 0x45bdb5
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.10
cmp dword [ebp - 0x2c], 0
je 0x45c4e1
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 0x45c057
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x45c082
mov ecx, eax
and ecx, 0x80000001
jns 0x45c068
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x45c076
lea ebx, [eax*4]
mov dword [ebp - 0x20], ebx
jmp 0x45c09e
lea ebx, [eax*4 - 4]
mov dword [ebp - 0x20], ebx
jmp 0x45c09e
and eax, 0x80000001
jns 0x45c08e
dec eax
or eax, 0xfffffffe
inc eax
je 0x45c098
lea ebx, [edi - 8]
mov dword [ebp - 0x20], ebx
jmp 0x45c09e
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 0x45c0c8
cmp ecx, ebx
jge 0x45c4ee
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 0x45c4ee
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 0x45c4ee
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 0x45c126
add ebx, 0xf
mov dword [ebp - 0x28], ebx
jmp 0x45c0b4
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.10
cmp dword [ebp - 0x2c], 0
je 0x45c4e1
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 0x45c172
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x45c199
mov ecx, eax
and ecx, 0x80000001
jns 0x45c183
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x45c18d
lea edi, [eax + eax]
mov dword [ebp - 0x20], edi
jmp 0x45c1b5
lea edi, [eax*2 - 2]
mov dword [ebp - 0x20], edi
jmp 0x45c1b5
and eax, 0x80000001
jns 0x45c1a5
dec eax
or eax, 0xfffffffe
inc eax
je 0x45c1af
add edi, 0xfffffffc
mov dword [ebp - 0x20], edi
jmp 0x45c1b5
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 0x45c1d0
cmp dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x24]
jg 0x45c1e2
cmp ecx, dword [ebp - 0x3c]
jge 0x45c4ee
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 0x45c4ee
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 0x45c4ee
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 0x45c240
add ebx, 0xf
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x45c1d0
cmp dword [esi + 0x18], 0
jne case.0x45b8c3.10
cmp dword [ebp - 0x2c], 0
je 0x45c4e1
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 0x45c28d
dec eax
or eax, 0xfffffffe
inc eax
je 0x45c293
sar edi, 1
jmp 0x45c296
sar edi, 1
inc edi
xor ecx, ecx
test edi, edi
js 0x45c2a2
lea ecx, [edi + 2]
and ecx, 0xfffffffe
lea eax, [edi + 2]
cmp ecx, eax
jne 0x45c2aa
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 0x45bb9d
xor eax, eax
cmp ecx, edx
jg 0x45c3b2
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 0x45bb9d
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 0x45bb9d
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 0x45bb9d
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 0x45bb9d
mov eax, 1
jmp 0x45c3b5
mov ebx, dword [ebp - 0x18]
test edi, edi
js 0x45c47c
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 0x45bb9d
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 0x45bb9d
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 0x45bb9d
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 0x45bb9d
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 0x45c490
mov ebx, dword [ebp - 0x1c]
add esi, 0xf
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x44]
jmp 0x45c2c0
mov edx, dword [ebp - 0x38]
jmp 0x45bba3
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 0x45c4ee
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.0043e056
mov esp, ebp
pop ebp
ret