Function at 0x66020b87
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
cmp ebx, ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x66020d1b
mov esi, dword [ebp + 0x10]
mov edi, dword [ebx + 0x28]
push 1
cmp esi, 0xf
mov dword [ebp + 8], edi
pop edx
mov eax, 0x85
jbe 0x66020d22
cmp esi, 0x1f
jbe 0x66020db9
mov ecx, dword [ebp + 0x18]
cmp esi, 0x2b
jbe 0x66035a9a
cmp esi, 0x39
jbe 0x66020ed1
cmp esi, 0x4e
jbe 0x66020f1a
cmp esi, eax
jbe 0x66020f57
cmp esi, 0x102
jbe 0x66020fd2
mov eax, 0x111
cmp esi, eax
jbe 0x66036232
mov eax, 0x117
cmp esi, eax
jbe 0x66036330
mov eax, 0x200
cmp esi, eax
jbe 0x660363df
mov eax, 0x210
cmp esi, eax
jbe 0x6603644b
mov eax, 0x30f
cmp esi, eax
jbe 0x6602100a
mov eax, 0x1000
cmp esi, eax
jbe 0x66021033
mov eax, 0x100d
cmp esi, eax
jbe 0x66021054
mov eax, 0x101e
cmp esi, eax
jbe 0x66021071
cmp esi, 0x1033
jbe 0x6603651b
mov eax, 0x105c
cmp esi, eax
ja 0x660360cb
jne 0x6603606c
mov eax, dword [edi]
mov eax, dword [eax]
shl eax, 0x17
sar eax, 0x1f
test al, al
jne 0x66020ff2
mov ax, word [edi + 0x2a]
test al, 0x40
jne 0x66036089
push ebx
call fcn.6602b4fd
mov eax, dword [ebx + 0xa4]
test eax, eax
jne 0x660360a1
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 0x20]
mov esi, eax
or eax, 0x20000
shr esi, 0x11
mov dword [ecx + 0x20], eax
mov ecx, ebx
and esi, 1
call fcn.6602b60b
test eax, eax
jne 0x660360b5
mov eax, dword [ebx + 0x24]
shr eax, 0xf
test al, 1
jne 0x660360c0
mov eax, dword [ebx + 0x30]
and esi, 1
shl esi, 0x11
mov ecx, dword [eax + 0x20]
and ecx, 0xfffdffff
or esi, ecx
mov ecx, ebx
mov dword [eax + 0x20], esi
call fcn.6602b61b
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
test byte [eax + 1], 1
jne 0x66020fff
cmp byte [eax + 0x37], 0x1d
je 0x66020fff
xor eax, eax
jmp 0x66020fad
je 0x66035a8c
cmp esi, 2
je 0x66020d97
cmp esi, 3
je 0x66020d88
cmp esi, 5
je 0x66020d56
cmp esi, 6
jbe case.0x6603653d.4130
cmp esi, 8
ja case.0x6603653d.4130
call fcn.660186ca
push 1
pop edx
jmp 0x66020fea
test byte [ebx + 0x25], 7
jne 0x66035a23
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
mov eax, dword [eax]
shl eax, 4
sar eax, 0x1f
test al, al
je case.0x6603653d.4130
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 0x44]
test edi, edi
je case.0x6603653d.4130
jmp 0x66035a30
test byte [ebx + 0x25], 7
je case.0x6603653d.4130
jmp 0x66035a7f
call fcn.660186ca
mov eax, dword [edi]
mov eax, dword [eax]
shl eax, 4
sar eax, 0x1f
test al, al
je case.0x6603653d.4130
push ebx
call fcn.6602bb77
jmp case.0x6603653d.4130
je 0x66020dc9
cmp esi, 0x19
jne case.0x6603653d.4130
jmp 0x660363fd
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
jmp case.0x6603653d.4130
cmp cl, 0x11
je 0x66035b4c
cmp cl, 0x1c
ja 0x66035b28
cmp dword [eax + 0xc], 0
jne 0x66035b36
jmp 0x66020f8f
cmp esi, 0xf
ja 0x66020e97
je 0x66035f0f
sub esi, 7
je 0x66020e56
dec esi
jne 0x66020faa
push edi
push ebx
call fcn.66022e54
test eax, eax
jne 0x66020faa
cmp word [ebx + 0xc8], ax
lea esi, [ebx + 0xc8]
jne 0x66035b7b
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x66020faa
mov eax, dword [eax + 0x74]
mov eax, dword [eax]
cmp byte [eax + 0x37], 0x1e
je 0x66035bf8
jmp 0x66020faa
mov eax, dword [ebx + 0x30]
push edi
push ebx
mov esi, dword [eax + 0x34]
call fcn.66022e54
test eax, eax
jne 0x66020faa
cmp word [ebx + 0xc8], ax
mov eax, dword [0x6610f7fc]
jne 0x66035c29
test eax, eax
je 0x66020e8c
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x66035c55
push ebx
call fcn.66023d35
jmp 0x66020faa
cmp esi, 0x82
jne 0x66035c6a
push ebx
push edi
call fcn.6602b475
mov eax, dword [ebx + 0x28]
and dword [ebx + 0x3c], 0
mov eax, dword [eax]
test byte [eax + 3], 8
je 0x66020faa
mov ebx, dword [ebx + 0x30]
test ebx, ebx
je 0x66020faa
and dword [ebx + 0x40], 0
jmp 0x66020faa
je 0x66036013
cmp esi, 0x2c
je 0x6603600f
cmp esi, 0x2d
je 0x6603600a
jbe case.0x6603653d.4130
cmp esi, 0x2f
jbe 0x66035fdc
cmp esi, 0x30
jne 0x66035fb9
mov eax, dword [edi]
mov eax, dword [eax]
sar eax, 0x1f
test al, al
je 0x66020fea
push dword [ebp + 0x14]
push ebx
call fcn.660217ef
jmp 0x66020d1b
je 0x66036028
mov eax, esi
sub eax, 0x46
jne 0x66020f40
cmp dword [ebp + 0xc], 0
je case.0x6603653d.4130
mov eax, dword [ebx + 0x24]
test al, 2
je case.0x6603653d.4130
test eax, 0x40000
je case.0x6603653d.4130
jmp 0x66036018
dec eax
jne case.0x6603653d.4130
mov eax, dword [ebx + 0x30]
test byte [eax + 0x20], 0x10
jne 0x66020f27
push dword [ebp + 0xc]
push ebx
call fcn.6602404d
jmp 0x66020f27
je 0x66020fc3
cmp esi, 0x82
je 0x66020fb4
mov edi, dword [ebx + 0x3c]
test edi, edi
mov dword [ebp + 0xc], edi
je 0x66020fa0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov cl, byte [eax + 0x37]
cmp cl, 0xa
jne 0x66020dd6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x58]
test byte [eax + 0x99], 0x10
jne 0x66035b68
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x66020df7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
push ebx
call fcn.6602b3a7
mov dword [ebp - 8], 1
jmp case.0x6603653d.4130
mov eax, dword [ebx + 0x24]
test eax, 0x40000
je case.0x6603653d.4130
jmp 0x6603604a
cmp esi, 0x100
jae 0x66036250
cmp esi, 0x87
jne case.0x6603653d.4130
mov dword [ebp - 8], edx
jmp case.0x6603653d.4130
push 0
push ebx
call fcn.6602baa9
jmp 0x66020c91
push ebx
call fcn.6602bac2
jmp 0x66020d1b
jne 0x660364bc
mov eax, dword [edi]
cmp byte [eax + 0x37], 0x11
je 0x66020d1b
mov ebx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
push eax
call dword [ecx + 0x30]
neg eax
sbb eax, eax
inc eax
jmp 0x66020fad
je 0x66021046
cmp esi, 0x311
jne case.0x6603653d.4130
jmp 0x660364cd
push dword [ebp + 0xc]
push ebx
call fcn.660219fc
jmp 0x66020fad
je 0x66020d1b
cmp esi, 0x1001
jne case.0x6603653d.4130
push ebx
call fcn.660226f6
jmp 0x66020fad
je 0x66020d1b
add eax, 0xfffffff0
cmp esi, eax
je 0x660210b0
jbe case.0x6603653d.4130
cmp esi, 0x1010
jbe 0x6603650b
cmp esi, 0x1011
jne 0x660364e2
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.66026cf9
jmp 0x66020fad
push 0
push dword [ebp + 0x14]
push ebx
call fcn.66022e97
jmp 0x66020fad
push 0
push ebx
call fcn.6608ca71
jmp 0x66020d60
cmp dword [ebp + 0x14], 1
je case.0x6603653d.4130
mov esi, dword [ebp + 0x18]
mov edx, dword [eax + 0x4c]
shr esi, 0x10
movsx esi, si
sub esi, dword [eax + 0x54]
mov ecx, dword [eax + 0x48]
push 1
sub esi, edx
push esi
movsx esi, word [ebp + 0x18]
sub esi, dword [eax + 0x50]
sub esi, ecx
push esi
push edx
push ecx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebx + 0x30]
test byte [eax + 0x20], 0x10
jne 0x66020d1b
push dword [ebp + 0xc]
push ebx
call fcn.6602404d
jmp 0x66020d1b
push 0
push ebx
call fcn.6608ca71
jmp case.0x6603653d.4130
cmp dword [ebp + 0x14], ecx
jne case.0x6603653d.4130
jmp 0x66020fc3
cmp esi, 0x2b
je 0x66035f97
mov eax, esi
sub eax, 0x20
je 0x66035f31
dec eax
je 0x66035acc
sub eax, 3
jne case.0x6603653d.4130
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.66079f84
push 1
pop eax
jmp 0x66020fad
mov edi, dword [ebx + 0x30]
mov eax, dword [edi + 0x34]
mov eax, dword [eax + 0x520]
test eax, eax
je 0x66035ae6
cmp dword [eax + 0x18], 0
jne case.0x6603653d.4130
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x38]
cmp dword [ebp + 0x14], ecx
jne case.0x6603653d.4130
cmp dword [ebp + 0xc], ecx
je case.0x6603653d.4130
mov eax, dword [eax + 0x34]
xor ecx, ecx
cmp eax, dword [edi + 0xa0]
lea esi, [eax + 0x18c]
sete cl
mov eax, dword [esi]
and ecx, 1
shl ecx, 3
and al, 0xf7
or ecx, eax
mov dword [esi], ecx
mov esi, dword [ebp + 0x10]
jmp case.0x6603653d.4130
cmp cl, 0x20
jbe 0x66020f7c
jmp 0x66020de8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push dword [edx + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x66020f9d
push dword [ebp + 0x18]
mov eax, dword [ebx + 0x30]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x2c]
push esi
push dword [eax + 0x3c]
push edi
call dword [sym.imp.USER32.dll_DefFrameProcA]
jmp 0x66020f9d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.USER32.dll_DefMDIChildProcA]
jmp 0x66020f9d
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x66035b9e
cmp eax, dword [ebp + 0x14]
je 0x66035b96
push 2
push eax
jmp 0x66035b86
test eax, eax
jne 0x66020e34
mov eax, dword [ebx + 0x30]
cmp word [esi], 3
mov edi, dword [eax + 0x34]
mov eax, dword [0x6610f7fc]
je 0x66035bce
test eax, eax
je 0x66020e34
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x66035bce
push 0
push esi
push dword [ebp + 0xc]
call ecx
mov eax, dword [0x6610f7fc]
add esp, 0xc
test eax, eax
je 0x66020e34
mov eax, dword [eax + 0x34]
test eax, eax
je 0x66020e34
movzx ecx, word [edi + 0xe9c]
push 0
push ecx
push dword [ebp + 0xc]
call eax
add esp, 0xc
jmp 0x66020e34
cmp dword [ebp + 0x14], 0
je 0x66035c1b
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
cmp byte [eax + 0x37], 5
jne 0x66035c1b
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [ebp + 0xc]
je 0x66020faa
mov ecx, dword [ebx + 0x30]
push ebx
call fcn.6609ff06
jmp 0x66020faa
test eax, eax
je 0x66020e8c
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x66020e7d
add esi, 0xe9c
push 0
push esi
push edi
call ecx
mov eax, dword [0x6610f7fc]
add esp, 0xc
jmp 0x66020e7d
movzx ecx, word [ebx + 0xc8]
push 0
push ecx
push edi
call eax
add esp, 0xc
jmp 0x66020e8c
cmp esi, 0x85
je 0x66035f0f
cmp esi, 0x87
je 0x66035f06
cmp esi, 0x1ff
jbe 0x66020faa
cmp esi, 0x209
jbe 0x66035edf
mov eax, 0x1032
cmp esi, eax
je 0x66035e8e
cmp esi, 0x1033
jne 0x66020faa
push dword [ebp + 0x18]
mov ecx, dword [ebx + 0x28]
push dword [ebp + 0x14]
mov ecx, dword [ecx]
push eax
push dword [ebx + 0x3c]
push ebx
call dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x28]
shr eax, 0xf
test al, 1
je 0x66020faa
mov esi, dword [ebp + 0x18]
push 5
pop ecx
lea edi, [ebp - 0x34]
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x66035d7c
mov eax, dword [esi + 0x24]
test eax, 0x2000000
je 0x66035d74
test al, 4
je 0x66035d74
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x68]
mov edx, dword [0x6610f700]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x6c]
add ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x60]
call fcn.660201d2
add eax, dword [ebp - 0x20]
mov edx, dword [0x6610f6fc]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x64]
call fcn.660201d2
add eax, dword [ebp - 0x1c]
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_SaveDC]
test eax, eax
je 0x66035d74
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp + 0x14]
mov eax, dword [eax]
push 0x1032
push dword [esi + 0x3c]
push esi
call dword [eax + 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov esi, dword [esi + 0x44]
jmp 0x66035cf2
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.USER32.dll_GetWindow]
jne 0x66035e7f
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x66020faa
push 0
push dword [ebx + 0x30]
push dword [ebp + 0x10]
call fcn.66023cd5
test eax, eax
jne 0x66035db9
push 2
push dword [ebp + 0x10]
call edi
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x66035d9a
cmp dword [ebp + 0x10], 0
je 0x66020faa
push 1
push dword [ebp + 0x10]
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x66020faa
push 3
push eax
call edi
push 0
mov dword [ebp - 0xc], eax
push dword [ebx + 0x30]
push dword [ebp + 8]
call fcn.66023cd5
mov esi, eax
test esi, esi
je 0x66035e6b
test byte [esi + 0x24], 4
je 0x66035e6b
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_SaveDC]
test eax, eax
je 0x66035e6b
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push 2
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp + 0x14]
mov eax, dword [eax]
push 0x1033
push dword [esi + 0x3c]
push esi
call dword [eax + 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], eax
je 0x66020faa
mov eax, dword [ebp - 0xc]
jmp 0x66035dca
push 5
push dword [ebp + 0xc]
call edi
mov dword [ebp + 0x10], eax
jmp 0x66035d90
mov eax, dword [ebp + 8]
push 0
movzx eax, word [eax + 0x28]
shr eax, 0xf
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 0x34]
pop eax
sete al
push eax
push ebx
mov dword [edi + 0xe7c], eax
call fcn.66085454
mov esi, eax
test esi, esi
je 0x66035ed0
mov eax, dword [ebp + 0x18]
push esi
push dword [eax + 8]
push dword [ebp + 0x14]
call fcn.660866a4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0xe7c], 1
jmp 0x66020faa
push edi
push ebx
call fcn.66022e54
test eax, eax
je 0x66035ef4
call fcn.660186ca
jmp 0x66020faa
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push ebx
call fcn.6607ae9e
jmp 0x66020faa
or byte [ebp - 4], 0x80
jmp 0x66020faa
cmp dword [0x6610f7e8], 0
je 0x66035f2d
mov ebx, dword [ebx + 0x24]
shr ebx, 0x1d
and ebx, 1
push ebx
push edi
call fcn.6607d073
jmp 0x66020faa
xor ebx, ebx
jmp 0x66035f21
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x66035f53
mov ecx, dword [ecx + 0x74]
mov ecx, dword [ecx]
cmp byte [ecx + 0x37], 0x1d
jne 0x66035f53
test byte [eax + 0x1b4], 0x20
jne case.0x6603653d.4130
movzx eax, word [ebp + 0x18]
push eax
push ebx
call fcn.6607a256
test eax, eax
jne 0x66035ac4
cmp dword [ebp + 0xc], eax
jne case.0x6603653d.4130
push ebx
call fcn.6602aa10
mov ebx, eax
test ebx, ebx
je 0x66020d1b
movzx eax, word [ebp + 0x18]
push eax
push ebx
call fcn.6607a256
test eax, eax
je case.0x6603653d.4130
jmp 0x66035ac4
mov eax, dword [ecx + 0x14]
push eax
push ecx
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push esi
push dword [ebp + 0xc]
push eax
call fcn.6607a131
test eax, eax
jne 0x66020faa
jmp case.0x6603653d.4130
cmp esi, 0x31
jne case.0x6603653d.4130
mov eax, dword [edi]
mov eax, dword [eax]
sar eax, 0x1f
test al, al
je case.0x6603653d.4130
mov eax, dword [ebx + 0xdc]
jmp 0x66020fad
push dword [ebp + 0x18]
call fcn.660280a6
test eax, eax
je 0x66036002
push dword [ebp + 0x18]
add esi, 0x2000
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x18]
call fcn.66020297
jmp 0x66020fad
or eax, 0xffffffff
jmp 0x66020fad
mov eax, dword [ecx + 0xc]
jmp 0x66035f9a
xor eax, eax
jmp 0x66035f9a
mov eax, dword [ecx + 8]
jmp 0x66035f9a
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.6607d002
jmp case.0x6603653d.4130
mov eax, dword [ebp + 0x18]
push dword [eax]
call fcn.660280a6
test eax, eax
je 0x66020d1b
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0x204e
push dword [eax]
jmp 0x66035ff8
test al, 2
je case.0x6603653d.4130
push ebx
call fcn.6602aa10
mov eax, dword [eax + 0x28]
mov eax, dword [eax]
cmp byte [eax + 0x37], 0x11
je case.0x6603653d.4130
jmp 0x66020fba
cmp esi, 0x1058
jb case.0x6603653d.4130
cmp esi, 0x105b
ja case.0x6603653d.4130
jmp 0x66020d1b
test byte [edi + 0x28], 0x10
jne 0x66020c9d
test ah, 8
je 0x66020ca3
jmp 0x66020c9d
push eax
push 0
push dword [0x6610f6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x66020cb1
push ebx
call fcn.660ca188
jmp 0x66020cd6
push ebx
call fcn.660950e2
jmp 0x66020ce4
mov eax, 0x1080
cmp esi, eax
ja 0x660360f8
je 0x660360e7
cmp esi, 0x105d
jne case.0x6603653d.4130
jmp 0x66020d1b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.66087be6
jmp 0x66020fad
mov eax, 0x1090
cmp esi, eax
ja 0x66036173
je 0x66036169
mov eax, esi
sub eax, 0x1087
je 0x6603615b
dec eax
dec eax
jne case.0x6603653d.4130
push dword [ebp + 0x18]
push ebx
call fcn.660c9b31
push dword [ebp + 0x18]
mov esi, eax
push 0
push dword [0x6610f6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x66020d1b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx + 0x28]
movzx eax, byte [eax + 0xf8]
push eax
push ebx
call fcn.66022e97
jmp 0x66020d1b
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
jmp 0x66020fad
mov eax, 0x6005940
jmp 0x66020fad
mov eax, 0x2019
cmp esi, eax
ja 0x660361c9
je 0x6603642d
mov eax, esi
sub eax, 0x1091
je 0x660361ac
dec eax
jne case.0x6603653d.4130
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x660361a4
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0xc]
jmp 0x66020fad
mov eax, dword [edi + 0xc]
jmp 0x66020fad
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x660361be
mov eax, dword [eax + 0x84]
jmp 0x66020fad
mov eax, dword [ebx + 0x84]
jmp 0x66020fad
cmp esi, 0x202b
jb case.0x6603653d.4130
cmp esi, 0x202d
jbe 0x66020d1b
cmp esi, 0x2039
je 0x66020d1b
cmp esi, 0x2111
je 0x66020d1b
cmp esi, 0x2113
jbe case.0x6603653d.4130
cmp esi, 0x2115
jbe 0x66020d1b
cmp esi, 0x2210
jne case.0x6603653d.4130
cmp dword [ebp + 0x14], 2
jne 0x66020d1b
push ebx
call fcn.6602bb77
jmp 0x66020d1b
je 0x66036313
cmp esi, 0x104
jb case.0x6603653d.4130
cmp esi, 0x105
ja case.0x6603653d.4130
push 0
lea eax, [ebp + 0x18]
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebx + 0x3c]
push ebx
call fcn.6607a9a7
test eax, eax
jne 0x66020d1b
cmp esi, 0x100
jne 0x660362b6
cmp dword [ebp + 0x14], 0x70
jne 0x660362b6
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ax, ax
jl 0x660362b6
push 0x11
call edi
test ax, ax
jl 0x660362b6
mov eax, dword [ebx + 0x30]
push ebx
push dword [eax + 0xa0]
call fcn.6607136a
test eax, eax
jne 0x660362b6
push eax
push ebx
call fcn.6607b2da
test eax, eax
jne 0x66020d1b
mov edi, 0x102
cmp esi, edi
jne case.0x6603653d.4130
mov eax, dword [ebx + 0x28]
cmp dword [eax], 0x6610efe0
jne case.0x6603653d.4130
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je case.0x6603653d.4130
push 0
push 0
push 0x18b
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne case.0x6603653d.4130
push 3
push edi
push edi
lea eax, [ebp - 0x3c]
push dword [ebx + 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x66020d1b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.6607a181
test eax, eax
je case.0x6603653d.4130
jmp 0x66020d1b
je 0x66036382
cmp esi, 0x114
jb case.0x6603653d.4130
cmp esi, 0x115
ja case.0x6603653d.4130
cmp word [ebp + 0x14], 0xb6
je case.0x6603653d.4130
mov edi, dword [ebp + 0x18]
test edi, edi
je case.0x6603653d.4130
push edi
call fcn.660280a6
test eax, eax
je case.0x6603653d.4130
push dword [ebp + 0x18]
add esi, 0x2000
push dword [ebp + 0x14]
push esi
push edi
jmp 0x66035ff8
mov eax, dword [ebp + 0x18]
shr eax, 0x10
test ax, ax
jne case.0x6603653d.4130
push dword [ebp + 0x14]
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 0x34]
push ebx
call fcn.66092b08
mov esi, eax
test esi, esi
je 0x66035b20
push ebx
call fcn.66071201
cmp dword [ebp + 0x14], eax
je 0x66035b20
movzx eax, word [esi + 0xe4]
push ebx
push eax
push 0x105b
mov dword [edi + 0x514], 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x66035b20
je 0x66020fea
cmp esi, 0x132
jb case.0x6603653d.4130
cmp esi, 0x138
ja case.0x6603653d.4130
push dword [ebp + 0x18]
call fcn.66015bcd
test eax, eax
je 0x6603642d
mov ecx, dword [eax + 0x28]
mov ecx, dword [ecx]
test byte [ecx + 3], 2
jne 0x6603642b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0x2019
push dword [eax + 0x3c]
push eax
call dword [ecx + 0x10]
jmp 0x66020fad
mov ebx, eax
push 1
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp + 0x14]
push ebx
call fcn.66027200
push dword [ebp - 0xc]
call fcn.66027124
jmp 0x66020fad
je 0x6603646a
cmp esi, 0x201
jb case.0x6603653d.4130
cmp esi, 0x209
ja case.0x6603653d.4130
jmp 0x66020d49
cmp word [ebp + 0x14], dx
je 0x6603647b
cmp word [ebp + 0x14], 2
jne case.0x6603653d.4130
push 0
push dword [ebx + 0x30]
push dword [ebp + 0x18]
call fcn.66023cd5
test eax, eax
je case.0x6603653d.4130
mov ecx, dword [eax + 0x28]
mov ecx, dword [ecx]
test byte [ecx + 3], 2
jne 0x660364ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0x2210
jmp 0x6603641f
cmp word [ebp + 0x14], 2
jne case.0x6603653d.4130
push eax
jmp 0x66020daf
cmp esi, 0x286
jne case.0x6603653d.4130
jmp 0x66036250
mov ebx, dword [ebx + 0x30]
push dword [ebp + 0x14]
mov ecx, dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
push eax
call dword [ecx + 0x34]
jmp 0x66020d1b
cmp esi, 0x1012
je 0x660364fd
cmp esi, 0x1015
jne case.0x6603653d.4130
push 7
jmp 0x66035ac6
push dword [ebp + 0x14]
push ebx
call fcn.6607a73b
jmp 0x66020d1b
lea eax, [ebp + 0x18]
push eax
push esi
push ebx
call fcn.660cbf89
jmp 0x66020fad
cmp esi, 0x1032
jae 0x66020fea
lea eax, [esi - 0x101f]
cmp eax, 0xf
ja case.0x6603653d.4130
movzx eax, byte [eax + 0x6603660a]
jmp dword [eax*4 + 0x660365e2]
mov eax, 0x200050
jmp 0x66020fad
push dword [ebp + 0x14]
push ebx
call fcn.66087aae
jmp 0x66020fad
cmp dword [ebp + 0x14], 0x25
jb 0x66020d1b
cmp dword [ebp + 0x14], 0x28
ja 0x66020d1b
mov eax, dword [edi]
mov eax, dword [eax]
shl eax, 0x1f
sar eax, 0x1f
jmp 0x66020fad
cmp dword [ebp + 0x14], 1
jne 0x66036593
push dword [ebp + 0x18]
push ebx
call fcn.6607a82c
jmp 0x66020d1b
cmp dword [ebp + 0x14], 0
jne 0x66020d1b
push dword [ebp + 0x18]
push ebx
call fcn.6607a0de
jmp 0x66020fad
push 2
jmp 0x66035ac6
push dword [ebp + 0x18]
push ebx
call fcn.660b476a
jmp 0x66020fad
push dword [ebp + 0x18]
push ebx
call fcn.660b4899
jmp 0x66020fad
push 1
push dword [ebp + 0x18]
push ebx
call fcn.6607a026
jmp 0x66020fad
push 0
jmp 0x660365d0