Function at 0x404ec0
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1195
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x200]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xb4], 0
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
je case.0x406707.276
mov ecx, dword [ebx + 0x4c4]
xor esi, esi
test ecx, ecx
jle 0x404f6a
lea ecx, [ecx]
mov edx, dword [ebx + 0x4c0]
mov byte [esp + 0x17], 0
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x17]
push edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0xc]
push edi
push edx
call eax
cmp byte [esp + 0x17], 0
jne 0x404fbe
inc esi
cmp esi, dword [ebx + 0x4c4]
jl 0x404f30
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
cmp byte [ebx + 0x179], 0
je 0x405057
mov ecx, edx
sub ecx, 0x83
je 0x405046
sub ecx, 2
je 0x405046
sub ecx, 1
jne 0x405057
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x405094
mov ecx, dword [esp + 0x40]
test edi, edi
sete al
mov dword [ecx], eax
mov al, 1
jmp 0x4079d9
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x203
ja 0x404fff
cmp eax, 0x200
jae 0x404fe1
cmp eax, 0x7b
je 0x405006
mov al, 1
jmp 0x4079d9
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebx + 0x12c], eax
mov dword [ebx + 0x128], ecx
mov al, 1
jmp 0x4079d9
cmp eax, 0x20a
jne 0x40503f
mov eax, dword [esp + 0x10]
movsx edx, ax
shr eax, 0x10
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xb4]
cwde
push ecx
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x12c], ecx
mov al, 1
jmp 0x4079d9
mov edx, dword [esp + 0x40]
mov dword [edx], 0
mov al, 1
jmp 0x4079d9
cmp edx, 0x111
ja 0x4066dc
jne 0x405098
test eax, eax
je case.0x406707.276
mov eax, dword [esp + 0x10]
push eax
push edi
push 0x2111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
test eax, eax
je case.0x406707.276
mov al, 1
jmp 0x4079d9
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 5]
cmp ecx, 0xfd
ja case.0x406707.276
movzx ecx, byte [ecx + 0x407a38]
jmp dword [ecx*4 + 0x407a00]
mov edx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40512b
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x405150
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x18]
push edx
call eax
xor edi, edi
mov esi, ebx
call fcn.004082b0
mov esi, dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x40517d
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40517d
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xd4]
test eax, eax
je case.0x406707.276
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 0xd4], edi
jmp case.0x406707.276
mov ecx, dword [esp + 0x40]
mov dword [ecx], 1
mov al, 1
jmp 0x4079d9
xor esi, esi
cmp dword [ebx + 0x110], esi
jne 0x40521d
push 0x3c
lea edx, [esp + 0xf4]
push esi
push edx
mov dword [esp + 0xf8], esi
call fcn.00487630
mov ecx, dword [ebx + 0xb4]
add esp, 0xc
lea eax, [esp + 0xec]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [ebx + 0xb8]
push 0xff000000
lea eax, [esp + 0xf8]
call fcn.00434510
mov eax, dword [ebx + 0xb4]
add esp, 4
lea edx, [esp + 0xec]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x4079d9
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0xac]
xor eax, eax
push ecx
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0xb4]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push esi
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x84], esi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x40503f
cmp byte [ebx + 0x176], 0
je 0x405348
cmp byte [ebx + 0x175], 0
je 0x4052b7
mov edx, dword [ebx + 0xb4]
push esi
push esi
push edx
mov byte [ebx + 0x176], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x405348
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x50], eax
push reloc.WS2_32.dll_closesocket
lea eax, [esp + 0x54]
mov byte [esp + 0x5c], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push eax
push 0x40a8d0
call edx
cmp eax, esi
jne 0x405338
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov dword [esp + 0xd0], eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0xd0], eax
lea edx, [esp + 0xcc]
mov dword [esp + 0xcc], esi
mov byte [esp + 0xd4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
push edx
push 0x40a8d0
call eax
cmp eax, esi
je 0x405341
mov edi, eax
mov esi, ebx
call fcn.004082b0
mov byte [ebx + 0x176], 0
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xac]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xb8]
mov esi, edx
sub esi, dword [esp + 0xb0]
cmp byte [ebx + 0x175], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x60], esi
mov byte [ebx + 0x48a], 1
je 0x4055b8
lea ecx, [esp + 0xac]
push ecx
mov byte [ebx + 0x175], 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x405666
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x405666
mov eax, dword [ebx + 0x110]
cmp byte [eax + 0x154], 0
je 0x4054ac
mov eax, dword [ebx + 0xbc]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
test eax, eax
je 0x405405
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x405416
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x405427
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x405438
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xcc], eax
cmp byte [ebx + 0x179], al
je 0x40547a
mov eax, dword [ebx + 0x184]
mov ecx, dword [ebx + 0x188]
add esi, dword [ebx + 0x17c]
add edi, dword [ebx + 0x180]
sub dword [esp + 0x6c], eax
sub dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov esi, dword [esp + 0x84]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x5c]
call eax
jmp 0x405547
lea esi, [ebx + 0x508]
call fcn.00401d50
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov eax, dword [edx + 0x134]
push reloc.WS2_32.dll_htons
push 0
push 0x40a9b0
call eax
xor eax, eax
cmp dword [ebx + 0x50c], eax
mov dword [esp + 0x48], eax
jle 0x405547
mov ecx, dword [ebx + 0x508]
mov esi, dword [ecx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
mov edi, dword [esi]
mov ecx, esi
test al, al
jne 0x405505
mov edx, dword [edi + 0x58]
call edx
jmp 0x405512
mov edx, dword [edi + 0x50]
lea eax, [esp + 0xdc]
push eax
call edx
mov edx, dword [eax]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0x5c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
inc eax
cmp eax, dword [ebx + 0x50c]
mov dword [esp + 0x48], eax
jl 0x4054e1
cmp byte [ebx + 0x174], 0
mov byte [esp + 0x17], 1
je 0x405666
mov eax, dword [ebx + 0x110]
push 0
push 0
push 0
push str.windowinit
push eax
mov ecx, ebx
mov byte [ebx + 0x174], 0
call fcn.00408d80
cmp byte [ebx + 0x179], 0
je 0x4055a0
cmp byte [ebx + 0x18c], 0
je 0x4055a0
mov esi, ebx
call fcn.00407c60
mov byte [ebx + 0x48a], 0
mov al, 1
jmp 0x4079d9
mov ecx, dword [ebx + 0xb4]
push ecx
lea edx, [ebx + 0x670]
push edx
call fcn.00419f70
jmp 0x405666
cmp byte [ebx + 0x179], 0
je 0x4056f5
cmp byte [ebx + 0x18c], 0
je 0x405666
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0xc8]
mov esi, ecx
mov dword [esp + 0x9c], edx
test eax, eax
je 0x40560c
mov ecx, dword [esp + 0x60]
imul ecx, dword [esp + 0x10]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
call fcn.00487630
add esp, 0xc
mov eax, dword [ebx + 0x188]
sub dword [esp + 0x9c], eax
mov eax, dword [ebx + 0x110]
mov eax, dword [eax]
add esi, dword [ebx + 0x17c]
add edi, dword [ebx + 0x180]
mov edx, dword [esp + 0x98]
sub edx, dword [ebx + 0x184]
mov ecx, dword [esp + 0x9c]
push 1
sub esp, 0x10
mov dword [esp + 0x60], eax
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [ebx + 0x110]
mov edx, dword [eax + 0x5c]
call edx
cmp byte [ebx + 0x179], 0
je 0x4056f5
mov eax, dword [ebx + 0xb4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x80000
cmp eax, ecx
je 0x40569e
push ecx
mov ecx, dword [ebx + 0xb4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea esi, [ebx + 0x190]
push esi
lea edx, [esp + 0x7c]
push edx
mov eax, edx
push eax
mov byte [ebx + 0x177], 1
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0x80], eax
jle 0x4056d1
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x84], eax
jle 0x4056e8
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp byte [ebx + 0x177], 0
je 0x40573f
cmp dword [ebx + 0xc4], 0
jne 0x40573f
mov ecx, dword [ebx + 0xb8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0xb8]
mov dword [ebx + 0xbc], eax
mov eax, dword [esp + 0x60]
lea edx, [ebx + 0xc8]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
call fcn.00437b90
add esp, 0xc
mov dword [ebx + 0xc4], eax
push 0x3c
lea edx, [esp + 0x134]
push 0
push edx
mov dword [esp + 0x138], 0
call fcn.00487630
mov ecx, dword [ebx + 0xb4]
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [ebx + 0x177], 0
je 0x406024
mov edx, dword [ebx + 0xc4]
mov eax, dword [ebx + 0xbc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0xbc]
push ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [ebx + 0x179], 0
mov dword [esp + 0xa0], eax
je 0x405836
mov eax, dword [esp + 0xb8]
mov esi, eax
sub esi, dword [esp + 0x84]
mov edx, eax
sub edx, dword [esp + 0x7c]
cmp esi, edx
jge 0x405836
mov edx, dword [esp + 0x80]
mov ecx, esi
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x78]
cmp ecx, edx
jge 0x405823
mov eax, dword [esp + 0x44]
add eax, ecx
add eax, eax
add eax, eax
jmp 0x405800
mov edx, dword [ebx + 0xc8]
mov dword [eax + edx], 0
mov edx, dword [esp + 0x80]
inc ecx
add eax, 4
cmp ecx, edx
jl 0x405800
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x44], ecx
mov ecx, eax
sub ecx, dword [esp + 0x7c]
inc esi
cmp esi, ecx
jl 0x4057e5
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov edx, dword [edx + 0x150]
push 0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebx + 0xbc]
push eax
call edx
cmp byte [ebx + 0x179], 0
je 0x405a59
xor esi, esi
cmp dword [ebx + 0x4dc], esi
jle 0x405a59
nop
mov eax, dword [ebx + 0x4d8]
mov edi, dword [eax + esi*4]
push edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4058af
test esi, esi
jl 0x405a4d
mov ecx, esi
lea edx, [ebx + 0x4d8]
call fcn.00401ef0
lea edx, [ebx + 0x4e4]
mov ecx, esi
call fcn.00401ef0
jmp 0x405a4d
inc esi
push edi
mov dword [esp + 0xac], esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x405a4d
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x50]
mov edi, ebx
call fcn.00408d00
xor eax, eax
mov ecx, esi
push ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
push edx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x405a46
mov ecx, dword [ebx + 0xbc]
push ecx
mov dword [esp + 0x48], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
push edi
call fcn.00437b90
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
add esp, 0xc
imul ecx, edx
add ecx, ecx
add ecx, ecx
push ecx
mov esi, eax
mov eax, dword [esp + 0x48]
push 0
push eax
mov dword [esp + 0xd0], esi
call fcn.00487630
add esp, 0xc
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
push 0x35
push edi
push 0x317
push ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edx, ecx
sub edx, dword [esp + 0x54]
mov dword [esp + 0x40], 0
test edx, edx
jle 0x4059fe
mov eax, esi
sub eax, dword [esp + 0x50]
xor edx, edx
test eax, eax
jle 0x4059ee
lea esp, [esp]
imul eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x4059df
or eax, 0xff000000
mov dword [ecx], eax
mov esi, dword [esp + 0x58]
mov eax, esi
sub eax, dword [esp + 0x50]
inc edx
cmp edx, eax
jl 0x4059c0
mov ecx, dword [esp + 0x5c]
inc dword [esp + 0x40]
mov edx, ecx
sub edx, dword [esp + 0x54]
cmp dword [esp + 0x40], edx
jl 0x4059b0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push 0xcc0020
push 0
push 0
push edi
sub ecx, edx
push ecx
sub esi, eax
push esi
push edx
push eax
mov eax, dword [ebx + 0xbc]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x4c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xc4]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0xa8]
cmp esi, dword [ebx + 0x4dc]
jl 0x405870
xor esi, esi
cmp dword [ebx + 0x4d0], esi
jle 0x405a8b
mov eax, dword [ebx + 0x4cc]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x174]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx + 0xbc]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x4d0]
jl 0x405a63
mov eax, dword [esp + 0xa0]
mov ecx, dword [ebx + 0xbc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp byte [ebx + 0x179], 0
je 0x405f67
xor eax, eax
lea edx, [esp + 0x90]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0xb4]
push edx
push eax
mov dword [esp + 0x98], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x1a0]
cmp word [eax], 0
je 0x405e3e
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x6c], edx
mov edi, edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x17c]
sub esi, ecx
add ecx, dword [ebx + 0x180]
add edx, eax
sub edi, eax
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x184]
sub dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
mov ecx, dword [ebx + 0x188]
sub dword [esp + 0x70], ecx
mov dword [esp + 0x64], edx
mov edx, dword [ebx + 0x1a0]
cmp word [edx], 0
mov dword [esp + 0x40], edi
je 0x405ed8
cmp dword [ebx + 0xcc], 0
jne 0x405c24
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0xb8]
mov dword [ebx + 0xc0], eax
lea eax, [ebx + 0xd0]
push eax
push esi
push ecx
mov eax, edi
call fcn.00437b90
imul esi, edi
mov edx, dword [ebx + 0xd0]
add esp, 0xc
add esi, esi
add esi, esi
push esi
push 0
push edx
mov dword [ebx + 0xcc], eax
call fcn.00487630
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0xc0]
add esp, 0xc
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x208], 0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edi, dword [ebx + 0xc0]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], edx
lea esi, [esp + 0x28]
mov dword [eax + 0xc], ecx
call fcn.004315c0
mov ecx, dword [ebx + 0xc0]
push 0
lea edx, [esp + 0x78]
push edx
mov eax, edx
push eax
push ebx
push ecx
jmp 0x405c94
cmp byte [ebx + 0x18c], 0
je 0x405cba
mov edx, dword [ebx + 0xd0]
imul esi, edi
add esi, esi
add esi, esi
push esi
push 0
push edx
call fcn.00487630
mov dword [esp + 0x214], 1
mov edx, dword [esp + 0x74]
mov edi, dword [ebx + 0xc0]
push ecx
mov ecx, dword [esp + 0x74]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], ecx
lea esi, [esp + 0x28]
mov dword [eax + 0xc], edx
call fcn.004315c0
mov edx, dword [ebx + 0xc0]
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, eax
push ecx
push ebx
push edx
lea edi, [ebx + 0x1a0]
call fcn.00434360
add esp, 0x24
lea esi, [esp + 0x18]
mov dword [esp + 0x208], 0xffffffff
call fcn.00431590
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0xb8]
mov edx, eax
sub edx, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], edx
cmp edx, eax
jge 0x405ed8
mov ecx, dword [esp + 0x80]
imul edx, edi
mov dword [esp + 0x48], edx
jmp 0x405cf0
mov eax, dword [esp + 0x78]
cmp eax, ecx
mov dword [esp + 0xa8], eax
jge 0x405e17
lea esi, [edx + eax]
add esi, esi
add esi, esi
mov dword [esp + 0xc4], esi
mov ecx, dword [ebx + 0xc8]
add ecx, edx
mov edi, dword [ecx + eax]
add ecx, eax
mov eax, dword [ebx + 0xd0]
mov al, byte [esi + eax + 3]
movzx esi, al
mov edx, edi
shr edx, 0x10
movzx edx, dl
imul edx, esi
mov dword [esp + 0xa0], edx
mov eax, 0x80808081
imul edx
mov edi, edx
add edi, dword [esp + 0xa0]
mov edx, dword [ecx]
shr edx, 8
sar edi, 7
movzx edx, dl
imul edx, esi
mov eax, edi
shr eax, 0x1f
add eax, edi
movzx eax, al
shl eax, 8
mov dword [esp + 0xa0], eax
mov dword [esp + 0x88], edx
mov eax, 0x80808081
imul edx
mov edi, edx
add edi, dword [esp + 0x88]
sar edi, 7
mov eax, edi
shr eax, 0x1f
add eax, edi
movzx edx, al
mov eax, dword [esp + 0xa0]
or eax, edx
movzx edx, byte [ecx]
imul edx, esi
shl eax, 8
mov dword [esp + 0xa0], eax
mov dword [esp + 0x88], edx
mov eax, 0x80808081
imul edx
mov edi, edx
add edi, dword [esp + 0x88]
shl esi, 0x18
sar edi, 7
mov eax, edi
shr eax, 0x1f
add eax, edi
movzx edx, al
mov eax, dword [esp + 0xa0]
or eax, edx
mov edx, dword [esp + 0x48]
add eax, esi
mov esi, dword [esp + 0xc4]
mov dword [ecx], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x80]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xc4], esi
jl 0x405d11
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0xb8]
sub esi, dword [esp + 0x7c]
inc eax
add edx, edi
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
jl 0x405cf0
jmp 0x405ed8
mov eax, dword [esp + 0xb8]
mov edx, eax
sub edx, dword [esp + 0x84]
mov ecx, eax
sub ecx, dword [esp + 0x7c]
cmp edx, ecx
jge 0x405ed8
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x78]
mov ecx, edx
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
cmp esi, edi
jge 0x405ebe
mov eax, dword [esp + 0x48]
lea ecx, [eax + esi]
add ecx, ecx
add ecx, ecx
mov eax, dword [ebx + 0xc8]
add eax, ecx
cmp byte [eax + 3], 0
jne 0x405eab
cmp byte [eax], 0
jne 0x405ea0
cmp byte [eax + 1], 0
jne 0x405ea0
cmp byte [eax + 2], 0
je 0x405eab
mov byte [eax + 3], 0xff
mov edi, dword [esp + 0x80]
inc esi
add ecx, 4
cmp esi, edi
jl 0x405e81
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x48], ecx
mov ecx, eax
sub ecx, dword [esp + 0x7c]
inc edx
cmp edx, ecx
mov dword [esp + 0x88], edx
jl 0x405e72
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dl, byte [ebx + 0x178]
push 2
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ecx
mov byte [esp + 0x4a], dl
mov edx, dword [esp + 0x14]
mov dword [esp + 0xd0], eax
xor eax, eax
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0xd4], edx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov eax, dword [ebx + 0xbc]
lea edx, [esp + 0xe0]
push edx
push eax
mov eax, dword [ebx + 0xb8]
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [ebx + 0xb4]
lea edx, [esp + 0x68]
push edx
push eax
push ecx
mov byte [esp + 0x68], 0
mov byte [esp + 0x69], 0
mov byte [esp + 0x6b], 1
call dword [0x511374]
jmp 0x405fa0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [ebx + 0xbc]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x94]
sub edx, eax
push edx
mov edx, dword [esp + 0x94]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 0xb8]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0xbc]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call esi
cmp byte [ebx + 0x10d], 0
je 0x406096
cmp byte [ebx + 0x179], 0
jne 0x406096
mov eax, dword [0x511378]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call esi
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebx + 0xb8]
push eax
push edx
call esi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [ebx + 0xb8]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [ebx + 0xb8]
push edi
push edx
call esi
jmp 0x406096
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov edx, dword [edx + 0x150]
mov edi, eax
push 0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebx + 0xb8]
push eax
call edx
xor esi, esi
cmp dword [ebx + 0x4d0], esi
jle 0x406088
jmp 0x406060
mov eax, dword [ebx + 0x4cc]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x174]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx + 0xb8]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x4d0]
jl 0x406060
mov eax, dword [ebx + 0xb8]
push edi
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [ebx + 0x175], 0
mov byte [ebx + 0x48a], 0
mov byte [ebx + 0x18c], 0
je 0x4060c9
mov esi, ebx
call fcn.00407c60
cmp byte [esp + 0x17], 0
je 0x4060e9
mov eax, dword [ebx + 0x110]
push 1
push 0
push 0
push str.windowsize
push eax
mov ecx, ebx
call fcn.00408d80
mov al, 1
jmp 0x4079d9
mov edx, dword [ebx + 0xb4]
xor eax, eax
lea ecx, [esp + 0xec]
push ecx
push 1
mov dword [esp + 0xf4], eax
push edx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0xf8], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
cmp dword [esp + 0x110], 1
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], edx
je 0x4061b7
neg ecx
push ecx
neg eax
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x130]
mov ecx, dword [esp + 0x10]
test eax, eax
jle 0x4061c8
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x134]
test eax, eax
jle 0x4061d5
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jle 0x4061e2
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 0x13c]
test eax, eax
jle 0x4061ef
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jle 0x4061fc
mov dword [ecx + 8], eax
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jle case.0x406707.276
mov dword [ecx + 0xc], ebx
jmp case.0x406707.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je 0x406265
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], 0x19
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x20], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
mov ebx, dword [ebx + 0x110]
test ebx, ebx
je 0x406276
mov eax, ebx
call fcn.004211d0
mov al, 1
jmp 0x4079d9
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0xb4]
push eax
push ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebx + 0x11c], 0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x128], edx
mov dword [ebx + 0x12c], eax
je case.0x406707.276
mov esi, ebx
call fcn.00408840
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x18], 0x14
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov word [esp + 0x2e], di
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x11c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x18]
push edx
call eax
mov dword [ebx + 0x11c], 0
jmp case.0x406707.276
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x406707.276
mov edx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 5
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
mov word [esp + 0x2c], di
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebx + 0x114]
jmp 0x4071f1
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x406707.276
mov edx, dword [ebx + 0x12c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x128]
mov dword [esp + 0x18], 3
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov word [esp + 0x2c], di
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x18]
push edx
call eax
mov ecx, dword [ebx + 0x114]
mov dword [ebx + 0x120], ecx
jmp case.0x406707.276
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov ecx, dword [ebx + 0x120]
test ecx, ecx
je case.0x406707.276
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x128]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x18], 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
mov word [esp + 0x2c], di
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x120]
mov dword [esp + 0x20], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [ebx + 0x120], 0
jmp case.0x406707.276
xor esi, esi
cmp dword [ebx + 0x110], esi
je case.0x406707.276
cmp ax, 1
jne case.0x406707.276
cmp byte [ebx + 0x489], 0
jne 0x40503f
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, ebx
call fcn.0040a7a0
mov ebx, eax
cmp ebx, esi
je case.0x406707.276
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
test al, 2
je case.0x406707.276
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x1a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call edx
mov al, 1
jmp 0x4079d9
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x406707.276
xor eax, eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xec], 0x18
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], eax
mov dword [esp + 0xf0], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebx + 0x114]
mov dword [esp + 0xf4], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0xec]
push eax
mov ecx, ebx
call edx
jmp case.0x406707.276
cmp byte [ebx + 0x489], 0
je case.0x406707.276
mov esi, ebx
call fcn.00408840
jmp case.0x406707.276
test eax, eax
je case.0x406707.276
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [eax]
push edi
add edx, 0x2000
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov al, 1
jmp 0x4079d9
cmp edx, 0x2a1
ja 0x40766b
je 0x407424
lea ecx, [edx - 0x113]
cmp ecx, 0xf7
ja case.0x406707.276
movzx ecx, byte [ecx + 0x407b68]
jmp dword [ecx*4 + 0x407b38]
xor ecx, ecx
cmp dword [ebx + 0x4a0], ecx
jle case.0x406707.276
mov eax, dword [ebx + 0x49c]
mov esi, dword [eax]
mov edx, dword [ebx + 0xb4]
cmp dword [esi + 8], edx
jne 0x40673d
movzx edx, di
cmp dword [esi + 0xc], edx
jne 0x40673d
cmp byte [esi + 0x10], 0
je 0x40674e
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x4a0]
jl 0x406722
jmp case.0x406707.276
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x18], 0x1b
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x128]
mov edx, dword [ebx + 0x12c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.00402e70
mov ecx, dword [esp + 0x10]
mov word [esp + 0x2e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
jmp case.0x406707.276
cmp byte [ebx + 0x488], 0
jne 0x406838
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0xd4]
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x68], 3
test eax, eax
jne 0x40680e
mov ecx, dword [ebx + 0x108]
mov dword [esp + 0x70], ecx
jmp 0x406822
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x70], eax
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov eax, dword [esp + 0x10]
mov byte [ebx + 0x488], 1
movsx esi, ax
shr eax, 0x10
cwde
mov dword [esp + 0x3c], eax
mov byte [esp + 0x17], 1
cmp dword [ebx + 0x128], esi
jne 0x40685d
cmp dword [ebx + 0x12c], eax
jne 0x40685d
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x3c]
push eax
push esi
mov ecx, ebx
mov dword [ebx + 0x128], esi
mov dword [ebx + 0x12c], eax
call fcn.0040a7a0
mov dword [esp + 0x60], eax
test eax, eax
je 0x40688f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x406707.276
cmp byte [esp + 0x17], 0
je 0x406b82
cmp byte [ebx + 0x741], 0
je 0x406b82
cmp edi, 1
jne 0x406b82
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xc
call fcn.004872c3
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
test esi, esi
je case.0x406707.276
mov dword [esi], vtable.DuiLib::CIDropSource.0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
push 0x3c
call fcn.004872c3
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x208], 3
test eax, eax
je 0x40690d
push esi
push eax
call fcn.00418700
jmp 0x40690f
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x208], 0xffffffff
test eax, eax
je case.0x406707.276
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, 0x10
mov edx, 2
push 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x744]
push edx
push eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 0xffffffff
mov word [esp + 0x70], dx
call dword [sym.imp.ole32.dll_OleDuplicateData]
push 0
mov esi, eax
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x5c], esi
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
push eax
push edi
call ecx
lea edx, [esp + 0xac]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
xor eax, eax
push eax
push eax
mov dword [esp + 0xa4], edx
mov edx, dword [ebx + 0xb8]
mov dword [esp + 0xa0], ecx
push eax
mov ecx, 0xe
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov word [esp + 0x74], cx
mov dword [esp + 0x84], 0x40
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push eax
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x9c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xac]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x38]
push edx
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 1
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x58], 0x40
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push edx
push edi
call eax
lea ecx, [esp + 0xa4]
push ecx
push 0x4ae784
push 1
push 0
push 0x4ae734
mov dword [esp + 0xb4], vtable.DuiLib::CDragSourceHelper.0
mov dword [esp + 0xb8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esp + 0x208], 4
mov eax, dword [esp + 0xb0]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], 0
push 5
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
push esi
lea edx, [esp + 0xac]
push edx
lea esi, [esp + 0xa0]
lea edi, [esp + 0x48]
call fcn.0040bef0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x88]
push eax
push 3
push ecx
push edx
call dword [sym.imp.ole32.dll_DoDragDrop]
cmp dword [esp + 0x88], 0
mov eax, dword [esp + 0x48]
push eax
je 0x406b4b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
jmp 0x406b53
call fcn.00487056
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0xa0]
mov byte [ebx + 0x741], 0
mov dword [esp + 0x208], 0xffffffff
call fcn.0040bf70
jmp case.0x406707.276
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
call fcn.00402e70
cmp byte [ebx + 0x489], 0
mov word [esp + 0x2e], ax
jne 0x406d1e
mov edx, dword [esp + 0x3c]
push edx
push esi
mov ecx, ebx
call fcn.0040a7a0
mov esi, eax
mov dword [esp + 0x60], esi
test esi, esi
je 0x406c05
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
cmp eax, ebx
jne case.0x406707.276
mov eax, dword [ebx + 0x118]
cmp esi, eax
je 0x406ceb
test eax, eax
je 0x406ceb
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x524]
lea esi, [esp + 0x50]
mov dword [esp + 0x18], 0xa
call fcn.00401c90
mov dword [esp + 0x208], 5
mov eax, dword [ebx + 0x524]
push eax
call fcn.00401d80
mov eax, dword [ebx + 0x524]
mov ecx, dword [ebx + 0x520]
add eax, eax
add eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004877d0
mov edi, dword [esp + 0x60]
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x406c91
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x18]
push edx
call eax
inc esi
cmp esi, edi
jl 0x406c76
mov ecx, dword [ebx + 0x118]
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
mov eax, dword [ebx + 0xd4]
mov dword [ebx + 0x118], 0
test eax, eax
je 0x406ccf
lea ecx, [ebx + 0xd8]
push ecx
push 0
push 0x411
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x208], 0xffffffff
mov eax, dword [esp + 0x50]
test eax, eax
je 0x406ceb
push eax
call fcn.0048836e
add esp, 4
mov esi, dword [esp + 0x60]
cmp esi, dword [ebx + 0x118]
je 0x406d1e
test esi, esi
je 0x406d1e
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x1c], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x118], esi
mov ebx, dword [ebx + 0x11c]
test ebx, ebx
je 0x406d4a
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx]
mov edx, dword [eax + 0x140]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call edx
jmp case.0x406707.276
mov ecx, dword [esp + 0x60]
test ecx, ecx
je case.0x406707.276
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 0x18]
push edx
call eax
jmp case.0x406707.276
cmp byte [ebx + 0x10c], 0
jne 0x406d8c
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x90], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x90], eax
mov dword [ebx + 0x128], eax
call fcn.0040a7a0
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je case.0x406707.276
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, ebx
jne case.0x406707.276
cmp byte [ebx + 0x740], 0
je 0x406e54
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
test al, al
je 0x406e54
mov eax, dword [ebx + 0x744]
mov byte [ebx + 0x741], 1
test eax, eax
je 0x406e20
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x744], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push esi
mov dword [ecx + 8], edx
push ebx
mov dword [ecx + 0xc], eax
call fcn.00437980
add esp, 0x18
mov dword [ebx + 0x744], eax
mov esi, ebx
call fcn.00408820
mov esi, dword [esp + 0x38]
mov dword [ebx + 0x11c], esi
mov edx, dword [esi]
mov eax, dword [edx + 0x128]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2e], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
jmp case.0x406707.276
cmp byte [ebx + 0x10c], 0
jne 0x406ef8
mov eax, dword [ebx + 0xb4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x90], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x90], eax
mov dword [ebx + 0x128], eax
call fcn.0040a7a0
mov dword [esp + 0x38], eax
test eax, eax
je case.0x406707.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x406707.276
mov esi, ebx
call fcn.00408820
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x13
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov word [esp + 0x2e], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x11c], esi
jmp case.0x406707.276
movsx ecx, ax
shr eax, 0x10
cmp dword [ebx + 0x11c], 0
cwde
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], eax
je case.0x406707.276
mov esi, ebx
call fcn.00408840
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2e], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x11c]
mov dword [esp + 0x20], eax
mov dword [ebx + 0x11c], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
jmp case.0x406707.276
cmp byte [ebx + 0x10c], 0
jne 0x40708b
mov eax, dword [ebx + 0xb4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x40], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x40], eax
mov dword [ebx + 0x128], eax
call fcn.0040a7a0
mov dword [esp + 0x4c], eax
test eax, eax
je case.0x406707.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x406707.276
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov esi, ebx
call fcn.00408820
mov dword [esp + 0x18], 0xf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2e], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x11c], esi
jmp case.0x406707.276
cmp byte [ebx + 0x489], 0
je 0x40716c
mov esi, ebx
call fcn.00408840
mov eax, dword [esp + 0x10]
movsx esi, ax
shr eax, 0x10
cwde
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [ebx + 0x128], esi
mov dword [ebx + 0x12c], eax
call fcn.0040a7a0
mov dword [ebx + 0x11c], eax
test eax, eax
je case.0x406707.276
mov dword [esp + 0x18], 0x10
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov word [esp + 0x2e], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebx + 0x11c]
mov dword [esp + 0x20], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call edx
jmp case.0x406707.276
cmp byte [ebx + 0x10c], 0
jne 0x407221
mov eax, dword [ebx + 0xb4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x40], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x40], eax
mov dword [ebx + 0x128], eax
call fcn.0040a7a0
mov dword [esp + 0x4c], eax
test eax, eax
je case.0x406707.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x406707.276
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov esi, ebx
call fcn.00408820
mov dword [esp + 0x18], 0x11
jmp 0x4070ef
cmp byte [ebx + 0x489], 0
je 0x40729a
mov esi, ebx
call fcn.00408840
mov eax, dword [esp + 0x10]
movsx esi, ax
shr eax, 0x10
cwde
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [ebx + 0x128], esi
mov dword [ebx + 0x12c], eax
call fcn.0040a7a0
mov dword [ebx + 0x11c], eax
test eax, eax
je case.0x406707.276
mov dword [esp + 0x18], 0x12
jmp 0x4071a6
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0xb4]
push eax
push ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [ebx + 0x128], eax
call fcn.0040a7a0
mov esi, eax
test esi, esi
je case.0x406707.276
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, ebx
jne case.0x406707.276
shr edi, 0x10
xor eax, eax
movsx ecx, di
movzx edx, cx
shl edx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
setl al
mov dword [esp + 0x18], 0x15
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], ecx
or edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00402e70
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
movzx eax, word [ebx + 0x12c]
movzx ecx, word [ebx + 0x128]
mov edx, dword [ebx + 0xb4]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x200
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x406707.276
test eax, eax
je case.0x406707.276
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push edi
add ecx, 0x2000
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
test eax, eax
je case.0x406707.276
mov al, 1
jmp 0x4079d9
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x110]
push 0x15
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x54]
mov byte [ebx + 0x488], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
push edx
push 0x40a8a0
call eax
mov esi, eax
test esi, esi
je case.0x406707.276
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x4074e5
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00402e70
mov ecx, dword [ebx + 0x118]
mov word [esp + 0x2e], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x18]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
lea ecx, [esp + 0x16c]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x208], 2
mov eax, dword [esp + 0x16c]
cmp word [eax], 0
jne 0x40752c
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x407525
push eax
call fcn.0048836e
add esp, 4
mov al, 1
jmp 0x4079d9
push 0x30
lea edi, [ebx + 0xd8]
push 0
push edi
call fcn.00487630
mov eax, dword [ebx + 0xb4]
mov edx, dword [0x511384]
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], eax
mov eax, dword [esp + 0x178]
mov dword [ebx + 0xfc], eax
mov dword [edi], 0x30
mov dword [ebx + 0xdc], 1
mov dword [ebx + 0xf8], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
add esp, 0xc
mov ecx, esi
call eax
cmp dword [ebx + 0xd4], 0
mov ecx, dword [eax]
mov dword [ebx + 0xe8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0xec], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0xf0], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xf4], edx
jne 0x40761e
mov eax, dword [0x511384]
mov ecx, dword [ebx + 0xb4]
push 0
push eax
push 0
push ecx
push connect
push connect
push connect
push connect
push reloc.WS2_32.dll_closesocket
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
push 0
push 0x432
push eax
mov dword [ebx + 0xd4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
mov ecx, esi
call eax
mov ecx, dword [ebx + 0xd4]
push eax
push 0
push 0x418
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0xd4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x407656
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push eax
mov eax, dword [ebx + 0xd4]
push 0x436
push eax
call esi
mov ecx, dword [ebx + 0xd4]
push edi
push 1
push 0x411
push ecx
call esi
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
jmp 0x40751a
sub edx, 0x2a3
je 0x4078a0
sub edx, 0x75
je 0x4077a3
sub edx, 0x7ce9
jne case.0x406707.276
xor esi, esi
cmp dword [ebx + 0x4f4], esi
jle 0x4076b4
mov eax, dword [ebx + 0x4f0]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x4076ab
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc esi
cmp esi, dword [ebx + 0x4f4]
jl 0x407696
mov eax, dword [ebx + 0x4f0]
test eax, eax
je 0x4076c7
push eax
call fcn.0048836e
add esp, 4
xor eax, eax
mov dword [ebx + 0x4f0], eax
mov dword [ebx + 0x4f8], eax
mov dword [ebx + 0x4f4], eax
mov byte [ebx + 0x48c], al
cmp dword [ebx + 0x500], 0
jle case.0x406707.276
mov ecx, dword [ebx + 0x4fc]
mov esi, dword [ecx]
test esi, esi
je case.0x406707.276
mov eax, dword [ebx + 0x500]
test eax, eax
jle 0x40772e
dec eax
mov dword [ebx + 0x500], eax
test eax, eax
jle 0x40772e
mov ecx, dword [ebx + 0x4fc]
lea edx, [eax*4]
push edx
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004877d0
add esp, 0xc
mov eax, dword [esi + 0x108]
test eax, eax
je 0x407747
cmp dword [eax + 0x3c], 0
jle 0x407747
push esi
lea edi, [eax + 0x38]
call fcn.0043c170
xor edi, edi
cmp dword [ebx + 0x494], edi
jle 0x40776a
mov ecx, dword [ebx + 0x490]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
inc edi
cmp edi, dword [ebx + 0x494]
jl 0x407751
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x88]
cmp eax, ecx
je 0x407783
push eax
call fcn.0048836e
add esp, 4
mov eax, dword [esi]
lea edx, [esi + 4]
cmp eax, edx
je 0x407795
push eax
call fcn.0048836e
add esp, 4
push esi
call fcn.00487056
add esp, 4
jmp 0x4076e1
cmp dword [ebx + 0x110], 0
je case.0x406707.276
mov ecx, dword [ebx + 0xb4]
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov edx, dword [edx + 0x150]
mov dword [esp + 0x88], eax
push 0
lea eax, [esp + 0x94]
push eax
push edi
call edx
test byte [esp + 0x10], 0x10
je 0x40788c
mov eax, dword [ebx + 0xb4]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x40788c
mov eax, dword [esp + 0x10]
or eax, 2
mov dword [esp + 0x38], eax
lea ecx, [ecx]
xor eax, eax
lea ecx, [esp + 0x64]
push ecx
push esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0xb4]
push 2
lea edx, [esp + 0x68]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push 0
neg ecx
push ecx
neg edx
push edx
push edi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [esp + 0x38]
push eax
push edi
push 0x317
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x407820
mov ecx, dword [esp + 0x88]
push ecx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp case.0x406707.276
mov eax, dword [ebx + 0xd4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4078c1
lea edx, [ebx + 0xd8]
push edx
push 0
push 0x411
push eax
call esi
cmp byte [ebx + 0x488], 0
je 0x4079d0
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
xor edi, edi
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x94], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4079bf
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 0xb4]
jne 0x4079bf
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4079bf
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
mov eax, dword [ebx + 0xb4]
shl ecx, 0x10
or ecx, edx
push ecx
push edi
push 0x84
push eax
call esi
cmp eax, 1
jne 0x4079ae
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [esp + 0x3c]
movzx ecx, word [esp + 0x38]
mov edx, dword [ebx + 0xb4]
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push edx
jmp 0x4079ce
mov eax, dword [ebx + 0xb4]
push 0xffffffffffffffff
push edi
push 0x200
push eax
jmp 0x4079ce
mov ecx, dword [ebx + 0xb4]
push 0xffffffffffffffff
push edi
push 0x200
push ecx
call esi
mov byte [ebx + 0x488], 0
xor al, al
mov ecx, dword [esp + 0x200]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00486dc0
mov esp, ebp
pop ebp
ret 0x10