Function at 0x10078b40
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x1010b040]
xor eax, esp
mov dword [esp + 0xf8], eax
cmp dword [0xe609e8], 5
push ebx
push esi
push edi
jne 0x10078ba0
cmp dword [0x114ece20], 1
je 0x10078ba0
cmp dword [0x102e0708], 1
jne 0x10078b96
cmp dword [0x1147236c], 1
je 0x10078b96
push 0
push 0
push 0
push 0x1004d5d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x114ece20], 1
mov eax, dword [0x8128ac8]
mov dword [0x11478458], eax
mov ecx, dword [0x7bc4f04]
mov dword [0x1147845c], ecx
mov eax, dword [0x879340c]
mov dword [0x1147846c], eax
mov eax, dword [0x8793410]
mov dword [0x11478474], eax
mov eax, dword [0xe61e18]
mov dword [0x11478468], eax
cmp byte [ecx + 0x31f], 1
mov esi, dword [0x8128ac4]
jne 0x10078c0d
mov eax, dword [ecx + 0x2fc]
test eax, eax
je 0x10078c0d
push eax
mov eax, 0x9cea6c
call eax
mov eax, dword [0x1147845c]
add esp, 4
mov dword [eax + 0x2fc], 0
mov ecx, dword [0x1147845c]
mov eax, 0x1f5b
cmp word [ecx + 0x22c], ax
jl 0x10078c26
mov al, byte [esi + 0x15ae]
mov byte [0x812a072], al
call fcn.100521e0
call fcn.10010db0
mov ecx, 0x114dae78
call fcn.10024ce0
call fcn.100c6fd0
mov ecx, 0x1011c6c8
call fcn.10021af0
mov ecx, 0x102bb6b0
call fcn.1007a290
mov ecx, 0x102bb6b0
call fcn.1007f330
mov ecx, 0x102bb6b0
call fcn.1007a6f0
call fcn.10023c20
mov ecx, 0x114ec9d8
call fcn.10033d60
call fcn.100b0000
mov ecx, 0x114ecbd8
call fcn.10045a80
call fcn.1001fbf0
mov ecx, 0x114d8a98
call fcn.1001ff60
call fcn.1004ea10
call fcn.1004e5f0
mov ecx, 0x114f5240
call fcn.100c8cd0
call fcn.100ce100
mov ecx, 0x114edea8
call fcn.10070870
call fcn.10072290
mov ecx, 0x10139aa4
call fcn.1002ea10
call fcn.10031cb0
call fcn.1002cda0
mov ecx, 0x114e89e0
call fcn.1002d360
call fcn.1000a530
mov ecx, 0x114c84a8
call fcn.1000a8a0
call fcn.1000f700
call fcn.1000fd90
call fcn.100124c0
mov ecx, 0x1010cf90
call fcn.100128e0
mov ecx, 0x102bb6b0
call fcn.1007f630
mov ecx, 0x102bb6b0
call fcn.1007fa70
mov ecx, 0x114eca40
call fcn.10035120
mov ecx, 0x114eca40
call fcn.100382a0
mov ecx, 0x114d8a8c
call fcn.1001f110
call fcn.10062ed0
mov ecx, 0x102e03fc
call fcn.100bb5e0
mov ecx, 0x114f3db0
call fcn.100b8cb0
call fcn.100bab00
call fcn.10026e10
mov ecx, 0x114e8960
call fcn.10027a80
mov ecx, 0x114ecfc0
call fcn.10054ae0
call fcn.1004d300
mov ecx, 0x1025c7c0
call fcn.1004dac0
mov esi, dword [0x1025c7c4]
mov ecx, 0x635fd0
mov edi, dword [sym.imp.OPENGL32.dll_glColor4f]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x10078ee7
push 1
call ecx
movd xmm0, dword [0x879340c]
add esp, 4
cvtdq2ps xmm0, xmm0
push 0
push 0
push 0
addss xmm0, dword [0x1010310c]
push esi
call fcn.100f2fc0
xor ecx, ecx
or ecx, 0x8c
push ecx
push eax
mov eax, 0x861110
call eax
mov ecx, eax
mov eax, 0x861aa0
call eax
mov ecx, eax
mov eax, 0x7e3e30
call eax
sub esp, 0x10
mov dword [esp + 0xc], 0x3f4ccccd
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
movd xmm0, dword [0x879340c]
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
push 0
sub esp, 0x14
mov eax, 0x6378a0
mov dword [esp + 0x10], 0
addss xmm0, xmm1
mov dword [esp + 0xc], 0x42c80000
mov dword [esp + 8], 0x42820000
mov dword [esp + 4], 0x43200000
movss dword [esp], xmm0
call eax
mov eax, 0x636070
call eax
push 1
mov eax, 0x635fd0
call eax
movsx eax, byte [esi + 0x17]
add esp, 0x18
movd xmm0, dword [0x879340c]
movsx ecx, word [esi]
mov edx, dword [esi + 2]
movss xmm1, dword [0x10103194]
push 0
push eax
movzx eax, byte [esi + 0x44]
cvtdq2ps xmm0, xmm0
movd xmm3, eax
movzx eax, byte [esi + 0x43]
addss xmm0, dword [0x10102f28]
cvtdq2ps xmm3, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
call fcn.1007f000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
push ecx
mov dword [esp], 0x3f800000
call edi
push 0
mov esi, 0x635fd0
call esi
add esp, 4
call ebx
mov ecx, dword [0x1025c7cc]
add ecx, 0x64
cmp ecx, eax
jae 0x10078ee9
mov dword [0x1025c7c4], 0
jmp 0x10078ee9
mov esi, ecx
mov eax, dword [0x101be65c]
test eax, eax
je 0x10078f88
movd xmm0, dword [0x879340c]
cvtdq2ps xmm0, xmm0
push 0
push 0
push 1
push eax
subss xmm0, dword [0x1010310c]
call fcn.100f2fc0
xor ecx, ecx
or ecx, 0x28
push ecx
push eax
mov ecx, 0x102df954
call fcn.10093e30
mov eax, 0x7dd0f0
call eax
test eax, eax
je 0x10078f74
call ebx
sub eax, dword [0x101be6d4]
cmp eax, 0x32
jbe 0x10078f88
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push dword [0x8793410]
mov eax, 0x861110
push dword [0x879340c]
call eax
mov edx, 0x861260
mov ecx, eax
call edx
mov edx, 0x83c7b0
mov ecx, eax
call edx
test eax, eax
jne 0x10078f88
mov dword [0x101be65c], 0
mov dword [0x101be6d8], 0xffffffff
mov ecx, 0x1011aab8
call fcn.1001a310
call fcn.10019700
call fcn.100680a0
mov ecx, 0x102bb620
call fcn.10069830
mov ecx, 0x102bb620
call fcn.1006e880
call fcn.10064570
mov ecx, 0x114ed130
call fcn.100648e0
call fcn.10066f30
call fcn.100675a0
mov ecx, 0x114ecff0
call fcn.10056320
mov ecx, 0x114ecff0
call fcn.1005dc20
mov ecx, 0x114ecff0
call fcn.1005e290
cmp dword [0x102e0870], 1
jne 0x10079042
call ebx
mov ecx, dword [0x1054ab9c]
add ecx, 0x3e8
cmp eax, ecx
jb 0x10079042
call fcn.10013cc0
test al, al
je 0x1007903b
xor eax, eax
mov ecx, 0xebb848
mov dword [esp + 0x11], eax
mov eax, 0x79dea0
mov word [esp + 0x10], 0x8c1
mov byte [esp + 0x12], 0x88
call eax
mov edx, 8
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
call fcn.100c6710
call ebx
mov dword [0x1054ab9c], eax
cmp dword [0x102e0804], 1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x10079148
cmp dword [0xe61728], 0xffffffff
je 0x10079148
push 0x12
call edi
test ax, ax
jns 0x10079148
mov eax, dword [0xe61728]
cmp eax, 0x3e7
ja 0x10079148
lea eax, [eax + eax*4]
cmp byte [eax*4 + 0x11329b28], 1
jne 0x10079148
push 1
call esi
mov eax, dword [0xe61728]
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x11329b29]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.100519d0
mov esi, eax
lea edi, [esp + 0x20]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0xe61728]
lea eax, [eax + eax*4]
mov eax, dword [eax*4 + 0x11329b38]
mov dword [esp + 0x8f], eax
lea eax, [esp + 0x2c]
mov ecx, dword [0x879340c]
push eax
xor eax, eax
sub ecx, 0x3c
or eax, 0x64
push eax
push ecx
mov eax, 0x861110
call eax
mov ecx, eax
mov eax, 0x861aa0
call eax
mov ecx, eax
mov eax, 0x7e3e30
call eax
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [sym.imp.OPENGL32.dll_glColor4f]
push 0
mov eax, 0x635fd0
call eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
push 9
mov eax, 0x861110
call eax
mov esi, 0x85ec20
mov ecx, eax
call esi
test al, al
je 0x10079187
push 0x4d
mov eax, 0x861110
call eax
mov ecx, eax
call esi
test al, al
jne 0x10079187
cmp byte [0x106d74d5], al
jbe 0x10079187
push 0x4d
mov eax, 0x861110
call eax
lea edx, [esi + 0x30]
mov ecx, eax
call edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0xe8c578]
jne 0x10079624
push 0x2c
call edi
test ax, ax
jns 0x100791ae
push 1
mov ecx, 0x102bb6b0
call fcn.10079ec0
push 0x23
call edi
bt ax, 0xe
jae 0x10079213
call ebx
sub eax, dword [0x102bc398]
cmp eax, 0x12c
jbe 0x10079213
push 0x21
mov eax, 0x861110
call eax
mov ecx, eax
mov eax, esi
call eax
test al, al
jne 0x10079213
cmp byte [0x102bc39d], al
je 0x100791fd
call ebx
mov dword [0x102bc398], eax
mov byte [0x102bc39d], 0
mov dword [0xe8cb3c], 0
jmp 0x10079213
call ebx
mov ecx, 0x102bb6b0
mov dword [0x102bc398], eax
call fcn.1007ec90
call fcn.10022f10
push 0x48
call edi
bt ax, 0xe
jae 0x10079223
call fcn.100261b0
push 0x4a
call edi
bt ax, 0xe
jae 0x10079233
call fcn.10034d90
push 0x4b
call edi
bt ax, 0xe
jae 0x10079243
call fcn.100706c0
push 0x77
call edi
bt ax, 0xe
jae 0x10079253
call fcn.10052ac0
push 9
call edi
test ax, ax
jns 0x10079270
call ebx
sub eax, dword [0x114e89dc]
cmp eax, 0x64
jbe 0x10079270
call ebx
mov dword [0x114e89dc], eax
push 0xd
call edi
test ax, ax
jns 0x100792d2
call ebx
cmp byte [0x102be6dd], 0
je 0x100792d2
sub eax, dword [0x102be738]
mov byte [0x102be73c], 0
cmp eax, 0x1f4
jb 0x100792d2
call ebx
mov dword [0x102be738], eax
mov eax, dword [0x1011ab7c]
cmp eax, 6
je 0x100792c1
cmp eax, 7
je 0x100792c1
push dword [0x1011ab8c]
push eax
call fcn.1001a250
call ebx
mov dword [0x114ecbd0], eax
mov byte [0x102be6dd], 0
mov dword [0xe8cb3c], 0
push 0x1b
call edi
test ax, ax
jns 0x1007954c
cmp byte [0x102bd71d], 1
jne 0x100792f9
mov byte [0x102bd71d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bbfdd], 1
jne 0x10079313
mov byte [0x102bbfdd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc8dd], 1
jne 0x1007932d
mov byte [0x102bc8dd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bef1d], 1
jne 0x10079347
mov byte [0x102bef1d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc03d], 1
jne 0x10079361
mov byte [0x102bc03d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc09d], 1
jne 0x1007937b
mov byte [0x102bc09d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc0fd], 1
jne 0x100793b3
mov byte [0x102bc0fd], 0
mov dword [0xe8cb3c], 0
mov dword [0x10139ab0], 0
mov dword [0x10139aa8], 0xffffffff
mov dword [0x10139aac], 0
cmp byte [0x102be6dd], 1
jne 0x100793cd
mov byte [0x102be6dd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc39d], 0
je 0x100793e7
mov byte [0x102bc39d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bcedd], 0
je 0x1007940b
mov byte [0x102bcedd], 0
mov dword [0xe8cb3c], 0
mov dword [0x102bb6b8], 0
cmp byte [0x102c00bd], 1
jne 0x10079425
mov byte [0x102c00bd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c0b3d], 1
jne 0x1007943f
mov byte [0x102c0b3d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc1bd], 1
jne 0x10079460
mov byte [0x102bc1bd], 0
mov dword [0xe8cb3c], 0
mov byte [0x114f5264], 0
cmp byte [0x102bc21d], 1
jne 0x10079481
mov byte [0x102bc21d], 0
mov dword [0xe8cb3c], 0
mov byte [0x114f044c], 0
cmp byte [0x102c101d], 1
jne 0x1007949b
mov byte [0x102c101d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c1dfd], 1
jne 0x100794b5
mov byte [0x102c1dfd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c155d], 1
jne 0x100794cf
mov byte [0x102c155d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bc15d], 1
jne 0x100794f2
cmp dword [0x114eca40], 0
jg 0x100794f2
mov byte [0x102bc15d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bf39d], 1
jne 0x1007950c
mov byte [0x102bf39d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bf3fd], 1
jne 0x10079526
mov byte [0x102bf3fd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c21bd], 1
jne 0x10079539
mov dword [0x102bb624], 5
cmp byte [0x102bf45d], 1
jne 0x1007954c
mov dword [0x114ecff4], 5
cmp dword [0x11472378], 1
je 0x10079624
push 0x11
mov eax, 0x791090
call eax
add esp, 4
cmp al, 1
je 0x10079624
cmp dword [0x114f5234], 0
je 0x10079594
call ebx
sub eax, dword [0x114f5238]
cmp eax, 0x4b0
jbe 0x10079594
mov dword [0x114f5234], 0
jmp 0x10079624
push 0x11
call edi
test ax, ax
jns 0x10079624
cmp dword [0x114f5234], 0
jle 0x10079613
call ebx
sub eax, dword [0x114f5238]
cmp eax, 0x64
jbe 0x10079613
mov eax, dword [0x114f5234]
mov ecx, eax
inc eax
mov dword [0x114f5234], eax
cmp ecx, 2
jl 0x1007961d
cmp byte [0x114f5230], 0
mov dword [0x114f5234], 0
jne 0x100795ea
mov byte [0x114f5230], 1
mov eax, 0x80
jmp 0x100795f6
mov byte [0x114f5230], 0
mov eax, 0x81
push eax
mov ecx, 0x101c4a28
call fcn.10043140
push eax
push 2
push 0x114f3b98
call fcn.100b4070
add esp, 0xc
jmp 0x10079624
mov dword [0x114f5234], 1
call ebx
mov dword [0x114f5238], eax
cmp dword [0x102e06b0], 2
mov edx, 0x790b10
jne 0x100796ab
mov ecx, dword [0x102e0700]
lea eax, [ecx - 1]
cmp eax, 2
ja 0x10079665
push 6
push 0xc0
push 0x1b6
push 0xdc
call edx
add esp, 0x10
cmp al, 1
je 0x10079687
mov ecx, dword [0x102e0700]
mov edx, 0x790b10
cmp ecx, 1
jb 0x1007966f
cmp ecx, 3
jbe 0x100796ab
push 0xa
push dword [0x1010bba8]
push 0x1d6
push 0
call edx
add esp, 0x10
cmp al, 1
jne 0x100796ab
push 1
call edi
test ax, ax
jns 0x100796ab
call ebx
sub eax, dword [0x102c3a00]
cmp eax, 0xc8
jbe 0x100796ab
call fcn.10027940
call ebx
mov dword [0x102c3a00], eax
push 0
mov ecx, 0x102bb6b0
call fcn.10079ec0
cmp dword [0x102e07b8], 0
je 0x100798a9
cmp dword [0x102bb6b4], 0
je 0x100798a9
mov eax, dword [0x1010bba8]
cdq
sub eax, edx
mov esi, eax
mov eax, 0x637c60
sar esi, 1
push 0
push 1
push 1
movd xmm0, esi
sub esp, 0x20
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x1c], 0x3f400000
mov dword [esp + 0x18], 0x3f666666
mov dword [esp + 0x14], 0
subss xmm0, dword [0x1010314c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x43960000
mov dword [esp + 8], 0x43c80000
mov dword [esp + 4], 0x42480000
addss xmm0, dword [0x10102f1c]
movss dword [esp], xmm0
push 0x790b
call eax
movd xmm0, esi
mov eax, 0x790b10
cvtdq2ps xmm0, xmm0
push 0xf
push 0x4b
push 0x104
cvtps2pd xmm0, xmm0
subsd xmm0, qword [0x10102a40]
cvttsd2si ebx, xmm0
movsd qword [esp + 0x54], xmm0
push ebx
call eax
add esp, 0x40
cmp al, 1
jne 0x100797f7
mov esi, dword [sym.imp.OPENGL32.dll_glColor3f]
sub esp, 0xc
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call esi
push 1
call edi
test ax, ax
jns 0x100797f7
sub esp, 0xc
mov dword [0x102bb6b4], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
call esi
xor eax, eax
mov dword [0xe8cb3c], 0
mov dword [esp + 0x11], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xebf308c1
mov dword [esp + 0x14], 0x62
lea edx, [eax + 8]
call fcn.100c6710
movsd xmm0, qword [esp + 0x18]
mov eax, 0x637c60
push 0
push 1
push 1
sub esp, 0x20
cvtpd2ps xmm0, xmm0
mov dword [esp + 0x1c], 0x3f4ccccd
mov dword [esp + 0x18], 0x3f266666
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41700000
mov dword [esp + 8], 0x42960000
mov dword [esp + 4], 0x43820000
movss dword [esp], xmm0
push 0x7b4b
call eax
add esp, 0x20
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [sym.imp.OPENGL32.dll_glColor4f]
push 0x184
mov eax, 0x402320
mov ecx, 0x8128adc
call eax
push eax
push 3
push 0x4b
push 0x109
push ebx
push 0xff00ffff
push 0x102bb6b0
call fcn.100798d0
add esp, 0x1c
cmp dword [0x102e0700], 0
jne 0x100798b9
mov eax, 0x80f8e0
call eax
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d22e0
mov esp, ebp
pop ebp
ret