Function at 0x404b40
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 0x490695
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
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.0x40631e.276
mov ecx, dword [ebx + 0x428]
xor esi, esi
test ecx, ecx
jle 0x404bea
lea ecx, [ecx]
mov edx, dword [ebx + 0x424]
mov byte [esp + 0x1f], 0
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x1f]
push edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0xc]
push edi
push edx
call eax
cmp byte [esp + 0x1f], 0
jne 0x404c3e
inc esi
cmp esi, dword [ebx + 0x428]
jl 0x404bb0
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
cmp byte [ebx + 0x179], 0
je 0x404cd7
mov ecx, edx
sub ecx, 0x83
je 0x404cc6
sub ecx, 2
je 0x404cc6
sub ecx, 1
jne 0x404cd7
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x404d14
mov ecx, dword [esp + 0x40]
test edi, edi
sete al
mov dword [ecx], eax
mov al, 1
jmp 0x4075f9
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x203
ja 0x404c7f
cmp eax, 0x200
jae 0x404c61
cmp eax, 0x7b
je 0x404c86
mov al, 1
jmp 0x4075f9
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 0x4075f9
cmp eax, 0x20a
jne 0x404cbf
mov eax, dword [esp + 0x10]
movsx edx, ax
shr eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0xb4]
cwde
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x12c], ecx
mov al, 1
jmp 0x4075f9
mov edx, dword [esp + 0x40]
mov dword [edx], 0
mov al, 1
jmp 0x4075f9
cmp edx, 0x111
ja 0x4062f3
jne 0x404d18
test eax, eax
je case.0x40631e.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.0x40631e.276
mov al, 1
jmp 0x4075f9
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 5]
cmp ecx, 0xfd
ja case.0x40631e.276
movzx ecx, byte [ecx + 0x407654]
jmp dword [ecx*4 + 0x407620]
mov edx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x404dab
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x24], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x404dd0
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x24], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
lea edx, [esp + 0x20]
push edx
call eax
xor edi, edi
mov esi, ebx
call fcn.00407ed0
mov esi, dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x404dfd
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x404dfd
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xd4]
test eax, eax
je case.0x40631e.276
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 0xd4], edi
jmp case.0x40631e.276
mov ecx, dword [esp + 0x40]
mov dword [ecx], 1
mov al, 1
jmp 0x4075f9
xor esi, esi
cmp dword [ebx + 0x110], esi
jne 0x404e9d
push 0x3c
lea edx, [esp + 0xf4]
push esi
push edx
mov dword [esp + 0xf8], esi
call fcn.00477820
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.00432260
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 0x4075f9
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0xb0]
xor eax, eax
push ecx
push edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 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 0x404cbf
cmp byte [ebx + 0x176], 0
je 0x404fc8
cmp byte [ebx + 0x175], 0
je 0x404f37
mov edx, dword [ebx + 0xb4]
push esi
push esi
push edx
mov byte [ebx + 0x176], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x404fc8
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x68], eax
push reloc.WS2_32.dll_closesocket
lea eax, [esp + 0x6c]
mov byte [esp + 0x74], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x128]
push eax
push 0x40a560
call edx
cmp eax, esi
jne 0x404fb8
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 + 0x128]
push edx
push 0x40a560
call eax
cmp eax, esi
je 0x404fc1
mov edi, eax
mov esi, ebx
call fcn.00407ed0
mov byte [ebx + 0x176], 0
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb0]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov esi, edx
sub esi, dword [esp + 0xb4]
cmp byte [ebx + 0x175], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x50], esi
mov byte [ebx + 0x3ee], 1
je 0x405237
lea ecx, [esp + 0xb0]
push ecx
mov byte [ebx + 0x175], 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4052e5
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4052e5
mov eax, dword [ebx + 0x110]
cmp byte [eax + 0x154], 0
je 0x405126
mov eax, dword [ebx + 0xbc]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
test eax, eax
je 0x405085
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x405096
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x4050a7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4050b8
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 0x4050fa
mov eax, dword [ebx + 0x184]
mov ecx, dword [ebx + 0x188]
add esi, dword [ebx + 0x17c]
add edi, dword [ebx + 0x180]
sub dword [esp + 0x5c], eax
sub dword [esp + 0x60], 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 + 0x70]
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov esi, dword [esp + 0x74]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x54]
call eax
jmp 0x4051c6
lea esi, [ebx + 0x46c]
call fcn.00401c90
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
push reloc.OLEAUT32.dll_VariantCopy
push 0
push 0x40a640
call eax
xor eax, eax
cmp dword [ebx + 0x470], eax
mov dword [esp + 0x4c], eax
jle 0x4051c6
jmp 0x405160
mov ecx, dword [ebx + 0x46c]
mov esi, dword [ecx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x120]
mov ecx, esi
call eax
mov edi, dword [esi]
mov ecx, esi
test al, al
jne 0x405184
mov edx, dword [edi + 0x50]
call edx
jmp 0x405191
mov edx, dword [edi + 0x48]
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 + 0x54]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, dword [ebx + 0x470]
mov dword [esp + 0x4c], eax
jl 0x405160
cmp byte [ebx + 0x174], 0
mov byte [esp + 0x1f], 1
je 0x4052e5
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.004089a0
cmp byte [ebx + 0x179], 0
je 0x40521f
cmp byte [ebx + 0x18c], 0
je 0x40521f
mov esi, ebx
call fcn.00407880
mov byte [ebx + 0x3ee], 0
mov al, 1
jmp 0x4075f9
mov ecx, dword [ebx + 0xb4]
push ecx
lea edx, [ebx + 0x5d4]
push edx
call fcn.00419900
jmp 0x4052e5
cmp byte [ebx + 0x179], 0
je 0x405374
cmp byte [ebx + 0x18c], 0
je 0x4052e5
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0xc8]
mov esi, ecx
mov dword [esp + 0x9c], edx
test eax, eax
je 0x40528b
mov ecx, dword [esp + 0x50]
imul ecx, dword [esp + 0x10]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
call fcn.00477820
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 + 0x5c], 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 + 0x5c]
mov ecx, dword [ebx + 0x110]
mov edx, dword [eax + 0x54]
call edx
cmp byte [ebx + 0x179], 0
je 0x405374
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 0x40531d
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 + 0xb8]
cmp dword [esp + 0x80], eax
jle 0x405350
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xbc]
cmp dword [esp + 0x84], eax
jle 0x405367
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 0x4053be
cmp dword [ebx + 0xc4], 0
jne 0x4053be
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 + 0x50]
lea edx, [ebx + 0xc8]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
call fcn.004355c0
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.00477820
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 0x405c57
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 + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [ebx + 0x179], 0
mov dword [esp + 0xa4], eax
je 0x4054b6
mov eax, dword [esp + 0xbc]
mov esi, eax
sub esi, dword [esp + 0x84]
mov edx, eax
sub edx, dword [esp + 0x7c]
cmp esi, edx
jge 0x4054b6
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 0x4054a3
mov eax, dword [esp + 0x44]
add eax, ecx
add eax, eax
add eax, eax
jmp 0x405480
mov edx, dword [ebx + 0xc8]
mov dword [eax + edx], 0
mov edx, dword [esp + 0x80]
inc ecx
add eax, 4
cmp ecx, edx
jl 0x405480
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x44], ecx
mov ecx, eax
sub ecx, dword [esp + 0x7c]
inc esi
cmp esi, ecx
jl 0x405464
mov ecx, dword [ebx + 0x110]
mov edx, dword [ecx]
mov edx, dword [edx + 0x144]
push 0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebx + 0xbc]
push eax
call edx
cmp byte [ebx + 0x179], 0
je 0x4056d9
xor esi, esi
cmp dword [ebx + 0x440], esi
jle 0x4056d9
nop
mov eax, dword [ebx + 0x43c]
mov edi, dword [eax + esi*4]
push edi
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40552f
test esi, esi
jl 0x4056cd
mov ecx, esi
lea edx, [ebx + 0x43c]
call fcn.00401e30
lea edx, [ebx + 0x448]
mov ecx, esi
call fcn.00401e30
jmp 0x4056cd
inc esi
push edi
mov dword [esp + 0xb0], esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4056cd
mov eax, dword [esp + 0x4c]
lea esi, [esp + 0x68]
mov edi, ebx
call fcn.00408920
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 0x4056c6
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 + 0x74]
sub eax, dword [esp + 0x6c]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
push edi
call fcn.004355c0
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x80]
sub edx, dword [esp + 0x78]
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 + 0xac], esi
call fcn.00477820
add esp, 0xc
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x4c]
push 0x35
push edi
push 0x317
push ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov edx, ecx
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x40], 0
test edx, edx
jle 0x40567e
mov eax, esi
sub eax, dword [esp + 0x68]
xor edx, edx
test eax, eax
jle 0x40566e
nop
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 0x40565f
or eax, 0xff000000
mov dword [ecx], eax
mov esi, dword [esp + 0x70]
mov eax, esi
sub eax, dword [esp + 0x68]
inc edx
cmp edx, eax
jl 0x405640
mov ecx, dword [esp + 0x74]
inc dword [esp + 0x40]
mov edx, ecx
sub edx, dword [esp + 0x6c]
cmp dword [esp + 0x40], edx
jl 0x405633
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
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 + 0x48]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xa0]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0xac]
cmp esi, dword [ebx + 0x440]
jl 0x4054f0
xor esi, esi
cmp dword [ebx + 0x434], esi
jle 0x40570b
mov eax, dword [ebx + 0x430]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x168]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx + 0xbc]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x434]
jl 0x4056e3
mov eax, dword [esp + 0xa4]
mov ecx, dword [ebx + 0xbc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp byte [ebx + 0x179], 0
je 0x405b9a
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 0x405a6e
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x5c], edx
mov edi, edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0x17c]
sub esi, ecx
add ecx, dword [ebx + 0x180]
add edx, eax
sub edi, eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x184]
sub dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x188]
sub dword [esp + 0x60], ecx
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 0x1a0]
cmp word [edx], 0
mov dword [esp + 0x40], edi
je 0x405b08
cmp dword [ebx + 0xcc], 0
jne 0x40585f
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.004355c0
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.00477820
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
sub esp, 0x10
jmp 0x40588e
cmp byte [ebx + 0x18c], 0
je 0x4058eb
mov ecx, dword [ebx + 0xd0]
imul esi, edi
add esi, esi
add esi, esi
push esi
push 0
push ecx
call fcn.00477820
mov dword [esp + 0x214], 1
push ecx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edi, dword [ebx + 0xc0]
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], edx
lea esi, [esp + 0x30]
mov dword [eax + 0xc], ecx
call fcn.0042ef30
mov eax, dword [ebx + 0xc0]
push 0
lea edx, [esp + 0x68]
push edx
push ebx
push eax
lea ecx, [ebx + 0x1a0]
call fcn.00432110
add esp, 0x20
mov dword [esp + 0x208], 0xffffffff
call fcn.0042ef00
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0xbc]
mov edx, eax
sub edx, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x48], edx
cmp edx, eax
jge 0x405b08
mov ecx, dword [esp + 0x80]
imul edx, edi
mov dword [esp + 0x4c], edx
lea esp, [esp]
mov eax, dword [esp + 0x78]
cmp eax, ecx
mov dword [esp + 0xac], eax
jge 0x405a47
lea esi, [edx + eax]
add esi, esi
add esi, esi
mov dword [esp + 0xa0], esi
mov ecx, dword [ebx + 0xc8]
add ecx, edx
mov edx, dword [ebx + 0xd0]
mov edi, dword [ecx + eax]
add ecx, eax
mov al, byte [esi + edx + 3]
movzx esi, al
mov eax, edi
shr eax, 0x10
movzx edx, al
imul edx, esi
mov dword [esp + 0xa4], edx
mov eax, 0x80808081
imul edx
mov edi, edx
add edi, dword [esp + 0xa4]
sar edi, 7
mov edx, edi
shr edx, 0x1f
add edx, edi
movzx eax, dl
mov edx, dword [ecx]
shr edx, 8
shl eax, 8
movzx edx, dl
imul edx, esi
mov dword [esp + 0xa4], 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 + 0xa4]
or eax, edx
movzx edx, byte [ecx]
imul edx, esi
shl eax, 8
mov dword [esp + 0xa4], 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 + 0xa4]
or eax, edx
mov edx, dword [esp + 0x4c]
add eax, esi
mov esi, dword [esp + 0xa0]
mov dword [ecx], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x80]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0xa0], esi
jl 0x405941
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0xbc]
sub esi, dword [esp + 0x7c]
inc eax
add edx, edi
cmp eax, esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jl 0x405920
jmp 0x405b08
mov eax, dword [esp + 0xbc]
mov edx, eax
sub edx, dword [esp + 0x84]
mov ecx, eax
sub ecx, dword [esp + 0x7c]
cmp edx, ecx
jge 0x405b08
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x78]
mov ecx, edx
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
cmp esi, edi
jge 0x405aee
mov eax, dword [esp + 0x4c]
lea ecx, [eax + esi]
add ecx, ecx
add ecx, ecx
mov eax, dword [ebx + 0xc8]
add eax, ecx
cmp byte [eax + 3], 0
jne 0x405adb
cmp byte [eax], 0
jne 0x405ad0
cmp byte [eax + 1], 0
jne 0x405ad0
cmp byte [eax + 2], 0
je 0x405adb
mov byte [eax + 3], 0xff
mov edi, dword [esp + 0x80]
inc esi
add ecx, 4
cmp esi, edi
jl 0x405ab1
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x4c], ecx
mov ecx, eax
sub ecx, dword [esp + 0x7c]
inc edx
cmp edx, ecx
mov dword [esp + 0x88], edx
jl 0x405aa2
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dl, byte [ebx + 0x178]
push 2
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], 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 + 0x80]
push edx
push eax
push ecx
mov byte [esp + 0x68], 0
mov byte [esp + 0x69], 0
mov byte [esp + 0x6b], 1
call dword [0x4fa9b8]
jmp 0x405bd3
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 + 0x14]
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 0x405cc6
cmp byte [ebx + 0x179], 0
jne 0x405cc6
mov eax, dword [0x4fa9bc]
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 0x405cc6
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 + 0x144]
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 + 0x434], esi
jle 0x405cb8
mov edi, edi
mov eax, dword [ebx + 0x430]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x168]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx + 0xb8]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x434]
jl 0x405c90
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 + 0x3ee], 0
mov byte [ebx + 0x18c], 0
je 0x405cf9
mov esi, ebx
call fcn.00407880
cmp byte [esp + 0x1f], 0
je 0x405d19
mov eax, dword [ebx + 0x110]
push 1
push 0
push 0
push str.windowsize
push eax
mov ecx, ebx
call fcn.004089a0
mov al, 1
jmp 0x4075f9
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 0x405de7
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 0x405df8
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x134]
test eax, eax
jle 0x405e05
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jle 0x405e12
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 0x13c]
test eax, eax
jle 0x405e1f
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jle 0x405e2c
mov dword [ecx + 8], eax
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jle case.0x40631e.276
mov dword [ecx + 0xc], ebx
jmp case.0x40631e.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je 0x405e95
xor eax, 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 + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], 0x19
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
mov ebx, dword [ebx + 0x110]
test ebx, ebx
je 0x405ea6
mov eax, ebx
call fcn.00420b30
mov al, 1
jmp 0x4075f9
cmp dword [ebx + 0x110], 0
je case.0x40631e.276
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0xb4]
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebx + 0x11c], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x128], edx
mov dword [ebx + 0x12c], eax
je case.0x40631e.276
mov esi, ebx
call fcn.00408460
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov word [esp + 0x36], di
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x11c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
lea edx, [esp + 0x20]
push edx
call eax
mov dword [ebx + 0x11c], 0
jmp case.0x40631e.276
cmp dword [ebx + 0x110], 0
je case.0x40631e.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x40631e.276
mov edx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 5
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov word [esp + 0x34], di
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebx + 0x114]
jmp 0x406e19
cmp dword [ebx + 0x110], 0
je case.0x40631e.276
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x40631e.276
mov edx, dword [ebx + 0x12c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x128]
mov dword [esp + 0x20], 3
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov word [esp + 0x34], di
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
lea edx, [esp + 0x20]
push edx
call eax
mov ecx, dword [ebx + 0x114]
mov dword [ebx + 0x120], ecx
jmp case.0x40631e.276
cmp dword [ebx + 0x110], 0
je case.0x40631e.276
mov ecx, dword [ebx + 0x120]
test ecx, ecx
je case.0x40631e.276
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x128]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x20], 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov word [esp + 0x34], di
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x120]
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
mov dword [ebx + 0x120], 0
jmp case.0x40631e.276
xor esi, esi
cmp dword [ebx + 0x110], esi
je case.0x40631e.276
cmp ax, 1
jne case.0x40631e.276
cmp byte [ebx + 0x3ed], 0
jne 0x404cbf
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0040a430
mov ebx, eax
cmp ebx, esi
je case.0x40631e.276
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
test al, 2
je case.0x40631e.276
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0x1a
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov al, 1
jmp 0x4075f9
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je case.0x40631e.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 + 0x134]
lea eax, [esp + 0xec]
push eax
mov ecx, ebx
call edx
jmp case.0x40631e.276
test eax, eax
je case.0x40631e.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 0x4075f9
cmp edx, 0x2a1
ja 0x407288
je 0x407041
lea ecx, [edx - 0x113]
cmp ecx, 0xf7
ja case.0x40631e.276
movzx ecx, byte [ecx + 0x407784]
jmp dword [ecx*4 + 0x407754]
xor ecx, ecx
cmp dword [ebx + 0x404], ecx
jle case.0x40631e.276
mov eax, dword [ebx + 0x400]
lea esp, [esp]
mov esi, dword [eax]
mov edx, dword [ebx + 0xb4]
cmp dword [esi + 8], edx
jne 0x40635b
movzx edx, di
cmp dword [esi + 0xc], edx
jne 0x40635b
cmp byte [esi + 0x10], 0
je 0x40636c
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x404]
jl 0x406340
jmp case.0x40631e.276
xor eax, 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 + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov dword [esp + 0x20], 0x1b
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x128]
mov edx, dword [ebx + 0x12c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00402db0
mov ecx, dword [esp + 0x10]
mov word [esp + 0x36], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi]
mov dword [esp + 0x38], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
jmp case.0x40631e.276
cmp byte [ebx + 0x3ec], 0
jne 0x406456
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0xd4]
mov dword [esp + 0x54], 0x10
mov dword [esp + 0x58], 3
test eax, eax
jne 0x40642c
mov ecx, dword [ebx + 0x108]
mov dword [esp + 0x60], ecx
jmp 0x406440
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x60], eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov eax, dword [esp + 0x10]
mov byte [ebx + 0x3ec], 1
movsx esi, ax
shr eax, 0x10
cwde
mov dword [esp + 0x18], eax
mov byte [esp + 0x1f], 1
cmp dword [ebx + 0x128], esi
jne 0x40647b
cmp dword [ebx + 0x12c], eax
jne 0x40647b
mov byte [esp + 0x1f], 0
mov eax, dword [esp + 0x18]
push eax
push esi
mov ecx, ebx
mov dword [ebx + 0x128], esi
mov dword [ebx + 0x12c], eax
call fcn.0040a430
mov dword [esp + 0x50], eax
test eax, eax
je 0x4064ad
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x40631e.276
cmp byte [esp + 0x1f], 0
je 0x4067a6
cmp byte [ebx + 0x6a4], 0
je 0x4067a6
cmp edi, 1
jne 0x4067a6
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xc
call fcn.004776e1
mov esi, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, edi
je case.0x40631e.276
mov dword [esi], vtable.DuiLib::CIDropSource.0
mov dword [esi + 4], edi
mov byte [esi + 8], 0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
push 0x3c
call fcn.004776e1
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x208], 3
cmp eax, edi
je 0x40652f
push esi
push eax
call fcn.00417f20
mov edi, eax
mov dword [esp + 0x44], eax
jmp 0x406533
mov dword [esp + 0x44], edi
or esi, 0xffffffff
mov dword [esp + 0x208], esi
test edi, edi
je case.0x40631e.276
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, 0x10
mov edx, 2
push 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x6a8]
push edx
push eax
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], esi
mov word [esp + 0x60], dx
call dword [sym.imp.ole32.dll_OleDuplicateData]
push 0
mov esi, eax
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x74], esi
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
push eax
push edi
mov dword [esp + 0xb0], esi
call ecx
lea edx, [esp + 0xb0]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
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 + 0x64], cx
mov dword [esp + 0x74], 0x40
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xa0]
mov esi, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x48]
push 0xcc0020
push 0
push 0
push esi
push edx
mov dword [esp + 0x28], 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 + 0x14]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 1
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], 0x40
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
push eax
push edi
call ecx
lea edx, [esp + 0xa8]
push edx
push 0x49811c
push 1
push 0
push 0x4980fc
mov dword [esp + 0xb8], vtable.DuiLib::CDragSourceHelper.0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4066dd
mov dword [esp + 0xa8], 0
mov dword [esp + 0x208], 4
mov eax, dword [esp + 0xb4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], 0
push 5
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0xb0]
push edx
lea esi, [esp + 0xa0]
lea edi, [esp + 0x24]
call fcn.0040bbd0
mov ecx, dword [esp + 0x50]
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 esi, dword [esp + 0x50]
je 0x40676e
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
push esi
call fcn.0047754e
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0xa4]
mov byte [ebx + 0x6a4], 0
mov dword [esp + 0x208], 0xffffffff
call fcn.0040bc50
jmp case.0x40631e.276
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
call fcn.00402db0
cmp byte [ebx + 0x3ed], 0
mov word [esp + 0x36], ax
jne 0x406948
mov eax, dword [esp + 0x18]
push eax
push esi
mov ecx, ebx
call fcn.0040a430
mov esi, eax
mov dword [esp + 0x50], esi
test esi, esi
je 0x406829
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, ebx
jne case.0x40631e.276
mov eax, dword [ebx + 0x118]
cmp esi, eax
je 0x406915
test eax, eax
je 0x406915
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x488]
lea esi, [esp + 0x68]
mov dword [esp + 0x20], 0xa
call fcn.00401bd0
mov dword [esp + 0x208], 5
mov eax, dword [ebx + 0x488]
push eax
call fcn.00401cc0
mov eax, dword [ebx + 0x488]
mov ecx, dword [ebx + 0x484]
lea edx, [eax*4]
mov eax, dword [esp + 0x68]
push edx
push ecx
push eax
call fcn.004779c0
mov edi, dword [esp + 0x78]
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x4068bb
lea ecx, [ecx]
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
inc esi
cmp esi, edi
jl 0x4068a0
mov ecx, dword [ebx + 0x118]
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
lea edx, [esp + 0x20]
push edx
call eax
mov eax, dword [ebx + 0xd4]
mov dword [ebx + 0x118], 0
test eax, eax
je 0x4068f9
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 + 0x68]
test eax, eax
je 0x406915
push eax
call fcn.00479054
add esp, 4
mov esi, dword [esp + 0x50]
cmp esi, dword [ebx + 0x118]
je 0x406948
test esi, esi
je 0x406948
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x24], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x118], esi
mov ebx, dword [ebx + 0x11c]
test ebx, ebx
je 0x406974
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], ebx
mov eax, dword [ebx]
mov edx, dword [eax + 0x134]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
jmp case.0x40631e.276
mov ecx, dword [esp + 0x50]
test ecx, ecx
je case.0x40631e.276
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
lea edx, [esp + 0x20]
push edx
call eax
jmp case.0x40631e.276
cmp byte [ebx + 0x10c], 0
jne 0x4069b6
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebx + 0x110], 0
je case.0x40631e.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.0040a430
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je case.0x40631e.276
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, ebx
jne case.0x40631e.276
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
test al, al
je 0x406a75
mov eax, dword [ebx + 0x6a8]
mov byte [ebx + 0x6a4], 1
test eax, eax
je 0x406a41
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x6a8], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
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.00435430
add esp, 0x18
mov dword [ebx + 0x6a8], eax
mov esi, ebx
call fcn.00408440
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x11c], esi
mov edx, dword [esi]
mov eax, dword [edx + 0x11c]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x20], 0xd
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
jmp case.0x40631e.276
cmp byte [ebx + 0x10c], 0
jne 0x406b19
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.0040a430
mov dword [esp + 0x14], eax
test eax, eax
je case.0x40631e.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x40631e.276
mov esi, ebx
call fcn.00408440
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0x13
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x11c], esi
jmp case.0x40631e.276
movsx ecx, ax
shr eax, 0x10
cmp dword [ebx + 0x11c], 0
cwde
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], eax
je case.0x40631e.276
mov esi, ebx
call fcn.00408460
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x11c]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x11c], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
jmp case.0x40631e.276
cmp byte [ebx + 0x10c], 0
jne 0x406cac
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 + 0x1c], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x128], eax
call fcn.0040a430
mov dword [esp + 0x48], eax
test eax, eax
je case.0x40631e.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x40631e.276
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x11c]
call eax
mov esi, ebx
call fcn.00408440
mov dword [esp + 0x20], 0xf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x11c], esi
jmp case.0x40631e.276
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x128], eax
call fcn.0040a430
mov dword [ebx + 0x11c], eax
test eax, eax
je case.0x40631e.276
mov esi, ebx
call fcn.00408460
mov dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebx + 0x11c]
mov dword [esp + 0x28], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
jmp case.0x40631e.276
cmp byte [ebx + 0x10c], 0
jne 0x406e49
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 + 0x1c], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x128], eax
call fcn.0040a430
mov dword [esp + 0x48], eax
test eax, eax
je case.0x40631e.276
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jne case.0x40631e.276
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x11c]
call eax
mov esi, ebx
call fcn.00408440
mov dword [esp + 0x20], 0x11
jmp 0x406d10
mov ecx, dword [esp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x128], eax
call fcn.0040a430
mov dword [ebx + 0x11c], eax
test eax, eax
je case.0x40631e.276
mov esi, ebx
call fcn.00408460
mov dword [esp + 0x20], 0x12
jmp 0x406dc4
cmp dword [ebx + 0x110], 0
je case.0x40631e.276
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0xb4]
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov dword [ebx + 0x12c], ecx
push eax
mov ecx, ebx
mov dword [ebx + 0x128], eax
call fcn.0040a430
mov esi, eax
test esi, esi
je case.0x40631e.276
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, ebx
jne case.0x40631e.276
mov edx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
shr edi, 0x10
test di, di
setl cl
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], 0x15
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.00402db0
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
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.0x40631e.276
test eax, eax
je case.0x40631e.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.0x40631e.276
mov al, 1
jmp 0x4075f9
mov eax, dword [esp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x110]
push 0x15
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], eax
lea edx, [esp + 0x6c]
mov byte [ebx + 0x3ec], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x128]
push edx
push 0x40a530
call eax
mov esi, eax
test esi, esi
je case.0x40631e.276
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x407102
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 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], 0xc
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00402db0
mov ecx, dword [ebx + 0x118]
mov word [esp + 0x36], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
lea eax, [esp + 0x20]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
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 0x407149
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x407142
push eax
call fcn.00479054
add esp, 4
mov al, 1
jmp 0x4075f9
push 0x30
lea edi, [ebx + 0xd8]
push 0
push edi
call fcn.00477820
mov eax, dword [ebx + 0xb4]
mov edx, dword [0x4fa9c8]
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], eax
mov eax, dword [esp + 0x178]
mov dword [ebx + 0xfc], eax
mov dword [edi], 0x2c
mov dword [ebx + 0xdc], 1
mov dword [ebx + 0xf8], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
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 0x40723b
mov eax, dword [0x4fa9c8]
mov ecx, dword [ebx + 0xb4]
push 0
push eax
push 0
push ecx
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
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 + 0xc8]
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 0x407273
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 0x407137
sub edx, 0x2a3
je 0x4074c0
sub edx, 0x75
je 0x4073c2
sub edx, 0x7ce9
jne case.0x40631e.276
xor esi, esi
cmp dword [ebx + 0x458], esi
jle 0x4072d1
mov eax, dword [ebx + 0x454]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x4072c8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc esi
cmp esi, dword [ebx + 0x458]
jl 0x4072b3
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4072e4
push eax
call fcn.00479054
add esp, 4
xor eax, eax
mov dword [ebx + 0x454], eax
mov dword [ebx + 0x45c], eax
mov dword [ebx + 0x458], eax
mov byte [ebx + 0x3f0], al
mov edi, edi
cmp dword [ebx + 0x464], 0
jle case.0x40631e.276
mov ecx, dword [ebx + 0x460]
mov esi, dword [ecx]
test esi, esi
je case.0x40631e.276
mov eax, dword [ebx + 0x464]
test eax, eax
jle 0x40734d
dec eax
mov dword [ebx + 0x464], eax
test eax, eax
jle 0x40734d
mov ecx, dword [ebx + 0x460]
lea edx, [eax*4]
push edx
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004779c0
add esp, 0xc
mov eax, dword [esi + 0x108]
test eax, eax
je 0x407366
cmp dword [eax + 0x3c], 0
jle 0x407366
push esi
lea edi, [eax + 0x38]
call fcn.004398d0
xor edi, edi
cmp dword [ebx + 0x3f8], edi
jle 0x407389
mov ecx, dword [ebx + 0x3f4]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
inc edi
cmp edi, dword [ebx + 0x3f8]
jl 0x407370
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x88]
cmp eax, ecx
je 0x4073a2
push eax
call fcn.00479054
add esp, 4
mov eax, dword [esi]
lea edx, [esi + 4]
cmp eax, edx
je 0x4073b4
push eax
call fcn.00479054
add esp, 4
push esi
call fcn.0047754e
add esp, 4
jmp 0x407300
cmp dword [ebx + 0x110], 0
je case.0x40631e.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 + 0x144]
mov dword [esp + 0x88], eax
push 0
lea eax, [esp + 0x94]
push eax
push edi
call edx
test byte [esp + 0x10], 0x10
je 0x4074ac
mov eax, dword [ebx + 0xb4]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4074ac
mov eax, dword [esp + 0x10]
or eax, 2
mov dword [esp + 0x14], eax
lea esp, [esp]
xor eax, eax
lea ecx, [esp + 0x54]
push ecx
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0xb4]
push 2
lea edx, [esp + 0x58]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0
neg ecx
push ecx
neg edx
push edx
push edi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [esp + 0x14]
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 0x407440
mov ecx, dword [esp + 0x88]
push ecx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp case.0x40631e.276
mov eax, dword [ebx + 0xd4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4074e1
lea edx, [ebx + 0xd8]
push edx
push 0
push 0x411
push eax
call esi
cmp byte [ebx + 0x3ec], 0
je 0x4075f0
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 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 0x4075df
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 0xb4]
jne 0x4075df
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4075df
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x14]
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 0x4075ce
mov edx, dword [ebx + 0xb4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [esp + 0x18]
movzx ecx, word [esp + 0x14]
mov edx, dword [ebx + 0xb4]
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push edx
jmp 0x4075ee
mov eax, dword [ebx + 0xb4]
push 0xffffffffffffffff
push edi
push 0x200
push eax
jmp 0x4075ee
mov ecx, dword [ebx + 0xb4]
push 0xffffffffffffffff
push edi
push 0x200
push ecx
call esi
mov byte [ebx + 0x3ec], 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.004771de
mov esp, ebp
pop ebp
ret 0x10