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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47849d
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x49a324]
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 - 0x1ec], edi
cmp dword [edi + 0xa8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
je case.0x407a51.276
lea ecx, [edi + 0x418]
mov dword [ebp - 0x2c], 0
call fcn.0040c620
mov esi, dword [ebp - 0x1dc]
test eax, eax
jle 0x406553
xor ecx, ecx
push ecx
lea ecx, [edi + 0x418]
mov byte [ebp - 0x19], 0
call fcn.0040bea0
lea ecx, [ebp - 0x19]
push ecx
push esi
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x24]
push dword [ebp + 8]
mov eax, dword [edx]
call eax
cmp byte [ebp - 0x19], 0
jne 0x4065a8
inc dword [ebp - 0x2c]
lea ecx, [edi + 0x418]
call fcn.0040c620
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
jl 0x406515
cmp byte [edi + 0x16d], 0
mov edx, dword [ebp + 8]
je 0x40663f
mov eax, edx
sub eax, 0x83
je 0x40662f
sub eax, 2
je 0x40662f
sub eax, 1
jne 0x40663f
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40667f
cmp dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
sete al
mov dword [ecx], eax
mov al, 1
jmp 0x408c77
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp eax, 0x203
ja 0x4065ea
cmp eax, 0x200
jae 0x4065ca
cmp eax, 0x7b
je 0x4065f1
mov al, 1
jmp 0x408c77
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [edi + 0x120], eax
mov al, 1
mov dword [edi + 0x11c], ecx
jmp 0x408c77
cmp eax, 0x20a
jne 0x406628
mov ecx, dword [ebp - 0x1dc]
movsx eax, cx
mov dword [ebp - 0x18], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x120], eax
mov al, 1
jmp 0x408c77
mov ecx, dword [ebp - 0x20]
mov al, 1
mov dword [ecx], 0
jmp 0x408c77
cmp edx, 0x111
ja 0x407a27
jne 0x406682
mov eax, dword [ebp - 0x1dc]
test eax, eax
je case.0x407a51.276
push eax
push dword [ebp - 0x24]
push 0x2111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
test eax, eax
je case.0x407a51.276
mov al, 1
jmp 0x408c77
mov edx, dword [ebp + 8]
lea eax, [edx - 5]
cmp eax, 0xfd
ja case.0x407a51.276
movzx eax, byte [eax + 0x408cc8]
jmp dword [eax*4 + 0x408c94]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x40], ax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x120]
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x10c]
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x4066f5
mov dword [ebp - 0x54], 0xa
lea edx, [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x406715
mov dword [ebp - 0x54], 0xe
lea edx, [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
push 0
mov ecx, edi
call fcn.0040ace0
mov esi, dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x406742
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x406742
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xc8]
test eax, eax
je case.0x407a51.276
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 0xc8], 0
jmp case.0x407a51.276
mov ecx, dword [ebp - 0x20]
mov al, 1
mov dword [ecx], 1
jmp 0x408c77
cmp dword [edi + 0x104], 0
jne 0x4067cd
push 0x40
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004619b0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_BeginPaint]
push 0xff000000
lea eax, [ebp - 0x6c]
push eax
push dword [edi + 0xac]
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x408c77
lea eax, [ebp - 0xa4]
xorps xmm0, xmm0
push eax
push dword [edi + 0xa8]
movups xmmword [ebp - 0xa4], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
push eax
push dword [edi + 0xa8]
movups xmmword [ebp - 0x8c], xmm0
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x406628
cmp byte [edi + 0x16a], 0
je 0x406823
push 1
mov ecx, edi
call fcn.0040b150
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
sub edx, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa0]
cmp byte [edi + 0x169], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1e0], eax
mov byte [edi + 0x3e2], 1
je 0x406a91
lea eax, [ebp - 0xa4]
mov byte [edi + 0x169], 0
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x406b1d
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x406b1d
mov ecx, dword [edi + 0x104]
call fcn.00417e20
test al, al
je 0x40697f
movups xmm0, xmmword [ebp - 0xa4]
mov eax, dword [edi + 0xb0]
movups xmmword [ebp - 0x1d4], xmm0
movups xmmword [ebp - 0x1bc], xmm0
test eax, eax
je 0x4068c7
push eax
call esi
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x4068d4
push eax
call esi
mov eax, dword [edi + 0xb8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4068e7
push eax
call esi
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4068f4
push eax
call esi
cmp byte [edi + 0x16d], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xc0], 0
je 0x40695e
mov eax, dword [edi + 0x170]
add dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x174]
add dword [ebp - 0x1b8], eax
mov eax, dword [edi + 0x178]
sub dword [ebp - 0x1b4], eax
mov eax, dword [edi + 0x17c]
sub dword [ebp - 0x1b0], eax
movups xmm0, xmmword [ebp - 0x1bc]
jmp 0x406965
movups xmm0, xmmword [ebp - 0x1d4]
mov ecx, dword [edi + 0x104]
push 1
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x54]
jmp 0x406a20
lea esi, [edi + 0x460]
mov ecx, esi
mov dword [ebp - 0x1e4], esi
call fcn.0040c240
mov ecx, dword [edi + 0x104]
push reloc.OLEAUT32.dll_VariantCopy
push 0
push 0x40b840
mov eax, dword [ecx]
call dword [eax + 0x128]
mov ecx, esi
call fcn.0040c620
test eax, eax
jle 0x406a20
xor edi, edi
nop dword [eax]
push edi
mov ecx, esi
call fcn.0040bea0
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x20], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x120]
call edx
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
test al, al
jne 0x4069e9
mov eax, dword [esi + 0x50]
call eax
jmp 0x4069f5
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [esi + 0x48]
call eax
movups xmm0, xmmword [eax]
push 1
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x20]
call dword [esi + 0x54]
mov esi, dword [ebp - 0x1e4]
inc edi
mov ecx, esi
call fcn.0040c620
cmp edi, eax
jl 0x4069c0
mov edi, dword [ebp - 0x1ec]
cmp byte [edi + 0x168], 0
mov byte [ebp - 0x19], 1
je 0x406b1d
push 0
push 0
push 0
push str.windowinit
push dword [edi + 0x104]
mov ecx, edi
mov byte [edi + 0x168], 0
call fcn.0040a6c0
cmp byte [edi + 0x16d], 0
je 0x406a77
cmp byte [edi + 0x180], 0
je 0x406a77
mov ecx, edi
call fcn.00406310
mov byte [edi + 0x3e2], 0
mov al, 1
jmp 0x408c77
push dword [edi + 0xa8]
lea ecx, [edi + 0x5c8]
call fcn.00413940
mov byte [ebp - 0x19], 1
jmp 0x406b1d
cmp byte [edi + 0x16d], 0
je 0x406b9d
cmp byte [edi + 0x180], 0
je 0x406b1d
movups xmm0, xmmword [ebp - 0xa4]
mov ecx, dword [edi + 0xbc]
movups xmmword [ebp - 0x1bc], xmm0
test ecx, ecx
je 0x406ad1
imul eax, edx
shl eax, 2
push eax
push 0
push ecx
call fcn.004619b0
add esp, 0xc
mov eax, dword [edi + 0x170]
add dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x174]
add dword [ebp - 0x1b8], eax
mov eax, dword [edi + 0x178]
sub dword [ebp - 0x1b4], eax
mov ecx, dword [edi + 0x104]
mov eax, dword [edi + 0x17c]
sub dword [ebp - 0x1b0], eax
movups xmm0, xmmword [ebp - 0x1bc]
mov edx, dword [ecx]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x54]
cmp byte [edi + 0x16d], 0
je 0x406b9d
push 0xffffffffffffffec
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x80000
cmp eax, ecx
je 0x406b4f
push ecx
push 0xffffffffffffffec
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea esi, [edi + 0x184]
mov byte [edi + 0x16b], 1
push esi
lea eax, [ebp - 0x8c]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov ecx, dword [ebp - 0x84]
xorps xmm0, xmm0
cmp ecx, dword [ebp - 0x9c]
movups xmmword [esi], xmm0
cmovg ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x98]
cmovg ecx, dword [ebp - 0x98]
mov dword [ebp - 0x80], ecx
cmp byte [edi + 0x16b], 0
je 0x406be8
cmp dword [edi + 0xb8], 0
jne 0x406be8
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [ebp - 0x24]
mov dword [edi + 0xb0], eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp - 0x1e0]
push esi
push dword [edi + 0xac]
call fcn.0041a790
add esp, 0x10
mov dword [edi + 0xb8], eax
jmp 0x406beb
mov esi, dword [ebp - 0x24]
push 0x40
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004619b0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [edi + 0x16b], 0
je 0x40747e
push dword [edi + 0xb8]
push dword [edi + 0xb0]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0xb0]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x80]
sub ecx, dword [ebp - 0x88]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x19c], edx
cmp edx, ecx
jge 0x406cc5
mov eax, edx
imul eax, esi
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x2c], eax
nop
mov ecx, dword [ebp - 0x8c]
cmp ecx, esi
jge 0x406ca5
lea edx, [ecx + eax]
shl edx, 2
mov eax, dword [edi + 0xbc]
lea edx, [edx + 4]
inc ecx
mov dword [edx + eax - 4], 0
mov esi, dword [ebp - 0x84]
cmp ecx, esi
jl 0x406c80
mov edx, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
inc edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x88]
cmp edx, eax
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x2c]
jl 0x406c70
mov ecx, dword [edi + 0x104]
lea edx, [ebp - 0x8c]
push 0
push edx
push dword [edi + 0xb0]
mov eax, dword [ecx]
call dword [eax + 0x144]
cmp byte [edi + 0x16d], 0
je 0x406f35
lea ecx, [edi + 0x430]
mov dword [ebp - 0x20], 0
call fcn.0040c620
test eax, eax
jle 0x406f35
xor ecx, ecx
nop dword [eax + eax]
push ecx
lea ecx, [edi + 0x430]
call fcn.0040bea0
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406d4a
push dword [ebp - 0x20]
lea ecx, [edi + 0x430]
call fcn.0040caa0
push dword [ebp - 0x20]
lea ecx, [edi + 0x43c]
call fcn.0040caa0
jmp 0x406f1f
inc dword [ebp - 0x20]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406f1f
push esi
lea eax, [ebp - 0x1ac]
mov ecx, edi
push eax
call fcn.00405f30
lea eax, [ebp - 0x1ac]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1d4]
push eax
movups xmmword [ebp - 0x1d4], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x406f1f
push dword [edi + 0xb0]
mov dword [ebp - 0x19c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x2c], eax
push ecx
mov ecx, dword [ebp - 0x1a0]
sub ecx, dword [ebp - 0x1a8]
push ecx
mov ecx, dword [ebp - 0x1a4]
sub ecx, dword [ebp - 0x1ac]
push ecx
push eax
call fcn.0041a790
mov edx, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a0]
sub edx, dword [ebp - 0x1ac]
sub ecx, dword [ebp - 0x1a8]
imul edx, ecx
mov dword [ebp - 0x1e4], eax
shl edx, 2
push edx
push 0
push dword [ebp - 0x19c]
call fcn.004619b0
add esp, 0x1c
push dword [ebp - 0x1e4]
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x35
push dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
push 0x317
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x1a0]
mov ecx, edx
sub ecx, dword [ebp - 0x1a8]
mov esi, dword [ebp - 0x1a4]
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e8], edx
test ecx, ecx
jle 0x406ed3
mov edi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1dc]
mov eax, esi
xor edx, edx
sub eax, edi
test eax, eax
jle 0x406eb4
nop
imul eax, ecx
mov ecx, dword [ebp - 0x19c]
add eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x406e97
or eax, 0xff000000
mov dword [ecx], eax
mov esi, dword [ebp - 0x1a4]
mov edi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1dc]
mov eax, esi
inc edx
sub eax, edi
cmp edx, eax
jl 0x406e70
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1e8], edx
jmp 0x406eba
mov edx, dword [ebp - 0x1e8]
mov eax, edx
inc ecx
sub eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1dc], ecx
cmp ecx, eax
jl 0x406e64
mov edi, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1a8]
sub edx, ecx
mov eax, dword [ebp - 0x1ac]
sub esi, eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0x2c]
push edx
push esi
push ecx
push eax
push dword [edi + 0xb0]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x78]
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1e4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [edi + 0x430]
call fcn.0040c620
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jl 0x406d10
lea ecx, [edi + 0x424]
xor esi, esi
call fcn.0040c620
test eax, eax
jle 0x406f83
nop word [eax + eax]
push esi
lea ecx, [edi + 0x424]
call fcn.0040bea0
lea ecx, [ebp - 0x8c]
push ecx
push dword [edi + 0xb0]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x168]
lea ecx, [edi + 0x424]
inc esi
call fcn.0040c620
cmp esi, eax
jl 0x406f50
push dword [ebp - 0x30]
push dword [edi + 0xb0]
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp byte [edi + 0x16d], 0
je 0x4073c5
lea eax, [ebp - 0x1d4]
xorps xmm0, xmm0
push eax
push dword [edi + 0xa8]
movups xmmword [ebp - 0x1d4], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [edi + 0x194]
call fcn.0040c970
test al, al
jne 0x407292
mov eax, dword [ebp - 0x9c]
lea ecx, [edi + 0x194]
sub eax, dword [ebp - 0xa4]
movups xmm0, xmmword [ebp - 0xa4]
mov esi, dword [ebp - 0x98]
sub esi, dword [ebp - 0xa0]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x170]
add eax, dword [ebp - 0xa4]
movups xmmword [ebp - 0x1bc], xmm0
mov dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x174]
add dword [ebp - 0x1b8], eax
mov eax, dword [edi + 0x178]
sub dword [ebp - 0x1b4], eax
mov eax, dword [edi + 0x17c]
sub dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1e4], esi
call fcn.0040c970
test al, al
jne 0x40734c
cmp dword [edi + 0xc0], 0
jne 0x4070cb
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea esi, [edi + 0xc4]
mov dword [edi + 0xb4], eax
push esi
push dword [ebp - 0x1e4]
push dword [ebp - 0x20]
push dword [edi + 0xac]
call fcn.0041a790
mov dword [edi + 0xc0], eax
mov eax, dword [ebp - 0x1e4]
imul eax, dword [ebp - 0x20]
shl eax, 2
push eax
push 0
push dword [esi]
call fcn.004619b0
add esp, 0x1c
push dword [edi + 0xc0]
push dword [edi + 0xb4]
call dword [sym.imp.GDI32.dll_SelectObject]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x50], xmm0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 4], 0
jmp 0x407106
cmp byte [edi + 0x180], 0
je 0x407153
imul esi, dword [ebp - 0x20]
shl esi, 2
push esi
push 0
push dword [edi + 0xc4]
call fcn.004619b0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
add esp, 0xc
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 4], 1
movups xmm0, xmmword [ebp - 0x1bc]
lea eax, [ebp - 0x50]
push eax
sub esp, 0x10
mov eax, esp
push dword [edi + 0xb4]
movups xmmword [eax], xmm0
call fcn.0041f850
push 0
lea eax, [edi + 0x194]
push eax
lea eax, [ebp - 0x1bc]
push eax
push eax
push edi
push dword [edi + 0xb4]
call fcn.0041e500
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0041a080
mov eax, dword [ebp - 0x98]
mov edx, eax
sub edx, dword [ebp - 0x80]
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x1e8], edx
cmp edx, eax
jge 0x40734c
mov ecx, dword [ebp - 0x84]
mov eax, edx
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x1dc], eax
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x1e4], esi
cmp esi, ecx
jge 0x407263
nop dword [eax]
nop dword [eax + eax]
lea ecx, [eax + esi]
mov eax, dword [edi + 0xc4]
mov edi, dword [edi + 0xbc]
add edi, dword [ebp - 0x1dc]
add edi, esi
movzx edx, byte [eax + ecx*4 + 3]
mov dword [ebp - 0x19c], edx
mov eax, dword [edi]
shr eax, 0x10
movzx ecx, al
mov eax, 0x80808081
imul ecx, edx
mul ecx
mov eax, dword [edi]
shr eax, 8
movzx ecx, al
mov eax, 0x80808081
imul ecx, dword [ebp - 0x19c]
shr edx, 7
movzx esi, dl
shl esi, 8
mul ecx
shr edx, 7
movzx eax, dl
or esi, eax
mov eax, dword [edi]
movzx ecx, al
mov eax, 0x80808081
imul ecx, dword [ebp - 0x19c]
shl esi, 8
mul ecx
shr edx, 7
movzx eax, dl
or esi, eax
mov eax, dword [ebp - 0x19c]
shl eax, 0x18
add esi, eax
mov eax, dword [ebp - 0x1dc]
mov dword [edi], esi
mov esi, dword [ebp - 0x1e4]
mov ecx, dword [ebp - 0x84]
inc esi
mov edi, dword [ebp - 0x1ec]
mov dword [ebp - 0x1e4], esi
cmp esi, ecx
jl 0x4071b0
mov edx, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x88]
cmp edx, eax
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1dc]
jl 0x407190
jmp 0x40734c
mov edx, dword [ebp - 0x98]
mov ecx, edx
sub ecx, dword [ebp - 0x80]
mov eax, edx
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x1e4], ecx
cmp ecx, eax
jge 0x40734c
mov esi, dword [ebp - 0x84]
mov eax, ecx
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, esi
jge 0x407320
lea edx, [eax + ecx]
shl edx, 2
nop word [eax + eax]
mov eax, dword [edi + 0xbc]
cmp byte [eax + edx + 3], 0
jne 0x40730c
cmp byte [eax + edx], 0
jne 0x407301
cmp byte [eax + edx + 1], 0
jne 0x407301
cmp byte [eax + edx + 2], 0
je 0x40730c
mov byte [eax + edx + 3], 0xff
mov esi, dword [ebp - 0x84]
inc ecx
add edx, 4
cmp ecx, esi
jl 0x4072e0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x19c]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x19c], eax
inc ecx
mov eax, edx
mov dword [ebp - 0x1e4], ecx
sub eax, dword [ebp - 0x88]
cmp ecx, eax
mov eax, dword [ebp - 0x19c]
jl 0x4072c5
mov al, byte [edi + 0x16c]
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1e0]
push 2
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x34]
mov word [ebp - 0x2c], 0
push eax
push dword [edi + 0xb0]
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x29], 1
push eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x34], 0
push eax
push dword [edi + 0xac]
mov dword [ebp - 0x30], 0
push dword [edi + 0xa8]
call dword [0xeb35c0]
jmp 0x4073fb
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x80]
push 0xcc0020
push edx
push ecx
push dword [edi + 0xb0]
sub eax, edx
push eax
mov eax, dword [ebp - 0x84]
sub eax, ecx
push eax
push edx
push ecx
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0xb0]
call esi
cmp byte [edi + 0x101], 0
je 0x407502
cmp byte [edi + 0x16d], 0
jne 0x407502
push dword [0xeb35c4]
push dword [edi + 0xac]
call esi
push 5
mov esi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x407502
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [edi + 0x104]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push 0
push eax
mov edx, dword [ecx]
push dword [edi + 0xac]
call dword [edx + 0x144]
lea ecx, [edi + 0x424]
xor esi, esi
call fcn.0040c620
test eax, eax
jle 0x4074f3
nop dword [eax + eax]
push esi
lea ecx, [edi + 0x424]
call fcn.0040bea0
lea ecx, [ebp - 0x8c]
push ecx
push dword [edi + 0xac]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x168]
lea ecx, [edi + 0x424]
inc esi
call fcn.0040c620
cmp esi, eax
jl 0x4074c0
push dword [ebp - 0x14]
push dword [edi + 0xac]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [edi + 0x169], 0
mov byte [edi + 0x3e2], 0
mov byte [edi + 0x180], 0
je 0x407533
mov ecx, edi
call fcn.00406310
cmp byte [ebp - 0x19], 0
je 0x406628
push 1
push 0
push 0
push str.windowsize
push dword [edi + 0x104]
mov ecx, edi
call fcn.0040a6c0
mov al, 1
jmp 0x408c77
lea eax, [ebp - 0xd4]
xorps xmm0, xmm0
push eax
push 1
push dword [edi + 0xa8]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xd4], 0x28
movups xmmword [ebp - 0xc4], xmm0
movq qword [ebp - 0xb4], xmm0
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
cmp dword [ebp - 0xb0], 1
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x1d4], xmm0
je 0x4075d1
mov eax, dword [ebp - 0xbc]
neg eax
push eax
mov eax, dword [ebp - 0xc0]
neg eax
push eax
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [edi + 0x124]
mov eax, dword [ebp - 0x1dc]
test ecx, ecx
jle 0x4075e4
mov dword [eax + 0x18], ecx
mov ecx, dword [edi + 0x128]
test ecx, ecx
jle 0x4075f1
mov dword [eax + 0x1c], ecx
mov ecx, dword [edi + 0x12c]
test ecx, ecx
jle 0x4075fe
mov dword [eax + 0x20], ecx
mov ecx, dword [edi + 0x130]
test ecx, ecx
jle 0x40760b
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x12c]
test ecx, ecx
jle 0x407618
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x130]
test ecx, ecx
jle case.0x407a51.276
mov dword [eax + 0xc], ecx
jmp case.0x407a51.276
mov eax, dword [edi + 0x108]
test eax, eax
je 0x40766f
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0x19
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov ecx, dword [edi + 0x104]
test ecx, ecx
je 0x406628
call fcn.00417f00
mov al, 1
jmp 0x408c77
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov ecx, dword [ebp - 0x1dc]
movsx eax, cx
mov dword [ebp - 0x18], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0x110], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x120], eax
je case.0x407a51.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [edi + 0x110]
xor eax, eax
mov edx, dword [ebp - 0x24]
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov byte [edi + 0x3e1], 0
mov byte [edi + 0x698], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0x14
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x3e], dx
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov dword [edi + 0x110], 0
jmp case.0x407a51.276
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov eax, dword [edi + 0x108]
test eax, eax
je case.0x407a51.276
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x120]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov eax, dword [edi + 0x108]
test eax, eax
je case.0x407a51.276
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x120]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov eax, dword [edi + 0x108]
mov dword [edi + 0x114], eax
jmp case.0x407a51.276
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov eax, dword [edi + 0x114]
test eax, eax
je case.0x407a51.276
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x120]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x114]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov dword [edi + 0x114], 0
jmp case.0x407a51.276
cmp dword [edi + 0x104], 0
je case.0x407a51.276
cmp si, 1
jne case.0x407a51.276
cmp byte [edi + 0x3e1], 0
jne 0x406628
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.004056e0
mov edi, eax
test edi, edi
je case.0x407a51.276
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x14]
call edx
test al, 2
je case.0x407a51.276
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x54], 0x1a
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x54]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x134]
mov al, 1
jmp 0x408c77
mov ecx, dword [edi + 0x108]
test ecx, ecx
je case.0x407a51.276
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xbc], xmm0
mov dword [ebp - 0xcc], 0x18
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xc8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
mov ecx, dword [ebp - 0x1dc]
test ecx, ecx
je case.0x407a51.276
push ecx
push dword [ebp - 0x24]
lea eax, [edx + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov al, 1
jmp 0x408c77
cmp edx, 0x2a1
ja 0x40894e
je 0x4086e2
lea eax, [edx - 0x113]
cmp eax, 0xf7
ja case.0x407a51.276
movzx eax, byte [eax + 0x408df8]
jmp dword [eax*4 + 0x408dc8]
lea ecx, [edi + 0x3f4]
mov dword [ebp - 0x1e0], 0
call fcn.0040c620
test eax, eax
jle case.0x407a51.276
xor ecx, ecx
nop word [eax + eax]
push ecx
lea ecx, [edi + 0x3f4]
call fcn.0040bea0
mov edx, eax
mov dword [ebp - 0x14], edx
mov ecx, dword [edx + 8]
cmp ecx, dword [edi + 0xa8]
jne 0x407aad
mov eax, dword [ebp - 0x24]
movzx ecx, ax
cmp dword [edx + 0xc], ecx
jne 0x407aad
cmp byte [edx + 0x10], 0
je 0x407acd
inc dword [ebp - 0x1e0]
lea ecx, [edi + 0x3f4]
call fcn.0040c620
mov ecx, dword [ebp - 0x1e0]
cmp ecx, eax
jl 0x407a80
jmp case.0x407a51.276
mov eax, dword [edx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x54], 0x1b
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x120]
mov dword [ebp - 0x44], eax
call fcn.00406450
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x54]
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x38], esi
push edx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp byte [edi + 0x3e0], 0
jne 0x407b93
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x1b4], eax
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x1bc], 0x10
mov dword [ebp - 0x1b8], 3
test eax, eax
jne 0x407b69
mov eax, dword [edi + 0xfc]
jmp 0x407b79
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [edi + 0x3e0], 1
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
movsx esi, ax
mov al, 1
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1e4], eax
cmp dword [edi + 0x11c], ecx
jne 0x407bcf
xor edx, edx
movzx eax, al
cmp dword [edi + 0x120], esi
cmove eax, edx
mov dword [ebp - 0x1e4], eax
push esi
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [edi + 0x120], esi
call fcn.004056e0
mov dword [ebp - 0x1e0], eax
test eax, eax
je 0x407bff
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
cmp byte [ebp - 0x1e4], 0
mov eax, dword [ebp - 0x24]
je 0x407f26
cmp byte [edi + 0x698], 0
je 0x407f26
cmp eax, 1
jne 0x407f26
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xc
call fcn.0045ed12
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je case.0x407a51.276
mov dword [esi], vtable.DuiLib::CIDropSource.0
mov ecx, dword [esi]
push esi
mov dword [esi + 4], 0
mov byte [esi + 8], 0
call dword [ecx + 4]
push 0x24
call fcn.0045ed12
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x407c94
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
push esi
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.004143c0
mov esi, eax
mov dword [ebp - 0x1e0], eax
jmp 0x407c9c
xor esi, esi
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je case.0x407a51.276
mov eax, dword [esi]
push esi
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x1d6], 0
mov word [ebp - 0x1d2], ax
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x1a4], xmm0
push 0
push eax
push dword [edi + 0x69c]
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x1cc], 0xffffffff
mov word [ebp - 0x1d8], ax
mov dword [ebp - 0x1c8], 0x10
mov dword [ebp - 0x1a8], 0x10
call dword [sym.imp.ole32.dll_OleDuplicateData]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [esi]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1a8]
push 0
push eax
lea eax, [ebp - 0x1d8]
push eax
push esi
call dword [ecx + 0x1c]
mov esi, dword [ebp - 0x19c]
lea eax, [ebp - 0xac]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0xa8]
push 0
push 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xa4]
push 0
push dword [edi + 0xac]
mov dword [ebp - 0x14], eax
mov eax, 0xe
mov word [ebp - 0x1d8], ax
mov dword [ebp - 0x1c8], 0x40
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
push dword [edi + 0xac]
mov dword [ebp - 0x1e8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push eax
mov dword [ebp - 0x1e4], eax
call edi
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1e4]
mov esi, eax
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0
push dword [ebp - 0x1e8]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [ebp - 0x1e4]
push esi
call edi
push dword [ebp - 0x1e8]
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
push esi
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [ebp - 0x1e0]
lea ecx, [ebp - 0x1a8]
push 1
mov dword [ebp - 0x1a8], 0x40
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x1d8]
push ecx
push edi
call dword [eax + 0x1c]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 0x487e38
push 1
push 0
movlpd qword [ebp - 0x28], xmm0
push 0x487de8
mov dword [ebp - 0x28], vtable.DuiLib::CDragSourceHelper.0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0xa8]
cdq
sub eax, edx
mov dword [ebp - 4], 4
sar eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xa4]
cdq
sub eax, edx
sar eax, 1
push 5
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x407ede
mov esi, dword [ebp - 0x19c]
lea eax, [ebp - 0x94]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x1c4]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x24]
push edi
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0x1b4], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push 3
push esi
push edi
call dword [sym.imp.ole32.dll_DoDragDrop]
cmp dword [ebp - 0x20], 0
je 0x407efb
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 0xc
push esi
call fcn.0045ed42
mov eax, dword [edi]
add esp, 8
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x698], 0
call fcn.00404300
jmp case.0x407a51.276
xor ecx, ecx
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 0x1dc]
mov word [ebp - 0x40], cx
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
mov al, byte [edi + 0x3e1]
test al, al
jne 0x4080e9
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x1e8]
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x1e0], esi
test esi, esi
je 0x407f91
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x1c]
call eax
cmp eax, edi
jne case.0x407a51.276
mov eax, dword [edi + 0x10c]
cmp esi, eax
je 0x4080bd
test eax, eax
je 0x4080bd
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0xa
lea ecx, [edi + 0x478]
mov dword [ebp - 0x50], eax
movq qword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1a0], 0
call fcn.0040c620
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0040bb00
lea ecx, [edi + 0x478]
mov dword [ebp - 4], 5
call fcn.0040c620
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0040d100
lea ecx, [edi + 0x478]
call fcn.0040c620
shl eax, 2
lea ecx, [edi + 0x478]
push eax
call fcn.0040beb0
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0040beb0
push eax
call fcn.00460eb0
add esp, 0xc
lea ecx, [ebp - 0x1a8]
xor esi, esi
call fcn.0040c620
test eax, eax
jle 0x40806a
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x1a8]
call fcn.0040bea0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x134]
lea ecx, [ebp - 0x1a8]
inc esi
call fcn.0040c620
cmp esi, eax
jl 0x408040
mov ecx, dword [edi + 0x10c]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov ecx, dword [edi + 0xc8]
mov dword [edi + 0x10c], 0
test ecx, ecx
je 0x4080a5
lea eax, [edi + 0xcc]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bbc0
mov esi, dword [ebp - 0x1e0]
cmp esi, dword [edi + 0x10c]
je 0x4080ef
test esi, esi
je 0x4080ef
mov dword [ebp - 0x54], 0xb
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], esi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x134]
mov dword [edi + 0x10c], esi
jmp 0x4080ef
mov esi, dword [ebp - 0x1e0]
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x408114
mov dword [ebp - 0x54], 9
lea edx, [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
jmp case.0x407a51.276
test esi, esi
je case.0x407a51.276
mov dword [ebp - 0x54], 9
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], esi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp byte [edi + 0x100], 0
jne 0x40814e
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je case.0x407a51.276
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x4081f6
mov eax, dword [edi + 0x69c]
mov byte [edi + 0x698], 1
test eax, eax
je 0x4081d0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x69c], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
push 0
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
push esi
push edi
movups xmmword [ecx], xmm0
call fcn.0041f4f0
add esp, 0x1c
mov dword [edi + 0x69c], eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [edi + 0x3e1], 1
mov ecx, esi
mov dword [edi + 0x110], esi
mov eax, dword [esi]
call dword [eax + 0x11c]
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x1dc]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0xd
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp byte [edi + 0x100], 0
jne 0x408281
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je case.0x407a51.276
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
mov dword [ebp - 0x54], 0x13
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x1dc]
mov dword [ebp - 0x4c], 0
mov byte [edi + 0x3e1], 1
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x134]
mov dword [edi + 0x110], esi
jmp case.0x407a51.276
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cmp dword [edi + 0x110], 0
cwde
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], eax
mov dword [edi + 0x11c], ecx
mov dword [edi + 0x120], eax
je case.0x407a51.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov esi, dword [ebp - 0x1dc]
mov word [ebp - 0x40], ax
mov eax, dword [edi + 0x110]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x30]
mov byte [edi + 0x3e1], 0
mov byte [edi + 0x698], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0xe
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov dword [edi + 0x110], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp byte [edi + 0x100], 0
jne 0x4083f0
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je case.0x407a51.276
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x11c]
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [ebp - 0x54], 0xf
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x40], ax
mov dword [ebp - 0x44], ecx
jmp 0x4082ec
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov dword [edi + 0x110], eax
test eax, eax
je case.0x407a51.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov esi, dword [ebp - 0x1dc]
mov word [ebp - 0x40], ax
mov dword [ebp - 0x4c], eax
mov byte [edi + 0x698], al
mov byte [edi + 0x3e1], al
mov eax, dword [edi + 0x110]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
jmp case.0x407a51.276
cmp byte [edi + 0x100], 0
jne 0x40851f
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je case.0x407a51.276
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x11c]
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [ebp - 0x54], 0x11
jmp 0x408453
mov eax, dword [ebp - 0x1dc]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [edi + 0x120], eax
call fcn.004056e0
mov dword [edi + 0x110], eax
test eax, eax
je case.0x407a51.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebp - 0x54], 0x12
jmp 0x4084ad
cmp dword [edi + 0x104], 0
je case.0x407a51.276
mov ecx, dword [ebp - 0x1dc]
movsx eax, cx
mov dword [ebp - 0x34], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
mov dword [edi + 0x11c], ecx
push ecx
mov ecx, edi
mov dword [edi + 0x120], eax
call fcn.004056e0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je case.0x407a51.276
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, edi
jne case.0x407a51.276
mov eax, dword [ebp - 0x24]
shr eax, 0x10
movzx eax, ax
shr eax, 0xf
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x1dc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x54], 0x15
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], eax
call fcn.00406450
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
movzx ecx, word [edi + 0x120]
movzx eax, word [edi + 0x11c]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x407a51.276
mov ecx, dword [ebp - 0x1dc]
test ecx, ecx
je case.0x407a51.276
push ecx
push dword [ebp - 0x24]
lea eax, [edx + 0x2000]
push eax
push ecx
jmp 0x406665
mov eax, dword [ebp - 0x1dc]
lea edx, [ebp - 0x1a4]
movsx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x104]
cwde
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1a0], eax
mov byte [edi + 0x3e0], 0
mov eax, dword [ecx]
push 0x15
push edx
push 0x40b7c0
mov eax, dword [eax + 0x128]
call eax
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je case.0x407a51.276
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x408796
mov esi, dword [ebp - 0x1dc]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call fcn.00406450
mov ecx, dword [edi + 0x10c]
lea edx, [ebp - 0x54]
mov word [ebp - 0x3e], ax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov esi, dword [ebp - 0x78]
push 0x84
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.004619b0
mov eax, dword [esi]
lea ecx, [ebp - 0x198]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0xbc]
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 2
call fcn.0040c970
lea ecx, [ebp - 0x198]
test al, al
jne 0x408942
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov eax, dword [edi + 0xa8]
mov dword [edi + 0xcc], 0x30
mov dword [edi + 0xd0], 1
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd8], eax
mov eax, dword [0xeb35b0]
mov dword [edi + 0xec], eax
call fcn.0040beb0
mov dword [edi + 0xf0], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
call eax
movups xmm0, xmmword [eax]
mov eax, dword [edi + 0xc8]
movups xmmword [edi + 0xdc], xmm0
test eax, eax
jne 0x4088ff
push eax
push dword [0xeb35b0]
push eax
push dword [edi + 0xa8]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysStringLen
push eax
push 0x47c724
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [edi + 0xcc]
mov dword [edi + 0xc8], eax
push ecx
push 0
push 0x432
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc8]
call eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x418
push dword [edi + 0xc8]
call esi
mov eax, dword [edi + 0xc8]
jmp 0x408905
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40893c
lea eax, [edi + 0xcc]
push eax
push 0
push 0x436
push dword [edi + 0xc8]
call esi
lea eax, [edi + 0xcc]
push eax
push 1
push 0x411
push dword [edi + 0xc8]
call esi
lea ecx, [ebp - 0x198]
call fcn.0040bba0
mov al, 1
jmp 0x408c77
sub edx, 0x2a3
je 0x408b8c
sub edx, 0x75
je 0x408a8e
sub edx, 0x7ce9
jne case.0x407a51.276
lea eax, [edi + 0x448]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.0040c620
test eax, eax
jle 0x4089ae
mov edi, dword [ebp - 0x14]
push esi
mov ecx, edi
call fcn.0040bea0
test eax, eax
je 0x40899c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, edi
inc esi
call fcn.0040c620
cmp esi, eax
jl 0x408988
mov edi, dword [ebp - 0x1ec]
lea ecx, [edi + 0x448]
call fcn.0040c240
lea esi, [edi + 0x454]
mov byte [edi + 0x3e4], 0
push 0
mov ecx, esi
mov dword [ebp - 0x30], esi
call fcn.0040c570
mov dword [ebp - 0x14], eax
test eax, eax
je case.0x407a51.276
lea eax, [edi + 0x3e8]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1e0], eax
nop dword [eax]
push 0
mov ecx, esi
call fcn.0040caa0
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x408a1e
add ecx, 0x38
call fcn.00414170
test al, al
je 0x408a1e
mov ecx, dword [edi + 0x108]
push edi
add ecx, 0x38
call fcn.00414180
mov ecx, dword [ebp - 0x1e0]
xor esi, esi
call fcn.0040c620
test eax, eax
jle 0x408a53
nop
mov ecx, dword [ebp - 0x1e0]
push esi
call fcn.0040bea0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x1e0]
inc esi
call fcn.0040c620
cmp esi, eax
jl 0x408a30
lea ecx, [edi + 0x84]
call fcn.0040bba0
mov ecx, edi
call fcn.0040bba0
push 0x120
push edi
call fcn.0045ed42
mov esi, dword [ebp - 0x30]
add esp, 8
mov ecx, esi
push 0
call fcn.0040c570
mov edi, eax
test edi, edi
jne 0x4089f0
jmp case.0x407a51.276
cmp dword [edi + 0x104], 0
je case.0x407a51.276
lea eax, [ebp - 0x1d4]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [edi + 0x104]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1d4]
push 0
push eax
mov edx, dword [ecx]
push esi
call dword [edx + 0x144]
test byte [ebp - 0x1dc], 0x10
je 0x408b7d
push 5
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x1e0], eax
test eax, eax
je 0x408b7d
or dword [ebp - 0x1dc], 2
lea ecx, [ebp - 0x1bc]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x1bc], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x1bc]
push eax
push dword [edi + 0xa8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x1b8]
push 0
neg eax
push eax
mov eax, dword [ebp - 0x1bc]
neg eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push dword [ebp - 0x1dc]
push esi
push 0x317
push dword [ebp - 0x1e0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push dword [ebp - 0x1e0]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x1e0], eax
test eax, eax
jne 0x408b03
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp case.0x407a51.276
mov ecx, dword [edi + 0xc8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x408bad
lea eax, [edi + 0xcc]
push eax
push 0
push 0x411
push ecx
call esi
cmp byte [edi + 0x3e0], 0
je 0x408c6e
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
push eax
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x1d4], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1d4]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x408c5d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0xa8]
jne 0x408c5d
push dword [ebp - 0x14]
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x408c5d
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebp - 0x18]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x84
push dword [edi + 0xa8]
call esi
cmp eax, 1
jne 0x408c5d
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebp - 0x18]
shl ecx, 0x10
or ecx, eax
push ecx
jmp 0x408c5f
push 0xffffffffffffffff
push 0
push 0x200
push dword [edi + 0xa8]
call esi
mov byte [edi + 0x3e0], 0
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.0045ecfc
mov esp, ebp
pop ebp
ret 0x10