Function at 0x406c60
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4c90b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x198], esi
cmp dword [esi], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x168], eax
je 0x4087b1
nop dword [eax]
cmp dword [esi + 0x138], 0
jle 0x406dd1
mov eax, dword [esi + 0x134]
mov edx, dword [eax]
mov dword [ebp - 0x170], edx
test edx, edx
je 0x406dd1
mov eax, dword [esi + 0x138]
test eax, eax
jle 0x406d15
dec eax
mov dword [esi + 0x138], eax
test eax, eax
jle 0x406d15
mov ecx, dword [esi + 0x134]
shl eax, 2
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.00489f40
mov edx, dword [ebp - 0x170]
add esp, 0xc
mov eax, dword [edx + 0x108]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x406d66
cmp dword [eax + 0x38], 0
jle 0x406d66
xor edi, edi
cmp dword [eax + 0x38], edi
jle 0x406d66
mov esi, dword [ebp - 0x170]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x406d4e
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 8]
call eax
test al, al
je 0x406d5a
mov eax, dword [ebp - 0x174]
inc edi
cmp edi, dword [eax + 0x38]
jl 0x406d38
mov esi, dword [ebp - 0x198]
mov edx, dword [ebp - 0x170]
xor edi, edi
cmp dword [esi + 0xf0], edi
jle 0x406d8d
mov eax, dword [esi + 0xec]
push edx
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp - 0x170]
inc edi
cmp edi, dword [esi + 0xf0]
jl 0x406d70
mov edi, dword [ebp - 0x170]
mov ecx, dword [edi + 0x84]
lea eax, [edi + 0x88]
cmp ecx, eax
je 0x406dac
push ecx
call fcn.00491497
add esp, 4
mov ecx, dword [edi]
lea eax, [edi + 4]
cmp ecx, eax
je 0x406dbe
push ecx
call fcn.00491497
add esp, 4
push pe_nt_image_headers32
push edi
call fcn.00487e32
add esp, 8
jmp 0x406cc0
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x170], ecx
cmp dword [esi + 0x114], ecx
jle 0x406e30
mov eax, dword [esi + 0x110]
lea edx, [ebp - 0x181]
mov byte [ebp - 0x181], 0
push edx
push dword [ebp - 0x17c]
mov ecx, dword [eax + ecx*4]
push dword [ebp - 0x190]
push edi
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
cmp byte [ebp - 0x181], 0
jne 0x4079bd
mov ecx, dword [ebp - 0x170]
inc ecx
mov dword [ebp - 0x170], ecx
cmp ecx, dword [esi + 0x114]
jl 0x406de4
cmp edi, 0x111
ja 0x407ae0
je 0x407aaf
lea eax, [edi - 5]
cmp eax, 0xfd
ja case.default.0x407dba
movzx eax, byte [eax + 0x408808]
jmp dword [eax*4 + 0x4087d0]
mov eax, dword [esi + 0x94]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x88]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x406eb3
mov dword [ebp - 0x30], 0xa
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x124]
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x406ed3
mov dword [ebp - 0x30], 0xe
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x124]
push 0
mov ecx, esi
call fcn.00408e90
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.default.0x407dba
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.default.0x407dba
mov ecx, dword [ebp - 0x168]
mov al, 1
mov dword [ecx], 1
jmp 0x4087b3
push 0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x40843d
cmp dword [esi + 0x80], 0
push 0x40
push 0
jne 0x406f6b
lea eax, [ebp - 0x164]
push eax
call fcn.0048a4c0
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x164]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x4087b3
lea eax, [ebp - 0x124]
push eax
call fcn.0048a4c0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [esi + 0xe1], 0
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
je 0x4070e0
lea eax, [ebp - 0x20]
mov byte [esi + 0xe1], 0
push eax
push dword [esi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4070e0
mov ecx, dword [esi + 0x80]
cmp byte [ecx + 0x154], al
je 0x407050
push dword [esi]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x406ff5
mov ecx, dword [esi + 0x80]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x20]
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x3c]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x407005
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x407013
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40701d
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40702b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
jmp 0x4070b3
mov eax, dword [ecx]
push SysReAllocString
push 0
push 0x40a740
mov eax, dword [eax + 0x118]
call eax
mov dword [ebp - 0x168], eax
test eax, eax
je 0x4070b9
mov edi, dword [eax]
mov ecx, eax
mov edx, dword [edi + 0x38]
call edx
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x168]
call dword [edi + 0x3c]
mov ecx, dword [esi + 0x80]
push SysReAllocString
push 0
push 0x40a740
mov eax, dword [ecx]
mov eax, dword [eax + 0x118]
call eax
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x407070
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0xe0], 0
je 0x4070e0
push ecx
push 0
push 0
push str.windowinit
push dword [esi + 0x80]
mov ecx, esi
mov byte [esi + 0xe0], 0
call fcn.004098f0
cmp byte [esi + 0xe2], 0
je 0x4070f2
push 1
mov ecx, esi
call fcn.004093e0
cmp dword [esi + 0xe4], 1
jne 0x407352
push 0xffffffffffffffec
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
jne 0x407120
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x50], xmm0
call edi
cmp byte [esi + 0x30], 0
jne 0x40714c
lea edi, [esi + 0x20]
push edi
lea eax, [ebp - 0x40]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
jmp 0x407158
movups xmm0, xmmword [ebp - 0x50]
mov byte [esi + 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
sub eax, dword [ebp - 0x50]
sub edi, dword [ebp - 0x4c]
cmp byte [esi + 0xe3], 0
mov dword [ebp - 0x170], eax
je 0x407207
cmp dword [esi + 0x14], 0
jne 0x407207
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x2c
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.0048a4c0
mov ecx, dword [ebp - 0x170]
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x150], 0x28
neg eax
imul edi, ecx
mov dword [ebp - 0x148], eax
lea eax, [esi + 0x1c]
push 0
push 0
push eax
push 0
lea eax, [ebp - 0x150]
shl edi, 2
push eax
push dword [esi + 8]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x144], 0x200001
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x130], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esi + 0x14], eax
push dword [esi + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0xc]
mov dword [ebp - 0x198], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [ebp - 0x170]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004214a0
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x40]
add esp, 4
mov edx, dword [ecx]
push eax
push dword [esi + 0xc]
call dword [edx + 0x134]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push dword [esi + 0xc]
call fcn.0040ae00
xor edi, edi
cmp dword [esi + 0x120], edi
jle 0x407294
nop word [eax + eax]
mov eax, dword [esi + 0x11c]
lea edx, [ebp - 0x11c]
push edx
push dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
call dword [eax + 0x14c]
inc edi
cmp edi, dword [esi + 0x120]
jl 0x407270
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00421510
add esp, 4
push dword [ebp - 0x174]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x18c], ecx
push 2
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 0x194]
mov dword [ebp - 0x188], edx
push eax
push dword [esi + 0xc]
lea eax, [ebp - 0x180]
mov dword [ebp - 0x194], 0
push eax
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x190], 0
push eax
push 0
push dword [esi]
mov dword [ebp - 0x168], 0x1ff0000
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push dword [ebp - 0x198]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4075c6
cmp byte [esi + 0xe3], 0
je 0x407590
cmp dword [esi + 0x14], 0
jne 0x40739a
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x20], xmm0
call edi
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x14], eax
cmp byte [esi + 0xe3], 0
je 0x407590
push dword [esi + 0x14]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
mov dword [ebp - 0x198], eax
call dword [sym.imp.GDI32.dll_SaveDC]
cmp dword [esi + 0xe4], 2
mov dword [ebp - 0x174], eax
jne 0x407492
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x407457
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esi + 0x10]
mov dword [esi + 0x18], eax
call edi
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x110]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
sub eax, edx
push 0xcc0020
push edx
push ecx
push dword [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x114]
sub eax, ecx
push eax
push edx
push ecx
push dword [esi + 0x10]
call edi
jmp 0x407463
push ecx
push dword [esi + 0x10]
call edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x110]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x10]
sub eax, edx
push eax
mov eax, dword [ebp - 0x114]
sub eax, ecx
push eax
push edx
push ecx
push dword [esi + 0xc]
call edi
mov ecx, dword [esi + 0x80]
lea edx, [ebp - 0x11c]
push edx
push dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
cmp dword [esi + 0x120], edi
jle 0x4074e4
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0x11c]
lea edx, [ebp - 0x11c]
push edx
push dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
call dword [eax + 0x14c]
inc edi
cmp edi, dword [esi + 0x120]
jl 0x4074c0
push dword [ebp - 0x174]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x110]
push 0xcc0020
push edx
push ecx
push dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [ebp - 0x114]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x198]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0xc]
call edi
cmp byte [esi + 0x64], 0
je 0x4075c6
push dword [0x4cc58c]
push dword [ebp - 0x124]
call edi
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4075c6
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x80]
mov edi, eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x124]
mov edx, dword [ecx]
call dword [edx + 0x134]
push edi
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [esi + 0xe1], 0
je 0x40843d
push 0
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, 1
jmp 0x4087b3
mov eax, dword [esi + 0x9c]
mov ecx, dword [ebp - 0x17c]
test eax, eax
jle 0x407608
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0xa0]
test eax, eax
jle 0x407615
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0xa4]
test eax, eax
jle 0x407622
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0xa8]
test eax, eax
jle case.default.0x407dba
mov dword [ecx + 0x24], eax
jmp case.default.0x407dba
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40767a
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], 0x16
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x40843d
call fcn.00414000
mov al, 1
jmp 0x4087b3
mov ecx, dword [ebp - 0x17c]
movsx eax, cx
mov dword [ebp - 0x178], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x178]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0x8c], 0
mov eax, dword [ebp - 0x178]
mov dword [esi + 0x94], eax
mov eax, dword [ebp - 0x174]
mov dword [esi + 0x98], eax
je case.default.0x407dba
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0x178]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x8c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x190]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov byte [esi + 0xe9], 0
mov dword [ebp - 0x30], 0x11
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov dword [esi + 0x8c], 0
jmp case.default.0x407dba
cmp dword [esi + 0x84], 0
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x94]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x20], eax
call fcn.004057f0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
jmp case.default.0x407dba
cmp dword [esi + 0x84], 0
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x94]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x20], eax
call fcn.004057f0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov eax, dword [esi + 0x84]
mov dword [esi + 0x90], eax
jmp case.default.0x407dba
cmp dword [esi + 0x90], 0
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x94]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x20], eax
call fcn.004057f0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x90]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov dword [esi + 0x90], 0
jmp case.default.0x407dba
mov edi, dword [ebp - 0x17c]
cmp di, 1
jne case.default.0x407dba
cmp byte [esi + 0xe9], 0
jne 0x40843d
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0
push eax
mov dword [ebp - 0x168], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x16c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x168]
mov ecx, esi
push dword [ebp - 0x16c]
call fcn.0040a550
mov dword [ebp - 0x174], eax
test eax, eax
je case.default.0x407dba
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x14]
call edx
test al, 2
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x16c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x17
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
call fcn.004057f0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x174]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov al, 1
jmp 0x4087b3
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x40843d
mov eax, dword [ebp - 0x190]
push ecx
push eax
lea eax, [edi + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x168]
mov dword [ecx], eax
mov al, 1
jmp 0x4087b3
mov eax, dword [esi + 0x84]
test eax, eax
je case.default.0x407dba
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], 0x14
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push ecx
push 0
push 0
push str.killfocus
push dword [esi + 0x84]
mov ecx, esi
call fcn.004098f0
jmp case.default.0x407dba
mov eax, dword [esi + 0x84]
test eax, eax
je 0x407aa1
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x144], 0x15
movq qword [ebp - 0x130], xmm0
mov dword [ebp - 0x140], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x144]
mov dword [ebp - 0x13c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push ecx
push 0
push 0
push str.setfocus
push dword [esi + 0x84]
mov ecx, esi
call fcn.004098f0
jmp case.default.0x407dba
push 1
mov ecx, esi
call fcn.004093e0
jmp case.default.0x407dba
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
push ecx
push eax
push 0x2111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x168]
mov dword [ecx], eax
mov al, 1
jmp 0x4087b3
cmp edi, 0x200
ja 0x407d99
je 0x407be0
mov eax, edi
sub eax, 0x113
je 0x407b3c
sub eax, 0x20
je 0x407b09
sub eax, 5
jne case.default.0x407dba
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je case.default.0x407dba
mov eax, dword [ebp - 0x190]
push ecx
push eax
lea eax, [edi + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x168]
mov dword [ecx], eax
mov al, 1
jmp 0x4087b3
xor ecx, ecx
mov dword [ebp - 0x168], ecx
cmp dword [esi + 0xfc], ecx
jle case.default.0x407dba
mov eax, dword [esi + 0xf8]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 8]
cmp eax, dword [esi]
jne 0x407b8b
mov eax, dword [ebp - 0x190]
movzx eax, ax
cmp dword [edi + 0xc], eax
jne 0x407b8b
cmp byte [edi + 0x10], 0
jne 0x407b8b
push 0x63c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x407b9f
mov ecx, dword [ebp - 0x168]
inc ecx
mov dword [ebp - 0x168], ecx
cmp ecx, dword [esi + 0xfc]
jl 0x407b50
jmp case.default.0x407dba
mov eax, dword [edi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
jmp case.default.0x407dba
cmp byte [esi + 0xe8], 0
jne 0x407c3f
mov eax, dword [esi]
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x3c], 3
test eax, eax
jne 0x407c1b
mov dword [ebp - 0x34], 0x190
jmp 0x407c2e
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [esi + 0xe8], 1
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x18c]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x174], ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x168], eax
mov dword [esi + 0x98], eax
mov dword [ebp - 0x188], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x40a630
mov eax, dword [eax + 0x118]
call eax
mov edi, eax
test edi, edi
je 0x407ca5
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.default.0x407dba
mov eax, dword [ebp - 0x174]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x407cff
mov dword [ebp - 0x30], 9
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x124]
jmp case.default.0x407dba
mov ecx, dword [esi + 0x88]
cmp edi, ecx
je 0x407d46
test ecx, ecx
je 0x407d46
mov dword [ebp - 0x30], 0xa
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x124]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x88], 0
test ecx, ecx
je 0x407d46
lea eax, [esi + 0x38]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [esi + 0x88]
je 0x407d74
test edi, edi
je case.default.0x407dba
mov dword [ebp - 0x30], 0xb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x124]
mov dword [esi + 0x88], edi
test edi, edi
je case.default.0x407dba
mov dword [ebp - 0x30], 9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x124]
jmp case.default.0x407dba
cmp edi, 0x20a
ja 0x4082dd
je 0x4081cf
add edi, 0xfffffdff
cmp edi, 3
ja case.default.0x407dba
jmp dword [edi*4 + 0x408908]
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x18c]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x174], ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x168], eax
mov dword [esi + 0x98], eax
mov dword [ebp - 0x188], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x40a630
mov eax, dword [eax + 0x118]
call eax
mov edi, eax
mov dword [ebp - 0x170], edi
test edi, edi
je case.default.0x407dba
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.default.0x407dba
mov dword [esi + 0x8c], edi
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10c]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x174]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x190]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x17c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x14], 0
mov byte [esi + 0xe9], 1
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x170]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
jmp case.default.0x407dba
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x18c]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x174], ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x168], eax
mov dword [esi + 0x98], eax
mov dword [ebp - 0x188], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x40a630
mov eax, dword [eax + 0x118]
call eax
mov edi, eax
test edi, edi
je case.default.0x407dba
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.default.0x407dba
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0x174]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x190]
movq qword [ebp - 0x1c], xmm0
mov byte [esi + 0xe9], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x124]
mov dword [esi + 0x8c], edi
jmp case.default.0x407dba
mov ecx, dword [ebp - 0x17c]
mov eax, ecx
shr eax, 0x10
cmp dword [esi + 0x8c], 0
movsx edx, cx
cwde
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x168], eax
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], eax
je case.default.0x407dba
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x8c]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x174]
mov edi, dword [ebp - 0x17c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x190]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x14], 0
mov byte [esi + 0xe9], 0
mov dword [ebp - 0x30], 0xe
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
mov dword [esi + 0x8c], 0
jmp case.default.0x407dba
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x18c]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x168], ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x170], eax
mov dword [esi + 0x98], eax
mov dword [ebp - 0x188], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x40a630
mov eax, dword [eax + 0x118]
call eax
mov edi, eax
mov dword [ebp - 0x174], edi
test edi, edi
je case.default.0x407dba
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.default.0x407dba
mov eax, dword [esi + 0x88]
cmp edi, eax
je 0x408149
test eax, eax
je 0x408149
mov eax, dword [ebp - 0x168]
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x88]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 0xa
mov dword [ebp - 0x5c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x124]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x88], 0
test ecx, ecx
je 0x408149
lea eax, [esi + 0x38]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10c]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x168]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x190]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x17c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x14], 0
mov byte [esi + 0xe9], 1
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x174]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x124]
mov dword [esi + 0x8c], edi
jmp case.default.0x407dba
mov ecx, dword [ebp - 0x17c]
movsx eax, cx
mov dword [ebp - 0x16c], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x16c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x16c]
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x168]
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x18c], ecx
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x98], eax
mov dword [ebp - 0x188], eax
push 0xd
mov eax, dword [ecx]
push edx
push 0x40a630
mov eax, dword [eax + 0x118]
call eax
mov edi, eax
mov dword [ebp - 0x174], edi
test edi, edi
je case.default.0x407dba
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.default.0x407dba
mov eax, dword [ebp - 0x190]
xorps xmm0, xmm0
shr eax, 0x10
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x17c]
shr eax, 0xf
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x12
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.004057f0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x174]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
movzx ecx, word [esi + 0x98]
movzx eax, word [esi + 0x94]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
invalid