Function at 0x51b9b0
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b707
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x5e2320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1e8], edi
cmp dword [edi + 0x84], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c4], eax
je case.default.0x51d60b
lea ecx, [edi + 0x360]
mov dword [ebp - 0x1d0], 0
call fcn.00521870
mov esi, dword [ebp - 0x1bc]
test eax, eax
jle 0x51ba80
xor ecx, ecx
mov edi, edi
push ecx
lea ecx, [edi + 0x360]
mov byte [ebp - 0x1d9], 0
call fcn.00517170
lea ecx, [ebp - 0x1d9]
push ecx
push esi
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x1b8]
push dword [ebp + 8]
mov eax, dword [edx]
call eax
cmp byte [ebp - 0x1d9], 0
jne 0x51bada
inc dword [ebp - 0x1d0]
lea ecx, [edi + 0x360]
call fcn.00521870
mov ecx, dword [ebp - 0x1d0]
cmp ecx, eax
jl 0x51ba30
mov cl, byte [edi + 0x145]
mov edx, dword [ebp + 8]
test cl, cl
je 0x51bb86
mov eax, edx
sub eax, 0x83
je 0x51bb73
sub eax, 2
je 0x51bb73
dec eax
jne 0x51bb86
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x51bbc4
cmp dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1c4]
sete al
mov dword [ecx], eax
mov al, 1
jmp 0x51e107
mov ecx, dword [ebp - 0x1c4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp eax, 0x203
ja 0x51bb1f
cmp eax, 0x200
jae 0x51baff
cmp eax, 0x7b
je 0x51bb26
mov al, 1
jmp 0x51e107
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [edi + 0xf8], eax
mov al, 1
mov dword [edi + 0xf4], ecx
jmp 0x51e107
cmp eax, 0x20a
jne 0x51bb6c
mov ecx, dword [ebp - 0x1bc]
movsx eax, cx
mov dword [ebp - 0x1cc], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1cc]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x1cc]
mov dword [edi + 0xf4], eax
mov eax, dword [ebp - 0x1c8]
mov dword [edi + 0xf8], eax
mov al, 1
jmp 0x51e107
mov ecx, dword [ebp - 0x1c4]
mov al, 1
mov dword [ecx], 0
jmp 0x51e107
cmp edx, 0x111
ja 0x51d11b
jne 0x51bbc7
mov eax, dword [ebp - 0x1bc]
test eax, eax
je case.default.0x51d60b
push eax
push dword [ebp - 0x1b8]
push 0x2111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c4]
mov dword [ecx], eax
mov al, 1
jmp 0x51e107
mov edx, dword [ebp + 8]
lea eax, [edx - 5]
cmp eax, 0xfd
ja case.default.0x51d60b
movzx eax, byte [eax + 0x51e15c]
jmp dword [eax*4 + 0x51e124]
mov eax, dword [edi + 0xf4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xf4], 0
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
mov dword [ebp - 0xec], eax
test ecx, ecx
je 0x51bc63
mov dword [ebp - 0xf4], 0xa
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xf0], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x51bc8c
mov dword [ebp - 0xf4], 0xe
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xf0], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
push 1
push 0
mov ecx, edi
call fcn.0051f6f0
mov esi, dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x51bce0
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
push 0xfffffffffffffff0
push dword [edi + 0x84]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x51bcd5
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x51bce0
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xa8]
test eax, eax
je case.default.0x51d60b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 0xa8], 0
jmp case.default.0x51d60b
mov ecx, dword [ebp - 0x1c4]
mov al, 1
mov dword [ecx], 1
jmp 0x51e107
cmp dword [edi + 0xe0], 0
jne 0x51bd84
push 0x3c
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_BeginPaint]
push 0xff000000
lea eax, [ebp - 0x10c]
push eax
push dword [edi + 0x88]
call fcn.00539c90
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x51e107
lea eax, [ebp - 0x124]
xorps xmm0, xmm0
push eax
push dword [edi + 0x84]
movdqu xmmword [ebp - 0x124], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [edi + 0x145], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x30], xmm0
je 0x51be57
movdqu xmm0, xmmword [edi + 0x15c]
lea eax, [edi + 0x15c]
mov byte [edi + 0x143], 1
push eax
movdqu xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x51be26
push 0x3c
lea eax, [ebp - 0x170]
mov dword [ebp - 0x174], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x174]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x51e107
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
cmp eax, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x118]
cmovg eax, dword [ebp - 0x11c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
cmp eax, esi
movdqu xmmword [edi + 0x15c], xmm0
cmovg eax, esi
mov dword [ebp - 0x24], eax
jmp 0x51be77
push 0
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x51bb6c
mov esi, dword [ebp - 0x118]
cmp byte [edi + 0x142], 0
je 0x51be8f
push 1
mov ecx, edi
call fcn.0051fc80
mov esi, dword [ebp - 0x118]
push 1
mov ecx, edi
call fcn.0051fe10
cmp byte [edi + 0x141], 0
je 0x51c0a7
lea eax, [ebp - 0x124]
mov byte [edi + 0x141], 0
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x51c137
mov ecx, dword [edi + 0xe0]
call fcn.00523230
test al, al
je 0x51bfa2
movdqu xmm0, xmmword [ebp - 0x124]
mov eax, dword [edi + 0x8c]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x51bef9
push eax
call esi
mov eax, dword [edi + 0x90]
test eax, eax
je 0x51bf06
push eax
call esi
mov eax, dword [edi + 0x94]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x51bf19
push eax
call esi
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x51bf26
push eax
call esi
cmp byte [edi + 0x145], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x9c], 0
je 0x51bf82
mov eax, dword [edi + 0x148]
add dword [ebp - 0x20], eax
mov eax, dword [edi + 0x14c]
add dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x150]
sub dword [ebp - 0x18], eax
mov eax, dword [edi + 0x154]
sub dword [ebp - 0x14], eax
movdqu xmm0, xmmword [ebp - 0x20]
jmp 0x51bf87
movdqu xmm0, xmmword [ebp - 0x40]
mov ecx, dword [edi + 0xe0]
push 1
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x4c]
jmp 0x51c048
lea esi, [edi + 0x3a8]
mov ecx, esi
mov dword [ebp - 0x1d4], esi
call fcn.00517570
mov ecx, dword [edi + 0xe0]
push reloc.OLEAUT32.dll_VariantCopy
push 0
push 0x520f70
mov eax, dword [ecx]
call dword [eax + 0x110]
mov ecx, esi
call fcn.00521870
test eax, eax
jle 0x51c048
xor edi, edi
lea esp, [esp]
push edi
mov ecx, esi
call fcn.00517170
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x1c4], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x108]
call edx
mov esi, dword [esi]
mov ecx, dword [ebp - 0x1c4]
test al, al
jne 0x51c00f
mov eax, dword [esi + 0x40]
call eax
jmp 0x51c018
lea eax, [ebp - 0x50]
push eax
mov eax, dword [esi + 0x44]
call eax
movdqu xmm0, xmmword [eax]
push 1
sub esp, 0x10
mov ecx, esp
movdqu xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x1c4]
call dword [esi + 0x4c]
mov esi, dword [ebp - 0x1d4]
inc edi
mov ecx, esi
call fcn.00521870
cmp edi, eax
jl 0x51bfe0
mov edi, dword [ebp - 0x1e8]
cmp byte [edi + 0x140], 0
je 0x51c137
push 1
push 0
push 0
push 0
push str.windowinit
push dword [edi + 0xe0]
mov ecx, edi
mov byte [edi + 0x140], 0
call fcn.0051f260
cmp byte [edi + 0x145], 0
je 0x51c137
cmp byte [edi + 0x158], 0
je 0x51c137
mov ecx, edi
call fcn.0051b500
push 0
mov ecx, edi
call fcn.0051fe10
mov al, 1
jmp 0x51e107
cmp byte [edi + 0x145], 0
je 0x51c137
cmp byte [edi + 0x158], 0
je 0x51c137
movdqu xmm0, xmmword [ebp - 0x124]
mov ecx, dword [edi + 0x98]
movdqu xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x51c0f8
mov eax, dword [ebp - 0x11c]
sub esi, dword [ebp - 0x120]
sub eax, dword [ebp - 0x124]
imul esi, eax
shl esi, 2
push esi
push 0
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, dword [edi + 0x148]
add dword [ebp - 0x20], eax
mov eax, dword [edi + 0x14c]
add dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x150]
sub dword [ebp - 0x18], eax
mov ecx, dword [edi + 0xe0]
mov eax, dword [edi + 0x154]
sub dword [ebp - 0x14], eax
movdqu xmm0, xmmword [ebp - 0x20]
mov edx, dword [ecx]
push 1
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call dword [edx + 0x4c]
cmp byte [edi + 0x143], 0
je 0x51c1c5
cmp dword [edi + 0x94], 0
jne 0x51c1c5
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp byte [edi + 0x145], 0
mov dword [edi + 0x8c], eax
je 0x51c199
lea eax, [edi + 0x98]
push eax
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x124]
push eax
push dword [edi + 0x88]
call fcn.00539c10
add esp, 0x10
jmp 0x51c1bf
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x124]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0x94], eax
push 0x3c
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b4], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [edi + 0x143], 0
je 0x51ca90
push dword [edi + 0x94]
push dword [edi + 0x8c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x8c]
mov dword [ebp - 0x1c8], eax
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [edi + 0x145], 0
mov dword [ebp - 0x1ec], eax
je 0x51c297
cmp dword [edi + 0x2fc], 0
jne 0x51c297
mov eax, dword [ebp - 0x118]
mov esi, eax
sub esi, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cmp esi, eax
jge 0x51c297
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp edx, ecx
jge 0x51c289
lea ebx, [ebx]
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x124]
mov eax, dword [edi + 0x98]
imul ecx, esi
add ecx, edx
inc edx
mov dword [eax + ecx*4], 0
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jl 0x51c260
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x118]
inc esi
sub eax, dword [ebp - 0x2c]
cmp esi, eax
jl 0x51c256
mov ecx, dword [edi + 0xe0]
lea edx, [ebp - 0x30]
push 0
push edx
push dword [edi + 0x8c]
mov eax, dword [ecx]
call dword [eax + 0x138]
cmp byte [edi + 0x145], 0
je 0x51c531
lea ecx, [edi + 0x378]
mov dword [ebp - 0x1c4], 0
call fcn.00521870
test eax, eax
jle 0x51c531
xor ecx, ecx
lea ecx, [ecx]
push ecx
lea ecx, [edi + 0x378]
call fcn.00517170
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x51c324
push 1
push dword [ebp - 0x1c4]
lea ecx, [edi + 0x378]
call fcn.00517bb0
push 1
push dword [ebp - 0x1c4]
lea ecx, [edi + 0x384]
call fcn.00517bb0
jmp 0x51c518
inc dword [ebp - 0x1c4]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x51c518
push esi
lea eax, [ebp - 0x134]
mov ecx, edi
push eax
call fcn.0051ada0
lea eax, [ebp - 0x134]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
movdqu xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x51c518
push dword [edi + 0x8c]
mov dword [ebp - 0x1d0], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], eax
push ecx
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x134]
push ecx
push eax
call fcn.00539c10
mov edx, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
sub edx, dword [ebp - 0x134]
sub ecx, dword [ebp - 0x130]
imul edx, ecx
mov dword [ebp - 0x1e0], eax
shl edx, 2
push edx
push 0
push dword [ebp - 0x1d0]
call sub.MSVCR120.dll_memset
add esp, 0x1c
push dword [ebp - 0x1e0]
push dword [ebp - 0x1bc]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x35
push dword [ebp - 0x1bc]
mov dword [ebp - 0x1d4], eax
push 0x317
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x128]
mov ecx, edx
sub ecx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1c0], edx
test ecx, ecx
jle 0x51c4c3
mov edi, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x1b8]
lea esp, [esp]
mov eax, esi
xor edx, edx
sub eax, edi
test eax, eax
jle 0x51c4a4
lea ebx, [ebx]
imul eax, ecx
mov ecx, dword [ebp - 0x1d0]
add eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x51c487
or eax, 0xff000000
mov dword [ecx], eax
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x1b8]
mov eax, esi
inc edx
sub eax, edi
cmp edx, eax
jl 0x51c460
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x1c0], edx
jmp 0x51c4aa
mov edx, dword [ebp - 0x1c0]
mov eax, edx
inc ecx
sub eax, dword [ebp - 0x130]
mov dword [ebp - 0x1b8], ecx
cmp ecx, eax
jl 0x51c450
mov edi, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x130]
sub edx, ecx
mov eax, dword [ebp - 0x134]
sub esi, eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1bc]
push edx
push esi
push ecx
push eax
push dword [edi + 0x8c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1d4]
mov esi, dword [ebp - 0x1bc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [edi + 0x378]
call fcn.00521870
mov ecx, dword [ebp - 0x1c4]
cmp ecx, eax
jl 0x51c2e0
lea ecx, [edi + 0x36c]
xor esi, esi
call fcn.00521870
test eax, eax
jle 0x51c572
push esi
lea ecx, [edi + 0x36c]
call fcn.00517170
lea ecx, [ebp - 0x30]
push ecx
push dword [edi + 0x8c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x154]
lea ecx, [edi + 0x36c]
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51c542
push dword [ebp - 0x1ec]
push dword [edi + 0x8c]
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp byte [edi + 0x145], 0
je 0x51c9e9
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push dword [edi + 0x84]
movdqu xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x118]
mov eax, esi
sub eax, dword [ebp - 0x120]
movdqu xmm0, xmmword [ebp - 0x124]
mov edx, dword [ebp - 0x11c]
sub edx, dword [ebp - 0x124]
mov dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x148]
add eax, dword [ebp - 0x124]
movdqu xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x14c]
add dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x150]
sub dword [ebp - 0x18], eax
mov eax, dword [edi + 0x154]
sub dword [ebp - 0x14], eax
cmp dword [edi + 0x2fc], 0
mov dword [ebp - 0x1c4], edx
je 0x51c884
cmp dword [edi + 0x9c], 0
jne 0x51c68a
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea esi, [edi + 0xa0]
mov dword [edi + 0x90], eax
push esi
push dword [ebp - 0x1bc]
push dword [ebp - 0x1c4]
push dword [edi + 0x88]
call fcn.00539c10
mov dword [edi + 0x9c], eax
mov eax, dword [ebp - 0x1bc]
imul eax, dword [ebp - 0x1c4]
shl eax, 2
push eax
push 0
push dword [esi]
call sub.MSVCR120.dll_memset
add esp, 0x1c
push dword [edi + 0x9c]
push dword [edi + 0x90]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], 1
jmp 0x51c6b7
cmp byte [edi + 0x158], 0
je 0x51c70a
mov eax, dword [ebp - 0x1bc]
imul eax, edx
shl eax, 2
push eax
push 0
push dword [edi + 0xa0]
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 4], 2
movdqu xmm0, xmmword [ebp - 0x20]
lea eax, [ebp - 0xf0]
push eax
sub esp, 0x10
mov eax, esp
push dword [edi + 0x90]
movdqu xmmword [eax], xmm0
call fcn.0053f930
lea eax, [edi + 0x16c]
push eax
lea eax, [ebp - 0x20]
push eax
push eax
push edi
push dword [edi + 0x90]
call fcn.0053df60
add esp, 0x2c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.005396c0
mov esi, dword [ebp - 0x118]
mov eax, dword [edi + 0x2fc]
cmp byte [eax + 0x14], 0
je 0x51c884
mov ecx, dword [ebp - 0x2c]
mov edx, esi
sub edx, dword [ebp - 0x24]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x1e0], edx
cmp edx, eax
jge 0x51c87f
mov ecx, dword [ebp - 0x30]
mov eax, edx
imul eax, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1c0], eax
nop
cmp ecx, dword [ebp - 0x28]
jge 0x51c84f
lea edx, [eax + ecx]
shl edx, 2
mov dword [ebp - 0x1d4], edx
jmp 0x51c770
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0x98]
add ecx, edx
mov dword [ebp - 0x1ec], ecx
mov al, byte [edx + eax + 3]
movzx edi, al
mov eax, dword [ecx]
shr eax, 0x10
movzx ecx, al
mov eax, 0x80808081
imul ecx, edi
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x1ec]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx esi, al
mov eax, dword [ecx]
shr eax, 8
movzx ecx, al
mov eax, 0x80808081
imul ecx, edi
shl esi, 8
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, al
or esi, eax
mov eax, dword [ebp - 0x1ec]
shl esi, 8
movzx ecx, byte [eax]
mov eax, 0x80808081
imul ecx, edi
shl edi, 0x18
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1d4]
movzx eax, al
add edx, 4
or esi, eax
mov dword [ebp - 0x1d4], edx
mov eax, dword [ebp - 0x1ec]
add esi, edi
mov edi, dword [ebp - 0x1e8]
mov dword [eax], esi
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x1b8], eax
cmp eax, dword [ebp - 0x28]
jl 0x51c770
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1b8], ecx
add eax, dword [ebp - 0x1c4]
inc dword [ebp - 0x1e0]
mov dword [ebp - 0x1c0], eax
mov eax, esi
sub eax, edx
cmp dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1c0]
jl 0x51c750
mov edx, dword [ebp - 0x1b8]
jmp 0x51c887
mov edx, dword [ebp - 0x30]
jmp 0x51c88a
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp byte [edi + 0x334], 0
je 0x51c955
mov eax, esi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x1b8], eax
mov eax, esi
sub eax, ecx
cmp dword [ebp - 0x1b8], eax
jge 0x51c955
mov eax, dword [ebp - 0x1b8]
mov edi, eax
imul edi, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], edi
mov edi, dword [ebp - 0x1e8]
lea ecx, [ecx]
cmp edx, dword [ebp - 0x28]
jge 0x51c92c
mov eax, dword [ebp - 0x1c0]
add eax, edx
shl eax, 2
mov dword [ebp - 0x1d4], eax
mov esi, dword [edi + 0x98]
add esi, eax
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x18
test al, al
jne 0x51c905
test ecx, ecx
je 0x51c905
or ecx, 0xff000000
mov dword [esi], ecx
mov eax, dword [ebp - 0x1d4]
inc edx
add eax, 4
mov dword [ebp - 0x1d4], eax
cmp edx, dword [ebp - 0x28]
jl 0x51c8e6
mov esi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1c4]
add dword [ebp - 0x1c0], eax
mov eax, esi
sub eax, ecx
cmp dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
jl 0x51c8d0
mov al, byte [edi + 0x144]
mov byte [ebp - 0x1ce], al
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1bc]
push 2
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x1d0]
push eax
push 0
lea eax, [ebp - 0x1f4]
mov word [ebp - 0x1d0], 0
push eax
push dword [edi + 0x8c]
lea eax, [ebp - 0x1fc]
mov byte [ebp - 0x1cd], 1
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1f4], 0
push eax
push dword [edi + 0x88]
mov dword [ebp - 0x1f0], 0
push dword [edi + 0x84]
call dword [0x5fae54]
jmp 0x51ca16
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
push 0xcc0020
push edx
push ecx
push dword [edi + 0x8c]
sub eax, edx
push eax
mov eax, dword [ebp - 0x28]
sub eax, ecx
push eax
push edx
push ecx
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x8c]
call esi
cmp byte [edi + 0xdd], 0
je 0x51cac5
cmp byte [edi + 0x145], 0
jne 0x51cac5
push dword [0x5fae58]
push dword [edi + 0x88]
call esi
push 5
mov esi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x51cac5
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [edi + 0xe0]
mov esi, eax
push 0
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ecx]
push dword [edi + 0x88]
call dword [edx + 0x138]
push esi
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x1b4]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_EndPaint]
push 0
mov ecx, edi
call fcn.0051fe10
cmp byte [edi + 0x141], 0
mov byte [edi + 0x158], 0
je 0x51bb6c
mov ecx, edi
call fcn.0051b500
mov al, 1
jmp 0x51e107
mov ecx, dword [edi + 0xfc]
mov eax, dword [ebp - 0x1bc]
test ecx, ecx
jle 0x51cb16
mov dword [eax + 0x18], ecx
mov ecx, dword [edi + 0x100]
test ecx, ecx
jle 0x51cb23
mov dword [eax + 0x1c], ecx
mov ecx, dword [edi + 0x104]
test ecx, ecx
jle 0x51cb30
mov dword [eax + 0x20], ecx
mov ecx, dword [edi + 0x108]
test ecx, ecx
jle case.default.0x51d60b
mov dword [eax + 0x24], ecx
jmp case.default.0x51d60b
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x51cbd8
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xf4], 0x16
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xec], eax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0xf4]
mov word [ebp - 0xde], ax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je 0x51cbe7
call fcn.005233b0
cmp byte [edi + 0x145], 0
je 0x51bb6c
mov ecx, edi
call fcn.0051b500
mov al, 1
jmp 0x51e107
cmp byte [edi + 0xdc], 0
je case.default.0x51d60b
mov ecx, dword [ebp - 0x1c4]
mov al, 1
mov dword [ecx], 3
jmp 0x51e107
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov ecx, edi
call fcn.0051b580
test al, al
jne case.default.0x51d60b
mov ecx, dword [ebp - 0x1bc]
movsx eax, cx
mov dword [ebp - 0x1cc], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1cc]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [edi + 0xec]
mov eax, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0x1c8]
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], edx
test ecx, ecx
je case.default.0x51d60b
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xf4], 0x11
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xe4], edx
mov word [ebp - 0xde], ax
mov dword [ebp - 0xd8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xec]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov dword [edi + 0xec], 0
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov eax, dword [edi + 0xe4]
test eax, eax
je case.default.0x51d60b
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xe0], ax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xf4], 5
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov eax, dword [edi + 0xe4]
test eax, eax
je case.default.0x51d60b
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xe0], ax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xf4], 3
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xf0], eax
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov eax, dword [edi + 0xf0]
test eax, eax
je case.default.0x51d60b
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xe0], ax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xf4], 4
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xf0]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov dword [edi + 0xf0], 0
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
cmp si, 1
jne case.default.0x51d60b
cmp byte [edi + 0x336], 0
jne 0x51bb6c
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x1e4], 0
push eax
mov dword [ebp - 0x1e0], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1e4]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1e0]
mov ecx, edi
push dword [ebp - 0x1e4]
call fcn.0051a560
mov edi, eax
test edi, edi
je case.default.0x51d60b
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x18]
call edx
test al, 2
je case.default.0x51d60b
mov eax, dword [ebp - 0x1b8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x138], 0
movq qword [ebp - 0x140], xmm0
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x154], 0x17
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x144], eax
call fcn.0051b960
mov word [ebp - 0x13e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x154]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x11c]
mov al, 1
jmp 0x51e107
cmp dword [ebp - 0x1b8], 0
je case.default.0x51d60b
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
mov dword [ebp - 0x1d4], esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
test eax, eax
je case.default.0x51d60b
mov edi, edi
cmp dword [edi + 0x84], eax
je 0x51d07a
push eax
mov dword [ebp - 0x1d4], eax
call esi
test eax, eax
jne 0x51d060
jmp case.default.0x51d60b
lea ecx, [edi + 0x378]
xor esi, esi
call fcn.00521870
test eax, eax
jle case.default.0x51d60b
nop
push esi
lea ecx, [edi + 0x378]
call fcn.00517170
cmp eax, dword [ebp - 0x1d4]
je 0x51d0b9
lea ecx, [edi + 0x378]
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51d090
jmp case.default.0x51d60b
lea ecx, [edi + 0x384]
push esi
call fcn.00517170
cmp eax, dword [edi + 0xe4]
je case.default.0x51d60b
push 0
push esi
lea ecx, [edi + 0x384]
call fcn.00517170
push eax
mov ecx, edi
call fcn.0051f6f0
jmp case.default.0x51d60b
mov ecx, dword [ebp - 0x1bc]
test ecx, ecx
je 0x51d114
push ecx
push dword [ebp - 0x1b8]
lea eax, [edx + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c4]
mov dword [ecx], eax
mov al, 1
jmp 0x51e107
cmp edx, 0x200
ja 0x51d5ea
je 0x51d2cd
mov eax, edx
sub eax, 0x113
je 0x51d176
sub eax, 0x20
je 0x51d144
sub eax, 5
jne case.default.0x51d60b
mov ecx, dword [ebp - 0x1bc]
test ecx, ecx
je case.default.0x51d60b
push ecx
push dword [ebp - 0x1b8]
lea eax, [edx + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c4]
mov dword [ecx], eax
mov al, 1
jmp 0x51e107
mov eax, 0x2000
cmp word [ebp - 0x1b8], ax
jne 0x51d1cc
test cl, cl
je 0x51d1cc
lea eax, [edi + 0x15c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x51d1cc
push dword [edi + 0x84]
mov dword [ebp - 0x1c8], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.default.0x51d60b
lea eax, [ebp - 0x1c8]
mov ecx, edi
push eax
push 0
push 0
push 0xf
call fcn.0051b9b0
jmp case.default.0x51d60b
lea ecx, [edi + 0x348]
mov dword [ebp - 0x1c0], 0
call fcn.00521870
test eax, eax
jle case.default.0x51d60b
xor ecx, ecx
jmp 0x51d1f0
push ecx
lea ecx, [edi + 0x348]
call fcn.00517170
mov edx, eax
mov dword [ebp - 0x1c8], edx
mov ecx, dword [edx + 8]
cmp ecx, dword [edi + 0x84]
jne 0x51d223
mov eax, dword [ebp - 0x1b8]
movzx ecx, ax
cmp dword [edx + 0xc], ecx
jne 0x51d223
cmp byte [edx + 0x10], 0
je 0x51d243
inc dword [ebp - 0x1c0]
lea ecx, [edi + 0x348]
call fcn.00521870
mov ecx, dword [ebp - 0x1c0]
cmp ecx, eax
jl 0x51d1f0
jmp case.default.0x51d60b
mov eax, dword [edx]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd8], 0
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xf4], 0x18
mov dword [ebp - 0xf0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xec], eax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov ecx, dword [ebp - 0x1c8]
lea edx, [ebp - 0xf4]
mov word [ebp - 0xde], ax
mov dword [ebp - 0xd8], esi
push edx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0xdc], eax
mov eax, dword [ecx]
call dword [eax + 0x11c]
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
cmp byte [edi + 0x335], 0
jne 0x51d33f
mov eax, dword [edi + 0x84]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 3
test eax, eax
jne 0x51d31b
mov eax, dword [edi + 0xd8]
jmp 0x51d32b
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [edi + 0x335], 1
mov eax, dword [ebp - 0x1bc]
mov ecx, edi
movsx esi, ax
shr eax, 0x10
cwde
push eax
push esi
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1d4], eax
mov dword [edi + 0xf4], esi
mov dword [edi + 0xf8], eax
call fcn.0051a560
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x51d388
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x24]
call edx
cmp eax, edi
jne case.default.0x51d60b
mov eax, dword [ebp - 0x1d4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xe8], esi
mov esi, dword [ebp - 0x1bc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xec], eax
call fcn.0051b960
mov ecx, edi
mov word [ebp - 0xde], ax
call fcn.0051b580
test al, al
jne 0x51d588
push dword [ebp - 0x1d4]
mov ecx, edi
push dword [ebp - 0x1c8]
call fcn.0051a560
mov esi, eax
mov dword [ebp - 0x1c0], esi
test esi, esi
je 0x51d430
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
cmp eax, edi
jne case.default.0x51d60b
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x51d553
test eax, eax
je 0x51d553
lea ecx, [edi + 0x3b4]
mov dword [ebp - 0xf4], 0xa
mov dword [ebp - 0xf0], eax
call fcn.00521870
push eax
lea ecx, [ebp - 0x130]
call fcn.00516db0
lea ecx, [edi + 0x3b4]
mov dword [ebp - 4], 4
call fcn.00521870
push eax
lea ecx, [ebp - 0x130]
call fcn.00517e50
lea ecx, [edi + 0x3b4]
call fcn.00521870
shl eax, 2
lea ecx, [edi + 0x3b4]
push eax
call fcn.0041cda0
push eax
lea ecx, [ebp - 0x130]
call fcn.0041cda0
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x130]
xor esi, esi
call fcn.00521870
test eax, eax
jle 0x51d4fd
jmp 0x51d4d0
push esi
lea ecx, [ebp - 0x130]
call fcn.00517170
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x11c]
lea ecx, [ebp - 0x130]
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51d4d0
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0xf4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov ecx, dword [edi + 0xa8]
mov dword [edi + 0xe8], 0
test ecx, ecx
je 0x51d53b
lea eax, [edi + 0xac]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00517030
mov esi, dword [ebp - 0x1c0]
cmp esi, dword [edi + 0xe8]
je 0x51d58e
test esi, esi
je 0x51d58e
mov dword [ebp - 0xf4], 0xb
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf0], esi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x11c]
mov dword [edi + 0xe8], esi
jmp 0x51d58e
mov esi, dword [ebp - 0x1c0]
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x51d5bc
mov dword [ebp - 0xf4], 9
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xf0], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
jmp case.default.0x51d60b
test esi, esi
je case.default.0x51d60b
mov dword [ebp - 0xf4], 9
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf0], esi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x11c]
jmp case.default.0x51d60b
cmp edx, 0x20a
ja 0x51db14
je 0x51d9d6
add edx, 0xfffffdff
cmp edx, 3
ja case.default.0x51d60b
jmp dword [edx*4 + 0x51e25c]
cmp byte [edi + 0xdc], 0
jne 0x51d627
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x1c8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x1d4], eax
mov dword [edi + 0xf8], eax
call fcn.0051a560
mov esi, eax
mov dword [ebp - 0x1c0], esi
test esi, esi
je case.default.0x51d60b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x24]
call edx
cmp eax, edi
jne case.default.0x51d60b
mov dword [edi + 0xec], esi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x104]
mov ecx, edi
call fcn.0051f3c0
mov ecx, dword [ebp - 0x1c8]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1b8]
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], esi
mov esi, dword [ebp - 0x1bc]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xd
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], ecx
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1c0]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
jmp case.default.0x51d60b
cmp byte [edi + 0xdc], 0
jne 0x51d739
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x1c8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x1d4], eax
mov dword [edi + 0xf8], eax
call fcn.0051a560
mov esi, eax
test esi, esi
je case.default.0x51d60b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x24]
call edx
cmp eax, edi
jne case.default.0x51d60b
mov ecx, edi
call fcn.0051f3c0
mov eax, dword [ebp - 0x1c8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0x10
mov dword [ebp - 0xf0], esi
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xec], eax
lea ecx, [ebp - 0xf4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x11c]
mov dword [edi + 0xec], esi
jmp case.default.0x51d60b
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cmp dword [edi + 0xec], 0
cwde
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x1d4], eax
mov dword [edi + 0xf4], ecx
mov dword [edi + 0xf8], eax
je case.default.0x51d60b
mov ecx, edi
call fcn.0051e7f0
mov eax, dword [edi + 0xec]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x1c8]
mov esi, dword [ebp - 0x1bc]
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xe
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], ecx
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xec]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
mov dword [edi + 0xec], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
jmp case.default.0x51d60b
cmp byte [edi + 0xdc], 0
jne 0x51d8eb
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x1c8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x1d4], eax
mov dword [edi + 0xf8], eax
call fcn.0051a560
mov esi, eax
mov dword [ebp - 0x1c0], esi
test esi, esi
je case.default.0x51d60b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x24]
call edx
cmp eax, edi
jne case.default.0x51d60b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
mov ecx, dword [ebp - 0x1c8]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1b8]
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], esi
mov esi, dword [ebp - 0x1bc]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xf
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], ecx
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp - 0x1c0]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x11c]
mov dword [edi + 0xec], esi
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov ecx, dword [ebp - 0x1bc]
movsx eax, cx
mov dword [ebp - 0x1d8], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x1d8]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d8]
push eax
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xf8], eax
call fcn.0051a560
mov esi, eax
mov dword [ebp - 0x1c8], esi
test esi, esi
je case.default.0x51d60b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x24]
call edx
cmp eax, edi
jne case.default.0x51d60b
mov ecx, dword [ebp - 0x1b8]
xor eax, eax
shr ecx, 0x10
xorps xmm0, xmm0
test cx, cx
movq qword [ebp - 0xe0], xmm0
movdqu xmmword [ebp - 0xf0], xmm0
sets al
mov dword [ebp - 0xf0], esi
mov esi, dword [ebp - 0x1bc]
mov dword [ebp - 0xdc], eax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0x12
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov word [ebp - 0xde], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1c8]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
movzx ecx, word [edi + 0xf8]
movzx eax, word [edi + 0xf4]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x51d60b
cmp edx, 0x318
ja 0x51dfbe
je 0x51decb
sub edx, 0x2a1
je 0x51dc57
sub edx, 2
jne case.default.0x51d60b
cmp dword [edi + 0xe0], edx
je case.default.0x51d60b
mov ecx, dword [edi + 0xa8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x51db67
lea eax, [edi + 0xac]
push eax
push edx
push 0x411
push ecx
call esi
cmp byte [edi + 0x335], 0
je 0x51dc4b
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], 0
push eax
movdqu xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x51dc3a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x84]
jne 0x51dc3a
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x40]
push dword [ebp - 0x1cc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51dc3a
movzx ecx, word [ebp - 0x1c8]
movzx eax, word [ebp - 0x1cc]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x84
push dword [edi + 0x84]
call esi
cmp eax, 1
jne 0x51dc3a
lea eax, [ebp - 0x1cc]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0x1c8]
movzx eax, word [ebp - 0x1cc]
shl ecx, 0x10
or ecx, eax
push ecx
jmp 0x51dc3c
push 0xffffffffffffffff
push 0
push 0x200
push dword [edi + 0x84]
call esi
mov byte [edi + 0x335], 0
jmp case.default.0x51d60b
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
mov eax, dword [ebp - 0x1bc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x1c8], ecx
push ecx
mov ecx, edi
mov byte [edi + 0x335], 0
mov dword [ebp - 0x1d4], eax
call fcn.0051a560
mov esi, eax
mov dword [ebp - 0x1c0], esi
test esi, esi
je case.default.0x51d60b
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x51dd3b
mov esi, dword [ebp - 0x1bc]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x1b8]
movq qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xc
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0xe4], eax
call fcn.0051b960
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0xf4]
mov word [ebp - 0xde], ax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov esi, dword [ebp - 0x1c0]
mov eax, dword [esi]
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, esi
call dword [eax + 0xac]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 3
call fcn.00517a50
test al, al
jne 0x51deb2
lea eax, [ebp - 0xd4]
push eax
call fcn.0051e500
push 0x2c
lea eax, [edi + 0xac]
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [edi + 0x84]
lea ecx, [ebp - 0xd4]
add esp, 0x10
mov dword [edi + 0xac], 0x2c
mov dword [edi + 0xb0], 1
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov eax, dword [0x5fae48]
mov dword [edi + 0xcc], eax
call fcn.0041cda0
mov dword [edi + 0xd0], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call eax
cmp dword [edi + 0xa8], 0
movdqu xmm0, xmmword [eax]
movdqu xmmword [edi + 0xbc], xmm0
jne 0x51de64
push 0
push dword [0x5fae48]
push 0
push dword [edi + 0x84]
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0xa8], eax
test eax, eax
je 0x51de4a
mov ecx, dword [edi + 0xa4]
test ecx, ecx
js 0x51de4a
push ecx
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0xa4], eax
lea eax, [edi + 0xac]
push eax
push 0
push 0x432
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xb8]
call eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x418
push dword [edi + 0xa8]
call esi
lea eax, [edi + 0xac]
push eax
push 0
push 0x436
push dword [edi + 0xa8]
call esi
lea eax, [edi + 0xac]
push eax
push 1
push 0x411
push dword [edi + 0xa8]
call esi
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0xffffffff
call fcn.00517040
mov al, 1
jmp 0x51e107
cmp dword [edi + 0xe0], 0
je case.default.0x51d60b
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x1b8]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [edi + 0xe0]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x40]
push 0
push eax
mov edx, dword [ecx]
push esi
call dword [edx + 0x138]
test byte [ebp - 0x1bc], 0x10
je 0x51dfac
push 5
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x51dfac
or dword [ebp - 0x1bc], 2
lea esp, [esp]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x84]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x1c]
push 0
neg eax
push eax
mov eax, dword [ebp - 0x20]
neg eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push dword [ebp - 0x1bc]
push esi
push 0x317
push dword [ebp - 0x1c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push dword [ebp - 0x1c0]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x1c0], eax
test eax, eax
jne 0x51df40
push dword [ebp - 0x1c8]
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp case.default.0x51d60b
cmp edx, 0x8001
jne case.default.0x51d60b
lea eax, [edi + 0x39c]
mov byte [edi + 0x339], 0
push 0
mov ecx, eax
mov dword [ebp - 0x1d4], eax
call fcn.005177f0
mov esi, eax
mov dword [ebp - 0x1c0], esi
test esi, esi
je 0x51e0d1
lea eax, [edi + 0x33c]
mov dword [ebp - 0x1d0], eax
mov edi, eax
mov ecx, dword [ebp - 0x1d4]
push 1
push 0
call fcn.00517bb0
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x51e038
add ecx, 0x38
call fcn.00546cf0
test al, al
je 0x51e038
mov ecx, dword [esi + 0x108]
push esi
add ecx, 0x38
call fcn.00546d10
mov ecx, edi
xor esi, esi
call fcn.00521870
test eax, eax
jle 0x51e079
mov edi, dword [ebp - 0x1c0]
jmp 0x51e050
mov ecx, dword [ebp - 0x1d0]
push esi
call fcn.00517170
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x1d0]
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51e050
mov edi, dword [ebp - 0x1d0]
mov esi, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c8], esi
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 0
call fcn.00517040
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00517040
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x1d4]
add esp, 4
push 0
call fcn.005177f0
mov esi, eax
mov dword [ebp - 0x1c0], eax
test esi, esi
jne 0x51e004
mov edi, dword [ebp - 0x1e8]
add edi, 0x390
xor esi, esi
mov ecx, edi
call fcn.00521870
test eax, eax
jle 0x51e0fe
push esi
mov ecx, edi
call fcn.00517170
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, edi
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51e0e4
mov ecx, edi
call fcn.00517570
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 0x10