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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x1004be52
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call ebx
push dword [esi + 0xc]
mov edi, eax
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x1004bbe7
mov edx, dword [esi + 0x10]
call fcn.1004ad70
jmp 0x1004bbea
mov eax, dword [esi + 8]
push 0
mov dword [esp + 0x1c], eax
call ebx
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x18], 0
je 0x1004bc0e
mov eax, dword [esi + 0x30]
jmp 0x1004bc11
mov eax, dword [esi + 0x34]
cmp dword [ebp + 8], 0
mov dword [esp + 0x10], eax
je 0x1004bdc2
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0x28
lea eax, [esp + 0x4c]
movq qword [esp + 0x70], xmm0
movups xmmword [esp + 0x50], xmm0
push eax
push 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0x200001
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x10], 0
mov edi, eax
mov dword [esp + 0x1c], eax
jbe 0x1004bda9
nop
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1004bda9
mov eax, dword [esi + 0x10]
push 0xcc0020
push 0
push 0
push dword [esp + 0x2c]
push eax
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
sub edi, dword [esp + 0x1c]
xor edx, edx
imul eax, edi, 0xf5
mov dword [esp + 0xc], 0
div dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfa
lea ecx, [eax + 0xa]
mov byte [esp + 0xe], cl
jae 0x1004bd27
shr eax, 2
mov ecx, 0x18
sub ecx, eax
mov edx, 1
movzx eax, byte [esp + 0xf]
cmovns eax, edx
xor edi, edi
test ecx, ecx
mov byte [esp + 0xf], al
push dword [esp + 0xc]
cmovns edi, ecx
mov ecx, dword [esi + 0x10]
push ecx
push ecx
push 0
push 0
push dword [esp + 0x28]
lea eax, [edi + edi]
mov edx, ecx
sub edx, eax
push edx
push edx
push edi
push edi
jmp 0x1004bd3e
push dword [esp + 0xc]
mov eax, dword [esi + 0x10]
push eax
push eax
push 0
push 0
push dword [esp + 0x28]
push eax
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
push 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 0
push eax
push ebx
lea eax, [esp + 0x40]
mov word [esp + 0x22], 0x1ff
push eax
push 0
push 0
push dword [esi + 4]
movlpd qword [esp + 0x58], xmm0
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, edi
sub ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x10]
jb 0x1004bc90
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
push 0xcc0020
push 0
push 0
push ebx
push eax
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
push 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0
push eax
push edi
lea eax, [esp + 0x40]
mov word [esp + 0x2a], 0x1ff
push eax
push 0
push 0
push dword [esi + 4]
movlpd qword [esp + 0x58], xmm0
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push ebx
call edi
cmp dword [esi + 0x18], 0
je 0x1004be52
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4