Function at 0x515c90
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x5ae6c0], 1
mov eax, esi
mov edx, dword [0x48112c]
call fcn.004037fc
test al, al
je 0x515cdf
push 0
mov dx, 4
xor eax, eax
call fcn.00407d54
push eax
push 0xa100
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x515ce1
xor ebx, ebx
test ebx, ebx
je 0x515d00
cmp dword [ebx + 0x280], 0
je 0x515d00
call fcn.0050456c
test al, al
je 0x515d00
mov byte [ebp - 0x8d], 1
jmp 0x515d07
mov byte [ebp - 0x8d], 0
call fcn.0050456c
test al, al
je 0x51666c
mov eax, esi
mov edx, dword [0x48112c]
call fcn.004037fc
test al, al
je 0x51666c
cmp dword [ebx + 0x280], 0
je 0x515d74
cmp dword [ebx + 0xe4], 0
je 0x515d51
mov eax, dword [ebx + 0xe4]
mov dword [ebp - 0xac], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
jmp 0x515d74
xor edx, edx
xor eax, eax
call fcn.0050e710
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0xc0]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.0052d170
mov eax, dword [ebx + 0xc0]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0xc0]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.0050e710
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.00429da0
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00512d7c
cmp dword [ebp - 0x1c], 0
je 0x516e10
cmp dword [ebx + 0x280], 0
jne 0x515e08
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406bec
lea edx, [ebp - 0x12c]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004a518c
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a180
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x94], 0x11b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0xa4]
xor edx, edx
xor eax, eax
call fcn.00406c08
cmp dword [ebp - 0x10], 0
jle 0x515e65
mov byte [ebp - 0x52], 0
jmp 0x515e6b
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
mov eax, dword [ebx + 0x280]
test eax, eax
je 0x51636e
cmp dword [eax + 0x18], 0
jne 0x515e90
call fcn.005416b0
mov eax, dword [ebx + 0x280]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x3c], ecx
cmp dword [eax + 0x30], 0
je 0x515ecb
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x30]
push eax
push 0xfffffffffffffff8
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0x280]
call fcn.005416b0
cmp byte [ebx + 0x220], 0
je 0x515f0c
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.005327a0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x88], eax
jmp 0x515fe4
mov eax, dword [ebx + 0xc0]
call fcn.00520478
mov edi, dword [eax + 0x7888]
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x515f95
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x34]
je 0x515f95
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
xor ecx, ecx
mov edx, dword [ebx + 0x280]
call fcn.00525f24
push eax
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.005327a0
mov eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebx + 0x280]
call fcn.00526004
pop edx
add edx, eax
push edx
mov eax, dword [ebx + 0x264]
call fcn.00525f8c
pop edx
sub edx, eax
pop eax
sub edx, eax
add edx, dword [edi + 0x34]
sub edx, dword [edi + 0x38]
mov dword [ebp - 0x88], edx
jmp 0x515fe4
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
xor ecx, ecx
mov edx, dword [ebx + 0x280]
call fcn.00525f24
push eax
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.005327a0
mov edi, dword [ebp - 0x128]
mov eax, dword [ebx + 0x280]
call fcn.00526004
add edi, eax
mov eax, dword [ebx + 0x264]
call fcn.00525f8c
sub edi, eax
pop eax
sub edi, eax
mov dword [ebp - 0x88], edi
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
xor ecx, ecx
mov edx, dword [ebx + 0x280]
call fcn.00525f24
push eax
mov eax, dword [ebx + 0x280]
call fcn.00526024
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.005327a0
add edi, dword [ebp - 0x12c]
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0xe4]
push eax
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.0046a908
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0x88]
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.0046a92c
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x9c]
call fcn.0046a954
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x98]
call fcn.0046a978
push 3
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xe0]
sub eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0x8c]
push eax
push edi
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x70], eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call dword [0x5b1250]
push 4
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
call fcn.0050e710
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406bec
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042ea4c
call fcn.0042a2ac
xor ecx, ecx
pop edx
call fcn.005091cc
cmp dword [ebp - 0x10], 0
jle 0x51627e
push ebp
call fcn.00515944
pop ecx
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jg 0x516278
call sub.kernel32.dll_GetTickCount
mov edi, eax
push ebp
call fcn.00515a78
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call dword [0x5b1250]
push 0
xor eax, eax
mov al, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea edx, [edx + edx*2]
xor eax, eax
call fcn.00430d50
mov edx, eax
mov eax, 0xff
call fcn.00430c8c
push eax
mov eax, dword [ebp - 0xa8]
call fcn.00471b0c
mov edx, dword [ebp - 0xac]
pop ecx
call fcn.00524dc8
push ebp
call fcn.00515c34
pop ecx
inc dword [ebp - 0x74]
cmp dword [ebp - 0x10], 0
jle 0x51626c
call sub.kernel32.dll_GetTickCount
lea edx, [edi + 0xc]
cmp eax, edx
jb 0x516260
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jle 0x5161c6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x70]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x5ae6c0], 0
mov eax, dword [ebx + 0x264]
cmp byte [eax + 0x2e0], 0
je 0x5162ad
mov dl, byte [ebp - 0xc]
mov eax, dword [ebx + 0x264]
call fcn.00488b34
push 0
push 1
push 0xb
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_RedrawWindow
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x280]
call fcn.00541548
push eax
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 0x94]
or eax, 4
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xe0]
sub eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0x8c]
push eax
push 0
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x18]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowPos
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x280]
call fcn.005404a8
lea eax, [ebp - 0xac]
call fcn.00410cd0
lea eax, [ebp - 0xa8]
call fcn.00410cd0
jmp 0x516657
lea eax, [ebp - 0xe4]
push eax
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowRect
xor ecx, ecx
mov dl, 1
mov eax, dword [0x481430]
call fcn.00483efc
mov edi, eax
mov dword [0x5ae6bc], edi
mov dword [edi + 0xc], pe_nt_image_headers32
xor edx, edx
mov eax, edi
call fcn.004856c0
mov edx, dword [esi + 0x40]
mov eax, dword [0x5ae6bc]
call fcn.0046a908
mov edx, dword [esi + 0x44]
mov eax, dword [0x5ae6bc]
call fcn.0046a92c
mov edx, dword [esi + 0x48]
mov eax, dword [0x5ae6bc]
call fcn.0046a954
mov edx, dword [esi + 0x4c]
mov eax, dword [0x5ae6bc]
call fcn.0046a978
push 0xffffffffffffffec
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x516404
mov dl, 3
mov eax, dword [0x5ae6bc]
call fcn.004859bc
or edi, 0xffffffff
jmp 0x516419
push 3
mov eax, dword [ebx + 0x264]
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x94]
and eax, 0xfffffffd
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [0x5ae6bc]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x5ae6bc]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x70], eax
push 0xffffffffffffffec
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call dword [0x5b1250]
mov eax, ebx
call fcn.00526a28
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00526ec8
mov dword [ebp - 0xb0], eax
push 0
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowRgn
push 4
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
call fcn.0050e710
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406bec
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042ea4c
call fcn.0042a2ac
xor ecx, ecx
pop edx
call fcn.005091cc
cmp dword [ebp - 0x10], 0
jle 0x5165f5
push ebp
call fcn.00515944
pop ecx
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jg 0x5165ef
call sub.kernel32.dll_GetTickCount
mov edi, eax
push ebp
call fcn.00515a78
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call dword [0x5b1250]
push ebp
call fcn.00515c34
pop ecx
inc dword [ebp - 0x74]
cmp dword [ebp - 0x10], 0
jle 0x5165e7
call sub.kernel32.dll_GetTickCount
lea edx, [edi + 0xc]
cmp eax, edx
jb 0x5165db
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jle 0x51657f
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x70]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x5ae6c0], 0
mov eax, dword [ebx + 0x264]
cmp byte [eax + 0x2e0], 0
je 0x516624
mov dl, byte [ebp - 0xc]
mov eax, dword [ebx + 0x264]
call fcn.00488b34
push 0
push 1
push 0xb
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_RedrawWindow
mov eax, 0x5ae6bc
call fcn.00410cd0
lea eax, [ebp - 0x58]
call fcn.00410cd0
lea eax, [ebp - 0x1c]
call fcn.00410cd0
jmp 0x516e10
cmp dword [0x5ae6bc], 0
jne 0x51667e
xor edx, edx
mov eax, esi
call fcn.00515294
cmp dword [0x5ae6bc], 0
je 0x516e10
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.0050e710
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.00429da0
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x6c], eax
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00512d7c
cmp dword [ebp - 0x1c], 0
je 0x516e10
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a180
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.0050e710
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x8d], 0
jne 0x516756
test ebx, ebx
je 0x516756
mov eax, ebx
call fcn.00526a28
cmp dword [0x5ae6bc], 0
je 0x516e10
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00526ec8
push eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowRgn
cmp byte [ebp + 8], 2
jne 0x516916
mov eax, dword [ebp - 0x1c]
call fcn.0050e5a0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
call fcn.0050e5a0
mov dword [ebp - 0x64], eax
xor edx, edx
xor eax, eax
call fcn.0050e710
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
call fcn.0042ea4c
call fcn.0042a2ac
mov dword [ebp - 0xe8], eax
mov eax, dword [esi + 0x4c]
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [esi + 0x48]
xor edx, edx
xor eax, eax
call fcn.00406bec
push esi
lea esi, [ebp - 0x12c]
lea edi, [ebp - 0x10c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea ecx, [ebp - 0x134]
xor edx, edx
xor eax, eax
call fcn.00406c08
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x110], eax
mov byte [ebp - 0xec], 0
mov eax, dword [ebp - 0x60]
call fcn.0042ea4c
call fcn.00429da0
mov eax, esi
call fcn.00471b0c
mov edx, eax
lea eax, [ebp - 0x11c]
mov cl, 1
call fcn.00505184
mov eax, dword [ebp - 0x60]
call fcn.0042ea4c
call fcn.0042a180
lea ecx, [ebp - 0xc8]
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x60]
call fcn.00503a04
test al, al
je 0x516909
lea ecx, [ebp - 0xcc]
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x1c]
call fcn.00503a04
test al, al
je 0x516909
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x516909
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xc8]
imul dword [ebp - 0xb4]
add eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xcc]
imul dword [ebp - 0xb4]
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x5168f7
inc eax
mov dword [ebp - 0xd4], eax
xor ecx, ecx
mov eax, dword [ebp - 0xbc]
lea edx, [eax + ecx*4]
mov eax, dword [ebp - 0xc4]
lea eax, [eax + ecx*4]
mov bl, byte [edx + 2]
cmp bl, byte [eax + 2]
jne 0x5168ea
mov bl, byte [edx + 1]
cmp bl, byte [eax + 1]
jne 0x5168ea
mov dl, byte [edx]
cmp dl, byte [eax]
jne 0x5168ea
xor edx, edx
mov dword [eax], edx
jmp 0x5168ee
mov byte [eax + 3], 0xff
inc ecx
dec dword [ebp - 0xd4]
jne 0x5168bc
inc dword [ebp - 0xb4]
dec dword [ebp - 0xd0]
jne 0x516876
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x516925
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x10], 0
jle 0x516c95
mov eax, 0xff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x80], eax
mov ebx, 0xff
sub ebx, dword [ebp - 0x80]
sub ebx, 0x7f
mov dword [ebp - 0x84], 0xff
cmp byte [ebp + 8], 2
jne 0x516973
mov eax, dword [0x5ae6d0]
call fcn.0050a418
xor eax, eax
mov dword [ebp - 0x74], eax
jmp 0x516c80
call sub.kernel32.dll_GetTickCount
mov edi, eax
cmp byte [ebp + 8], 2
jne 0x516bda
mov eax, dword [0x5ae6d0]
call fcn.0050a418
cmp dword [ebp - 0x74], 0
jle 0x516afc
mov eax, dword [0x5b1270]
call fcn.00405b40
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
jle 0x516b59
mov eax, dword [ebp - 0x7c]
dec eax
test eax, eax
jl 0x516b59
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
add eax, eax
mov edx, dword [0x5b1270]
push esi
push edi
lea esi, [edx + eax*8]
lea edi, [ebp - 0xe4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x74]
add eax, eax
inc eax
push eax
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0xe4]
xor edx, edx
call fcn.0055b988
mov edx, eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea eax, [ebp - 0xe4]
xor edx, edx
call fcn.0055b99c
mov edx, eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0xcc0020
mov eax, dword [ebp - 0x78]
add eax, eax
mov edx, dword [0x5b1270]
lea eax, [edx + eax*8]
xor edx, edx
call fcn.0055b99c
push eax
mov eax, dword [ebp - 0x78]
add eax, eax
mov edx, dword [0x5b1270]
lea eax, [edx + eax*8]
xor edx, edx
call fcn.0055b988
push eax
mov eax, dword [ebp - 0x78]
add eax, eax
mov edx, dword [0x5b1270]
mov eax, dword [edx + eax*8 + 4]
push eax
mov eax, dword [ebp - 0x78]
add eax, eax
mov edx, dword [0x5b1270]
mov eax, dword [edx + eax*8]
push eax
mov eax, dword [0x5ae6d0]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x68]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
call sub.gdi32.dll_StretchBlt
lea ecx, [ebp - 0x134]
xor edx, edx
xor eax, eax
call fcn.00406c08
lea eax, [ebp - 0x134]
push eax
push ebx
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x5c]
call fcn.005156e8
inc dword [ebp - 0x78]
dec dword [ebp - 0xd0]
jne 0x5169dc
jmp 0x516b59
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x134]
xor edx, edx
xor eax, eax
call fcn.00406c08
lea eax, [ebp - 0x134]
push eax
push ebx
mov eax, dword [0x5ae6d0]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [0x5ae6d0]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406bec
lea edx, [ebp - 0x12c]
mov ecx, dword [0x5ae6d0]
mov eax, dword [ebp - 0x5c]
call fcn.005156e8
lea ecx, [ebp - 0x134]
xor edx, edx
xor eax, eax
call fcn.00406c08
lea eax, [ebp - 0x134]
push eax
mov al, 0xff
sub al, byte [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406bec
lea edx, [ebp - 0x12c]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
call fcn.005156e8
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x516c26
push 0
mov edx, dword [ebp - 0x84]
xor eax, eax
call fcn.00430d50
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x5ae6d0
lea eax, [ebp - 0x5c]
call fcn.0050e33c
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
call sub.gdi32.dll_BitBlt
cmp dword [0x5b1044], 0
je 0x516c52
push 0
mov dx, 3
xor eax, eax
call fcn.00407d54
push eax
push 0xa100
mov eax, dword [0x5b1044]
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
inc dword [ebp - 0x74]
mov edx, ebx
sub edx, dword [ebp - 0x80]
xor eax, eax
call fcn.00430d50
mov ebx, eax
mov eax, dword [ebp - 0x80]
sub dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jg 0x516c95
call sub.kernel32.dll_GetTickCount
lea edx, [edi + 0xc]
cmp eax, edx
jb 0x516c74
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x10]
jg 0x516c95
cmp dword [ebp - 0x84], 0
jge 0x51697d
cmp byte [ebp + 8], 2
je 0x516cc7
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
call sub.gdi32.dll_BitBlt
cmp dword [0x5b1044], 0
je 0x516cf3
push 0
mov dx, 3
xor eax, eax
call fcn.00407d54
push eax
push 0xa100
mov eax, dword [0x5b1044]
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
mov byte [0x5ae6c0], 0
cmp byte [esi + 0x57], 0
je 0x516d9b
push 0
push 1
push 0xb
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_SendMessageA
push 0
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
mov ecx, 0xff
mov edx, dword [ebp - 0x5c]
call fcn.00524dc8
mov eax, dword [0x5aedd0]
cmp dword [eax], 6
jl 0x516d50
push 0x585
push 0
push 0
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x48112c]
call fcn.004037fc
test al, al
je 0x516d7c
push 0xffffffffffffffec
mov eax, esi
call fcn.00471b0c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000
cmp eax, 0x80000
je 0x516d9b
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [0x5ae6bc]
call fcn.00471b0c
push eax
call sub.user32.dll_ReleaseDC
mov eax, 0x5ae6bc
call fcn.00410cd0
lea eax, [ebp - 0x5c]
call fcn.00410cd0
mov eax, 0x5ae6d0
call fcn.00410cd0
lea eax, [ebp - 0x1c]
call fcn.00410cd0
cmp dword [0x5ae6d4], 0
je 0x516de6
mov eax, 0x5ae6d4
call fcn.00410cd0
cmp dword [ebp - 0x60], 0
je 0x516df4
lea eax, [ebp - 0x60]
call fcn.00410cd0
cmp dword [ebp - 0x68], 0
je 0x516e02
lea eax, [ebp - 0x68]
call fcn.00410cd0
cmp dword [ebp - 0x64], 0
je 0x516e10
lea eax, [ebp - 0x64]
call fcn.00410cd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4