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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101089e6
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x1014b520]
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 - 0x3d4], esi
cmp dword [esi], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3e0], eax
je 0x1005bbe7
lea eax, [esi + 0x34c]
push eax
lea edi, [esi + 0x1b0]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
mov ecx, edi
call fcn.10054520
push 0
lea ecx, [esi + 0x1b0]
mov edi, eax
call fcn.10054a40
lea eax, [esi + 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10059cd7
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x10059c52
add ecx, 0x38
call fcn.100720a0
test al, al
je 0x10059c52
mov ecx, dword [edi + 0x108]
push edi
add ecx, 0x38
call fcn.100720b0
test al, al
jne 0x10059cb2
lea eax, [esi + 0x168]
mov dword [ebp - 0x3dc], 0
mov ecx, eax
mov dword [ebp - 0x3c0], eax
call fcn.100545d0
test eax, eax
jle 0x10059cb2
mov esi, dword [ebp - 0x3dc]
nop dword [eax]
cmp dword [edi + 0x108], 0
je 0x10059cac
mov ecx, dword [ebp - 0x3c0]
push esi
call fcn.10053da0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x3c0]
inc esi
call fcn.100545d0
cmp esi, eax
jl 0x10059c80
mov esi, dword [ebp - 0x3d4]
lea ecx, [edi + 0x84]
call fcn.1001fc60
mov ecx, edi
call fcn.1001fc60
push 0x120
push edi
call fcn.100bacf4
add esp, 8
jmp 0x10059be9
lea ecx, [esi + 0x18c]
mov dword [ebp - 0x3c0], 0
call fcn.100545d0
mov edi, dword [ebp - 0x3c4]
test eax, eax
jle 0x10059d54
xor ecx, ecx
nop dword [eax + eax]
push ecx
lea ecx, [esi + 0x18c]
mov byte [ebp - 0x3d5], 0
call fcn.10053da0
lea ecx, [ebp - 0x3d5]
push ecx
push edi
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x3c8]
push dword [ebp + 8]
mov eax, dword [edx]
call eax
cmp byte [ebp - 0x3d5], 0
jne 0x1005acd1
inc dword [ebp - 0x3c0]
lea ecx, [esi + 0x18c]
call fcn.100545d0
mov ecx, dword [ebp - 0x3c0]
cmp ecx, eax
jl 0x10059d00
mov edx, dword [ebp + 8]
cmp edx, 0x111
ja 0x1005ad10
je 0x1005ace0
lea eax, [edx - 5]
cmp eax, 0xfd
ja case.default.0x1005b075
movzx eax, byte [eax + 0x1005bc38]
jmp dword [eax*4 + 0x1005bc08]
mov eax, dword [esi + 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x74]
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x224], xmm0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x230], eax
test ecx, ecx
je 0x10059de6
mov dword [ebp - 0x238], 0xa
lea edx, [ebp - 0x238]
mov dword [ebp - 0x234], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x150]
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x10059e0c
mov dword [ebp - 0x238], 0xe
lea edx, [ebp - 0x238]
mov dword [ebp - 0x234], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x150]
push 0
mov ecx, esi
call fcn.1005d1b0
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.default.0x1005b075
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.default.0x1005b075
cmp dword [esi + 0x348], 0
jne 0x10059e4f
push 0
push 0
push dword [esi]
mov byte [esi + 0xc5], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0x3e0]
mov al, 1
mov dword [ecx], 1
jmp 0x1005bbe9
push 0
lea eax, [ebp - 0x37c]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x37c], xmm0
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x1005acd9
cmp dword [esi + 0x58], 0
jne 0x10059ec3
push 0x40
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x2a8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x1005bbe9
mov eax, dword [ebp - 0x374]
mov edx, 1
mov ecx, dword [ebp - 0x370]
sub eax, dword [ebp - 0x37c]
sub ecx, dword [ebp - 0x378]
mov dword [ebp - 0x3c0], edx
cmp eax, dword [esi + 0x90]
jne 0x10059eff
xor edi, edi
cmp ecx, dword [esi + 0x94]
cmove edx, edi
mov dword [ebp - 0x3c0], edx
cmp byte [esi + 0xc8], 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
je 0x1005a526
push 0xffffffffffffffec
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
jne 0x10059f39
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x268], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x40
lea eax, [ebp - 0x2e8]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x2e8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10059f82
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10059f92
push eax
call edi
cmp byte [esi + 0xc5], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
je 0x1005a0dd
lea eax, [ebp - 0x268]
mov byte [esi + 0xc5], 0
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1005a0dd
mov ecx, dword [esi + 0x58]
call fcn.10065620
test al, al
je 0x1005a014
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10059fe3
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10059fed
push eax
call edi
mov ecx, dword [esi + 0x58]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x268]
mov dword [esi + 0x10], 0
mov eax, esp
mov dword [esi + 0x18], 0
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x40]
jmp 0x1005a077
mov ecx, dword [esi + 0x58]
push SysReAllocStringLen
push 0
push 0x1005dc90
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3e0], eax
test eax, eax
je 0x1005a077
mov edi, dword [eax]
mov ecx, eax
mov edx, dword [edi + 0x3c]
call edx
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x3e0]
call dword [edi + 0x40]
mov ecx, dword [esi + 0x58]
push SysReAllocStringLen
push 0
push 0x1005dc90
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3e0], eax
test eax, eax
jne 0x1005a037
cmp byte [esi + 0xc4], 0
movups xmm0, xmmword [ebp - 0x268]
movups xmmword [esi + 0x334], xmm0
je 0x1005a0aa
push 0
push 0
push 0
push str.windowinit
push dword [esi + 0x58]
mov ecx, esi
mov byte [esi + 0xc4], 0
call fcn.1005cc60
push 0
push 0
push 0
push str.windowresized
push dword [esi + 0x58]
mov ecx, esi
call fcn.1005cc60
cmp byte [ebp - 0x3c0], 0
je 0x1005a0dd
push 0
push 0
push 0
push str.window_size_changed
push dword [esi + 0x58]
mov ecx, esi
call fcn.1005cc60
cmp byte [esi + 0xc6], 0
je 0x1005a0ef
push 1
mov ecx, esi
call fcn.1005d5d0
lea edi, [esi + 0x334]
push edi
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [ebp - 0x37c]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x268]
cmp eax, edx
mov ecx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x25c]
cmovl eax, edx
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x378]
cmp eax, ecx
movups xmmword [edi], xmm0
mov edi, dword [ebp - 0x260]
cmovl eax, ecx
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x374]
cmp eax, edi
mov dword [ebp - 0x3c0], esi
cmovg eax, edi
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x370]
cmp eax, esi
cmovg eax, esi
mov esi, dword [ebp - 0x3d4]
sub dword [ebp - 0x3c0], ecx
sub edi, edx
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x3e0], edi
cmp byte [esi + 0xc7], 0
je 0x1005a1ba
cmp dword [esi + 0x18], 0
jne 0x1005a1ba
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 0x3c0]
push edi
push dword [esi + 8]
call fcn.10068660
add esp, 0x10
mov dword [esi + 0x18], eax
push dword [esi + 0x18]
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x10]
mov dword [ebp - 0x3cc], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edi, dword [ebp - 0x378]
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3d4], edi
cmp edi, dword [ebp - 0x370]
jge 0x1005a240
imul edi, dword [ebp - 0x3e0]
nop word [eax + eax]
mov eax, dword [ebp - 0x374]
mov ecx, dword [ebp - 0x37c]
sub eax, ecx
shl eax, 2
add ecx, edi
push eax
mov eax, dword [esi + 0x1c]
push 0
lea eax, [eax + ecx*4]
push eax
call fcn.100d6e30
mov eax, dword [ebp - 0x3d4]
add esp, 0xc
add edi, dword [ebp - 0x3e0]
inc eax
mov dword [ebp - 0x3d4], eax
cmp eax, dword [ebp - 0x370]
jl 0x1005a200
lea ecx, [esi + 0x328]
call fcn.100541a0
mov ecx, dword [esi + 0x58]
lea edx, [ebp - 0x37c]
push edx
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x160]
mov ecx, dword [esi + 0x324]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x3dc], edi
test ecx, ecx
je 0x1005a2bf
mov eax, dword [ecx]
mov eax, dword [eax + 0x130]
call eax
mov edi, dword [esi]
test al, al
je 0x1005a28d
call dword [sym.imp.USER32.dll_GetFocus]
cmp edi, eax
je 0x1005a2b9
push 0xf1
push edi
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0x320], 0
je 0x1005a2b0
lea eax, [esi + 0x310]
mov ecx, esi
push eax
call fcn.100598d0
mov byte [esi + 0x320], 0
jmp 0x1005a32b
mov edi, dword [ebp - 0x3dc]
cmp byte [esi + 0x320], 0
je 0x1005a32b
cmp byte [esi + 0x321], 0
je 0x1005a32b
cmp dword [esi + 0x324], 0
je 0x1005a32b
lea eax, [esi + 0x310]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x248]
push eax
movups xmmword [ebp - 0x248], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1005a32b
mov ecx, dword [esi + 0x324]
call fcn.10072f30
test eax, eax
jne 0x1005a318
mov eax, dword [esi + 0x1f4]
push 0
push eax
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.10068ab0
add esp, 0x10
xor edi, edi
lea ecx, [esi + 0x328]
mov dword [ebp - 0x3c4], edi
call fcn.100545d0
test eax, eax
je 0x1005a452
nop word [eax + eax]
push edi
lea ecx, [esi + 0x328]
call fcn.10054520
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
mov edx, dword [edx + 0x108]
call edx
test al, al
je 0x1005a432
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
mov ecx, edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
call fcn.10072dd0
mov dword [ebp - 0x3dc], eax
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x248]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1005a432
mov edi, dword [ebp - 0x244]
cmp edi, dword [ebp - 0x23c]
jge 0x1005a432
mov eax, dword [ebp - 0x240]
mov edx, edi
imul edx, dword [ebp - 0x3e0]
mov dword [ebp - 0x3c0], edx
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x3d4], ecx
cmp ecx, eax
jge 0x1005a41d
add edx, ecx
shl edx, 2
nop word [eax + eax]
mov eax, dword [esi + 0x1c]
lea edx, [edx + 4]
mov ecx, dword [ebp - 0x3dc]
mov byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x240]
inc ecx
mov dword [ebp - 0x3d4], ecx
cmp ecx, eax
jl 0x1005a3f0
mov edx, dword [ebp - 0x3c0]
add edx, dword [ebp - 0x3e0]
inc edi
mov dword [ebp - 0x3c0], edx
cmp edi, dword [ebp - 0x23c]
jl 0x1005a3d2
mov edi, dword [ebp - 0x3c4]
lea ecx, [esi + 0x328]
inc edi
mov dword [ebp - 0x3c4], edi
call fcn.100545d0
cmp edi, eax
jb 0x1005a350
push dword [ebp - 0x3e8]
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x228]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x228], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp - 0x260]
sub eax, dword [ebp - 0x268]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x25c]
sub eax, dword [ebp - 0x264]
push 2
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x3c8]
push eax
push 0
lea eax, [ebp - 0x400]
mov dword [ebp - 0x400], 0
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x408]
mov dword [ebp - 0x3fc], 0
push eax
lea eax, [ebp - 0x3f4]
mov dword [ebp - 0x3c8], 0x1ff0000
push eax
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push dword [ebp - 0x3cc]
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x2e8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x1005bbe9
cmp byte [esi + 0xc5], 0
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
je 0x1005a6ae
lea eax, [ebp - 0x228]
mov byte [esi + 0xc5], 0
push eax
push dword [esi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
call edi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1005a6ae
mov ecx, dword [esi + 0x58]
call fcn.10065620
mov ecx, dword [esi + 0x58]
test al, al
je 0x1005a5ee
movups xmm0, xmmword [ebp - 0x228]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x40]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1005a59b
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1005a5ab
push eax
call edi
cmp byte [esi + 0xc8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
jne 0x1005a650
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1005a5d4
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005a5de
push eax
call edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
jmp 0x1005a650
mov eax, dword [ecx]
push SysReAllocStringLen
push 0
push 0x1005dc90
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3d4], eax
test eax, eax
je 0x1005a656
nop
mov edi, dword [eax]
mov ecx, eax
mov edx, dword [edi + 0x3c]
call edx
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x3d4]
call dword [edi + 0x40]
mov ecx, dword [esi + 0x58]
push SysReAllocStringLen
push 0
push 0x1005dc90
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3d4], eax
test eax, eax
jne 0x1005a610
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0xc4], 0
je 0x1005a67b
push 0
push 0
push 0
push str.windowinit
push dword [esi + 0x58]
mov ecx, esi
mov byte [esi + 0xc4], 0
call fcn.1005cc60
push 0
push 0
push 0
push str.windowresized
push dword [esi + 0x58]
mov ecx, esi
call fcn.1005cc60
cmp byte [ebp - 0x3c0], 0
je 0x1005a6ae
push 0
push 0
push 0
push str.window_size_changed
push dword [esi + 0x58]
mov ecx, esi
call fcn.1005cc60
cmp byte [esi + 0xc6], 0
je 0x1005a6c0
push 1
mov ecx, esi
call fcn.1005d5d0
cmp byte [esi + 0xc7], 0
je 0x1005a716
cmp dword [esi + 0x14], 0
jne 0x1005a716
lea eax, [ebp - 0x248]
xorps xmm0, xmm0
push eax
push dword [esi]
movups xmmword [ebp - 0x248], xmm0
call edi
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x248]
push eax
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x14], eax
push 0x40
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x3bc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [esi + 0xc7], 0
je 0x1005a878
push dword [esi + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0xc]
mov dword [ebp - 0x3e8], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x3cc], eax
lea eax, [ebp - 0x3b4]
push eax
push dword [esi + 0xc]
mov edx, dword [ecx]
call dword [edx + 0x160]
lea ecx, [esi + 0x198]
xor edi, edi
call fcn.100545d0
test eax, eax
jle 0x1005a7c0
nop dword [eax]
push edi
lea ecx, [esi + 0x198]
call fcn.10053da0
lea ecx, [ebp - 0x3b4]
push ecx
push dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
lea ecx, [esi + 0x198]
inc edi
call fcn.100545d0
cmp edi, eax
jl 0x1005a790
push dword [ebp - 0x3cc]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [ebp - 0x3b0]
mov ecx, dword [ebp - 0x3b4]
mov eax, dword [ebp - 0x3a8]
push 0xcc0020
push edx
push ecx
push dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [ebp - 0x3ac]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x3e8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0xc]
call edi
cmp byte [esi + 0x54], 0
je 0x1005a8ab
push dword [0x10150868]
push dword [ebp - 0x3bc]
call edi
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x370]
push dword [ebp - 0x374]
push dword [ebp - 0x378]
push dword [ebp - 0x37c]
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1005a8ab
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x58]
mov edi, eax
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x3bc]
mov edx, dword [ecx]
call dword [edx + 0x160]
push edi
push dword [ebp - 0x3bc]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x3bc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [esi + 0xc5], 0
je 0x1005acd9
push 0
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, 1
jmp 0x1005bbe9
mov ecx, dword [esi + 0x78]
mov eax, dword [ebp - 0x3c4]
test ecx, ecx
jle 0x1005a8ea
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x7c]
test ecx, ecx
jle 0x1005a8f4
mov dword [eax + 0x1c], ecx
mov ecx, dword [esi + 0x80]
test ecx, ecx
jle 0x1005a901
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x84]
test ecx, ecx
jle case.default.0x1005b075
mov dword [eax + 0x24], ecx
jmp case.default.0x1005b075
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1005a967
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0x16
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x1005acd9
call fcn.10065780
mov al, 1
jmp 0x1005bbe9
mov ecx, dword [ebp - 0x3c4]
movsx eax, cx
mov dword [ebp - 0x3d0], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x3cc], eax
lea eax, [ebp - 0x3d0]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0x68], 0
mov eax, dword [ebp - 0x3d0]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x3cc]
mov dword [esi + 0x74], eax
je case.default.0x1005b075
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esi + 0x68]
xor eax, eax
mov word [ebp - 0x224], ax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x238], 0x11
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x21c], ecx
jmp 0x1005b31a
cmp dword [esi + 0x5c], 0
je case.default.0x1005b075
xor eax, eax
mov dword [ebp - 0x238], 5
mov word [ebp - 0x21a], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x3c8]
mov word [ebp - 0x224], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x74]
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x222], xmm0
mov dword [ebp - 0x228], eax
call fcn.10059b40
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
jmp case.default.0x1005b075
cmp dword [esi + 0x5c], 0
je case.default.0x1005b075
xor eax, eax
mov dword [ebp - 0x238], 3
mov word [ebp - 0x21a], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x3c8]
mov word [ebp - 0x224], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x74]
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x222], xmm0
mov dword [ebp - 0x228], eax
call fcn.10059b40
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x6c], eax
jmp case.default.0x1005b075
cmp dword [esi + 0x6c], 0
je case.default.0x1005b075
xor eax, eax
mov dword [ebp - 0x238], 4
mov word [ebp - 0x21a], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x3c8]
mov word [ebp - 0x224], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x74]
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x222], xmm0
mov dword [ebp - 0x228], eax
call fcn.10059b40
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x6c]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov dword [esi + 0x6c], 0
jmp case.default.0x1005b075
cmp di, 1
jne case.default.0x1005b075
cmp byte [esi + 0xcb], 0
jne 0x1005acd9
lea eax, [ebp - 0x3e4]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x3e4], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x3e4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x40c], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x410]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3cc], eax
test eax, eax
je case.default.0x1005b075
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x18]
call edx
test al, 2
je case.default.0x1005b075
mov eax, dword [ebp - 0x3c8]
xorps xmm0, xmm0
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x3e4]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x3e0]
movlpd qword [ebp - 0x284], xmm0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x288], 0x17
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x278], eax
call fcn.10059b40
mov word [ebp - 0x272], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3cc]
lea edx, [ebp - 0x288]
mov dword [ebp - 0x280], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov al, 1
jmp 0x1005bbe9
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x1005acd9
push ecx
push dword [ebp - 0x3c8]
lea eax, [edx + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x3e0]
mov dword [ecx], eax
mov al, 1
jmp 0x1005bbe9
mov eax, dword [ebp - 0x3c4]
test eax, eax
je case.default.0x1005b075
push eax
push dword [ebp - 0x3c8]
push 0x2111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x3e0]
mov dword [ecx], eax
mov al, 1
jmp 0x1005bbe9
cmp edx, 0x200
ja 0x1005b054
je 0x1005ae62
mov eax, edx
sub eax, 0x113
je 0x1005ad6b
sub eax, 0x20
je 0x1005ad39
sub eax, 5
jne case.default.0x1005b075
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je case.default.0x1005b075
push ecx
push dword [ebp - 0x3c8]
lea eax, [edx + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x3e0]
mov dword [ecx], eax
mov al, 1
jmp 0x1005bbe9
mov eax, dword [ebp - 0x3c8]
mov ecx, 0xf1
movzx eax, ax
mov dword [ebp - 0x3cc], eax
cmp cx, ax
jne 0x1005ada7
lea eax, [esi + 0x310]
mov ecx, esi
push eax
call fcn.100598d0
cmp byte [esi + 0x320], 0
sete al
mov byte [esi + 0x320], al
jmp case.default.0x1005b075
xor edi, edi
lea ecx, [esi + 0x174]
mov dword [ebp - 0x3c0], edi
call fcn.100545d0
test eax, eax
jle case.default.0x1005b075
push edi
lea ecx, [esi + 0x174]
call fcn.10053da0
mov edi, eax
mov ecx, dword [edi + 8]
cmp ecx, dword [esi]
jne 0x1005adeb
mov eax, dword [ebp - 0x3cc]
movzx ecx, ax
cmp dword [edi + 0xc], ecx
jne 0x1005adeb
cmp byte [edi + 0x10], 0
je 0x1005ae0c
mov edi, dword [ebp - 0x3c0]
lea ecx, [esi + 0x174]
inc edi
mov dword [ebp - 0x3c0], edi
call fcn.100545d0
cmp edi, eax
jl 0x1005adc2
jmp case.default.0x1005b075
mov ecx, dword [edi]
xorps xmm0, xmm0
mov eax, dword [edi + 4]
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x238], 0x18
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
jmp case.default.0x1005b075
cmp byte [esi + 0xca], 0
jne 0x1005aec4
mov eax, dword [esi]
mov dword [ebp - 0x240], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x248], 0x10
mov dword [ebp - 0x244], 3
test eax, eax
jne 0x1005ae9a
mov dword [ebp - 0x23c], 0x190
jmp 0x1005aeb0
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [esi + 0xca], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [esi + 0x58]
movsx edi, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x3cc], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], eax
mov dword [ebp - 0x3f4], edi
mov dword [ebp - 0x3f0], eax
test ecx, ecx
jne 0x1005aefa
xor eax, eax
mov dword [ebp - 0x3c0], eax
jmp 0x1005af2d
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x1005af2d
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x20]
call edx
cmp eax, esi
jne case.default.0x1005b075
mov eax, dword [ebp - 0x3cc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x3c4]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x21c], edi
mov edi, dword [ebp - 0x3c0]
mov dword [ebp - 0x220], eax
mov eax, ecx
cmp edi, ecx
je 0x1005afcf
test ecx, ecx
je 0x1005afcf
mov dword [ebp - 0x238], 0xa
lea edx, [ebp - 0x238]
mov dword [ebp - 0x234], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x150]
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esi + 0x64], 0
test ecx, ecx
je 0x1005afcf
lea eax, [esi + 0x24]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x64]
cmp edi, eax
je 0x1005affb
test edi, edi
je 0x1005affb
mov dword [ebp - 0x238], 0xb
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x234], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x150]
mov dword [esi + 0x64], edi
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x1005b026
mov dword [ebp - 0x238], 9
lea edx, [ebp - 0x238]
mov dword [ebp - 0x234], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x150]
jmp case.default.0x1005b075
test edi, edi
je case.default.0x1005b075
mov dword [ebp - 0x238], 9
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x234], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x150]
jmp case.default.0x1005b075
cmp edx, 0x20a
ja 0x1005b610
je 0x1005b457
add edx, 0xfffffdff
cmp edx, 3
ja case.default.0x1005b075
jmp dword [edx*4 + 0x1005bd38]
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
je 0x1005b09c
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1005b09c
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x3c4]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x3cc], ecx
mov dword [esi + 0x70], ecx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x3e8], eax
mov dword [esi + 0x74], eax
mov dword [ebp - 0x3f0], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov edi, eax
mov dword [ebp - 0x3dc], edi
test edi, edi
je case.default.0x1005b075
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x20]
call edx
cmp eax, esi
jne case.default.0x1005b075
mov dword [esi + 0x68], edi
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x134]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x3cc]
xor eax, eax
mov word [ebp - 0x224], ax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x234], edi
mov edi, dword [ebp - 0x3c4]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x3e8]
mov byte [esi + 0xcb], 1
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0xd
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], ecx
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3dc]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
jmp case.default.0x1005b075
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x3c4]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x3cc], ecx
mov dword [esi + 0x70], ecx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x3e8], eax
mov dword [esi + 0x74], eax
mov dword [ebp - 0x3f0], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov edi, eax
test edi, edi
je case.default.0x1005b075
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x20]
call edx
cmp eax, esi
jne case.default.0x1005b075
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
mov byte [esi + 0xcb], 1
mov word [ebp - 0x224], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x230], 0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - 0x238], 0x10
mov dword [ebp - 0x234], edi
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x238]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x150]
mov dword [esi + 0x68], edi
jmp case.default.0x1005b075
mov eax, dword [ebp - 0x3c4]
movsx ecx, ax
shr eax, 0x10
cmp dword [esi + 0x68], 0
cwde
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - 0x3e8], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
je case.default.0x1005b075
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x3cc]
xor eax, eax
mov edi, dword [ebp - 0x3c4]
mov word [ebp - 0x224], ax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x3e8]
mov dword [ebp - 0x238], 0xe
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], ecx
mov word [ebp - 0x222], ax
mov dword [ebp - 0x230], 0
mov byte [esi + 0xcb], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x68]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov dword [esi + 0x68], 0
jmp case.default.0x1005b075
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x3c4]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x3cc], ecx
mov dword [esi + 0x70], ecx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x3e8], eax
mov dword [esi + 0x74], eax
mov dword [ebp - 0x3f0], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov edi, eax
mov dword [ebp - 0x3dc], edi
test edi, edi
je case.default.0x1005b075
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x20]
call edx
cmp eax, esi
jne case.default.0x1005b075
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x134]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x3cc]
xor eax, eax
mov word [ebp - 0x224], ax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x234], edi
mov edi, dword [ebp - 0x3c4]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x3e8]
mov byte [esi + 0xcb], 1
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], ecx
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x3dc]
jmp 0x1005b280
mov ecx, dword [ebp - 0x3c4]
movsx eax, cx
mov dword [ebp - 0x3ec], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x3e8], eax
lea eax, [ebp - 0x3ec]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3e8]
mov dword [esi + 0x70], ecx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x74], eax
mov dword [ebp - 0x3f0], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov edi, eax
mov dword [ebp - 0x3cc], edi
test edi, edi
je case.default.0x1005b075
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x20]
call edx
cmp eax, esi
jne case.default.0x1005b075
mov eax, dword [edi]
mov ecx, edi
push str.WebBrowserUI
mov eax, dword [eax + 0x10]
call eax
push eax
call fcn.100da91e
add esp, 8
test eax, eax
jne 0x1005b57d
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1005b522
mov eax, dword [ecx]
push str.EditUI
mov eax, dword [eax + 0x10]
call eax
push eax
call fcn.100da91e
add esp, 8
test eax, eax
je 0x1005b57d
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0x15
movlpd qword [ebp - 0x250], xmm0
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
mov dword [ebp - 0x254], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x258]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x150]
push 0
push 0
push 0
push str.setfocus
push edi
mov ecx, esi
call fcn.1005cc60
mov eax, dword [ebp - 0x3c8]
xorps xmm0, xmm0
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x234], edi
mov edi, dword [ebp - 0x3c4]
shr eax, 0xf
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x238], 0x12
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edi
call fcn.10059b40
mov word [ebp - 0x222], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3cc]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
movzx ecx, word [esi + 0x74]
movzx eax, word [esi + 0x70]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x1005b075
cmp edx, 0x318
ja 0x1005ba38
je 0x1005b94d
sub edx, 0x215
je 0x1005b8e9
sub edx, 0x8c
je 0x1005b67b
sub edx, 2
jne case.default.0x1005b075
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x1005b659
lea eax, [esi + 0x24]
push eax
push edx
push 0x411
push ecx
call edi
cmp byte [esi + 0xca], 0
je 0x1005b66f
push 0xffffffffffffffff
push 0
push 0x200
push dword [esi]
call edi
mov byte [esi + 0xca], 0
jmp case.default.0x1005b075
mov eax, dword [ebp - 0x3c4]
movsx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x3e8], ecx
cwde
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [esi + 0x58]
mov byte [esi + 0xca], 0
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3f0], eax
test ecx, ecx
je case.default.0x1005b075
mov eax, dword [ecx]
lea edx, [ebp - 0x3f4]
push 0xd
push edx
push 0x1005dc10
mov eax, dword [eax + 0x144]
call eax
mov edi, eax
test edi, edi
je case.default.0x1005b075
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005b742
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x3cc], eax
cmp eax, dword [esi]
je 0x1005b742
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x3cc]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x1005b742
lea eax, [ebp - 0x218]
push str.Internet_Explorer_Server
push eax
call fcn.100da91e
add esp, 8
test eax, eax
jne 0x1005b742
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x1005b7ae
mov ecx, dword [ebp - 0x3e8]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x3dc]
mov dword [ebp - 0x230], 0
movlpd qword [ebp - 0x224], xmm0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x238], 0xc
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x230], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x150]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x1005acd9
mov eax, dword [edi]
lea ecx, [ebp - 0x36c]
push ecx
mov ecx, edi
call dword [eax + 0xd8]
lea ecx, [ebp - 0x36c]
mov dword [ebp - 4], 1
call fcn.10054910
lea ecx, [ebp - 0x36c]
test al, al
jne 0x1005b8dd
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [esi]
mov dword [esi + 0x24], 0x30
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, dword [0x1015086c]
mov dword [esi + 0x44], eax
call fcn.10053db0
mov dword [esi + 0x48], eax
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
call eax
movups xmm0, xmmword [eax]
mov eax, dword [esi + 0x20]
movups xmmword [esi + 0x34], xmm0
test eax, eax
jne 0x1005b8b3
push eax
push dword [0x1015086c]
push eax
push dword [esi]
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push eax
push str.tooltips_class32
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edi, [esi + 0x24]
mov dword [esi + 0x20], eax
push edi
push 0
push 0x432
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
mov eax, dword [esi + 0x20]
jmp 0x1005b8b6
lea edi, [esi + 0x24]
push edi
push 0
push 0x436
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x411
push dword [esi + 0x20]
call eax
lea ecx, [ebp - 0x36c]
call fcn.1001fc60
mov al, 1
jmp 0x1005bbe9
mov edx, dword [esi + 0x68]
test edx, edx
je case.default.0x1005b075
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [esi]
je case.default.0x1005b075
mov ecx, dword [ebp - 0x3c8]
xorps xmm0, xmm0
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x238]
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x238], 0x1b
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x21c], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x154]
jmp case.default.0x1005b075
lea eax, [ebp - 0x228]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x3c8]
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x3cc], eax
lea eax, [ebp - 0x228]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x160]
test byte [ebp - 0x3c4], 0x10
je 0x1005ba26
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x1005ba26
or dword [ebp - 0x3c4], 2
nop
lea ecx, [ebp - 0x248]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x248], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x248]
push eax
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x244]
push 0
neg eax
push eax
mov eax, dword [ebp - 0x248]
neg eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push dword [ebp - 0x3c4]
push edi
push 0x317
push dword [ebp - 0x3c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push dword [ebp - 0x3c0]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x3c0], eax
test eax, eax
jne 0x1005b9b0
push dword [ebp - 0x3cc]
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp case.default.0x1005b075
cmp edx, 0x31e
je 0x1005bac7
cmp edx, 0x8001
jne case.default.0x1005b075
lea edi, [esi + 0x1a4]
push edi
lea ecx, [ebp - 0x3f8]
call fcn.100539e0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.100541a0
lea ecx, [ebp - 0x3f8]
xor edi, edi
call fcn.100545d0
test eax, eax
jle 0x1005baa8
push edi
lea ecx, [ebp - 0x3f8]
call fcn.10053da0
test eax, eax
je 0x1005ba98
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
lea ecx, [ebp - 0x3f8]
inc edi
call fcn.100545d0
cmp edi, eax
jl 0x1005ba81
lea ecx, [ebp - 0x3f8]
call fcn.100541a0
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 4], 0xffffffff
call fcn.10053b30
jmp case.default.0x1005b075
push str.Dwmapi.dll
mov dword [esi + 0x348], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je case.default.0x1005b075
push str.DwmIsCompositionEnabled
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005bafb
lea ecx, [esi + 0x348]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi + 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esi + 0x1b0]
call fcn.10054520
push 0
lea ecx, [esi + 0x1b0]
mov edi, eax
call fcn.10054a40
lea eax, [esi + 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1005bbe7
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x1005bb69
add ecx, 0x38
call fcn.100720a0
test al, al
je 0x1005bb69
mov ecx, dword [edi + 0x108]
push edi
add ecx, 0x38
call fcn.100720b0
test al, al
jne 0x1005bbc2
lea eax, [esi + 0x168]
mov dword [ebp - 0x3cc], 0
mov ecx, eax
mov dword [ebp - 0x3c0], eax
call fcn.100545d0
test eax, eax
jle 0x1005bbc2
mov esi, dword [ebp - 0x3cc]
cmp dword [edi + 0x108], 0
je 0x1005bbbc
mov ecx, dword [ebp - 0x3c0]
push esi
call fcn.10053da0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x3c0]
inc esi
call fcn.100545d0
cmp esi, eax
jl 0x1005bb90
mov esi, dword [ebp - 0x3d4]
lea ecx, [edi + 0x84]
call fcn.1001fc60
mov ecx, edi
call fcn.1001fc60
push 0x120
push edi
call fcn.100bacf4
add esp, 8
jmp case.default.0x1005b075
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret 0x10