Function at 0x496981
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
test eax, 0xfffffffc
je 0x496c60
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xc]
movdqu xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
sar esi, 2
imul ecx, esi, 0x96
lea eax, [edx - 0x19f]
cmp ecx, eax
jge 0x496b58
xor ecx, ecx
mov dword [esp + 0x14], ecx
test esi, esi
jle 0x496c60
mov esi, 0x181
mov dword [esp + 0x18], esi
mov eax, dword [ebx]
mov edi, ecx
shl edi, 2
push 0
push 0xa
push 1
mov eax, dword [edi + eax]
mov dword [esp + 0x28], edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0041a943
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x496b4e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
and dword [esp + 0x6c], 0
mov eax, dword [ebx]
mov eax, dword [edi + eax]
push dword [eax + 0x94]
lea eax, [esp + 0x14]
push str._nbuttonshow:_d_n
push eax
call fcn.00425bef
mov ebx, dword [esp + 0x1c]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0041e77e
mov eax, dword [eax + 0x38]
cmp byte [eax + 0x10], 0
lea eax, [esi - 0x96]
jne 0x496ab6
mov dword [esp + 0x20], eax
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
lea esi, [esp + 0x30]
mov dword [esp + 0x34], 9
mov dword [esp + 0x3c], 0x28
mov ecx, dword [eax]
mov eax, edi
mov ecx, dword [eax + ecx]
jmp 0x496b06
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], 9
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x28
mov eax, dword [eax]
add eax, edi
mov dword [esp + 0x1c], eax
call fcn.0041e77e
sub esp, 0x10
lea esi, [esp + 0x40]
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00476edb
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.0045722d
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov ecx, dword [ecx]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049801e
or dword [esp + 0x6c], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.00421a41
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc ecx
add esi, 0x99
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [esp + 0x18], esi
cmp ecx, eax
jl 0x496a0a
jmp 0x496c60
push 0x80004005
call fcn.0041a36c
lea eax, [edx - 0x19f]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ecx
div esi
mov edi, eax
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x496c60
mov esi, 0xeb
mov dword [esp + 0x10], esi
mov eax, dword [ebx]
shl ecx, 2
push 0
push 0xa
push 1
mov eax, dword [ecx + eax]
mov dword [esp + 0x24], ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0041e77e
mov eax, dword [eax + 0x38]
cmp byte [eax + 0x10], 0
lea eax, [esi - 3]
jne 0x496be2
mov ecx, dword [ebx]
add eax, edi
sub esp, 0x10
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
lea esi, [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edi, esp
mov dword [esp + 0x44], 9
mov dword [esp + 0x4c], 0x27
mov ecx, dword [eax + ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049801e
jmp 0x496c39
mov ebx, dword [ebx]
add eax, edi
add ebx, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 9
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x27
call fcn.0041e77e
sub esp, 0x10
lea esi, [esp + 0x30]
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00476edb
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.0045722d
mov ecx, dword [ebx]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049801e
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
sub eax, dword [ebx]
inc ecx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add esi, edi
sar eax, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
cmp ecx, eax
jl 0x496b7f
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret