Function at 0x10077170
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 [0x1010a040]
xor eax, esp
mov dword [esp + 0xf8], eax
cmp dword [0xe609e8], 5
push ebx
push esi
push edi
jne 0x100771d0
cmp dword [0x10899918], 1
je 0x100771d0
cmp dword [0x102df7c8], 1
jne 0x100771c6
cmp dword [0x1081ee68], 1
je 0x100771c6
push 0
push 0
push 0
push 0x1004cc80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10899918], 1
mov eax, dword [0x8128ac8]
mov dword [0x10824f54], eax
mov ecx, dword [0x7bc4f04]
mov dword [0x10824f58], ecx
mov eax, dword [0x879340c]
mov dword [0x10824f68], eax
mov eax, dword [0x8793410]
mov dword [0x10824f70], eax
mov eax, dword [0xe61e18]
mov dword [0x10824f64], eax
cmp byte [ecx + 0x31f], 1
mov esi, dword [0x8128ac4]
jne 0x1007723d
mov eax, dword [ecx + 0x2fc]
test eax, eax
je 0x1007723d
push eax
mov eax, 0x9cea6c
call eax
mov eax, dword [0x10824f58]
add esp, 4
mov dword [eax + 0x2fc], 0
mov ecx, dword [0x10824f58]
mov eax, 0x1f5b
cmp word [ecx + 0x22c], ax
jl 0x10077256
mov al, byte [esi + 0x15ae]
mov byte [0x812a072], al
call fcn.100518a0
call fcn.10010d30
mov ecx, 0x10887970
call fcn.10023e20
call fcn.100c54d0
mov ecx, 0x1011b788
call fcn.100214c0
mov ecx, 0x102ba770
call fcn.10078900
mov ecx, 0x102ba770
call fcn.1007d970
mov ecx, 0x102ba770
call fcn.10078d60
call fcn.100235e0
mov ecx, 0x108994d0
call fcn.10033420
call fcn.100ae600
mov ecx, 0x108996d0
call fcn.10045120
call fcn.1001f5d0
mov ecx, 0x10885598
call fcn.1001f930
call fcn.1004e0c0
call fcn.1004dca0
mov ecx, 0x108a1d38
call fcn.100c71e0
call fcn.100cc610
mov ecx, 0x1089a9a0
call fcn.1006f490
call fcn.10070eb0
mov ecx, 0x10138b64
call fcn.1002e0d0
call fcn.10031370
call fcn.1002c460
mov ecx, 0x108954d8
call fcn.1002ca20
call fcn.1000a4a0
mov ecx, 0x10874fa8
call fcn.1000a820
call fcn.1000f680
call fcn.1000fd10
call fcn.10011f10
mov ecx, 0x1010c058
call fcn.10012330
mov ecx, 0x102ba770
call fcn.1007dc70
mov ecx, 0x102ba770
call fcn.1007e0b0
mov ecx, 0x10899538
call fcn.100347e0
mov ecx, 0x10899538
call fcn.10037960
mov ecx, 0x1088558c
call fcn.1001eaf0
call fcn.10061d50
mov ecx, 0x102df4bc
call fcn.100b9bc0
mov ecx, 0x108a08a8
call fcn.100b72a0
call fcn.100b90f0
call fcn.10025f50
mov ecx, 0x10895458
call fcn.10026bc0
mov ecx, 0x10899ab8
call fcn.100541a0
call fcn.1004c9b0
mov ecx, 0x1025b880
call fcn.1004d170
mov esi, dword [0x1025b884]
mov ecx, 0x635fd0
mov edi, dword [sym.imp.OPENGL32.dll_glColor4f]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x10077517
push 1
call ecx
movd xmm0, dword [0x879340c]
add esp, 4
cvtdq2ps xmm0, xmm0
push 0
push 0
push 0
addss xmm0, dword [0x101020ac]
push esi
call fcn.100f14d0
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 [0x10102134]
push 0
push eax
movzx eax, byte [esi + 0x44]
cvtdq2ps xmm0, xmm0
movd xmm3, eax
movzx eax, byte [esi + 0x43]
addss xmm0, dword [0x10101ec8]
cvtdq2ps xmm3, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
call fcn.1007d640
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 [0x1025b88c]
add ecx, 0x64
cmp ecx, eax
jae 0x10077519
mov dword [0x1025b884], 0
jmp 0x10077519
mov esi, ecx
mov eax, dword [0x101bd71c]
test eax, eax
je 0x100775b8
movd xmm0, dword [0x879340c]
cvtdq2ps xmm0, xmm0
push 0
push 0
push 1
push eax
subss xmm0, dword [0x101020ac]
call fcn.100f14d0
xor ecx, ecx
or ecx, 0x28
push ecx
push eax
mov ecx, 0x102dea14
call fcn.10092460
mov eax, 0x7dd0f0
call eax
test eax, eax
je 0x100775a4
call ebx
sub eax, dword [0x101bd794]
cmp eax, 0x32
jbe 0x100775b8
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 0x100775b8
mov dword [0x101bd71c], 0
mov dword [0x101bd798], 0xffffffff
mov ecx, 0x10119b78
call fcn.10019cf0
call fcn.100190e0
call fcn.10066f20
mov ecx, 0x102ba6e0
call fcn.100686b0
mov ecx, 0x102ba6e0
call fcn.1006d700
call fcn.100633f0
mov ecx, 0x10899c28
call fcn.10063760
call fcn.10065db0
call fcn.10066420
mov ecx, 0x10899ae8
call fcn.100559d0
mov ecx, 0x10899ae8
call fcn.1005caf0
mov ecx, 0x10899ae8
call fcn.1005d160
cmp dword [0x102df930], 1
jne 0x10077672
call ebx
mov ecx, dword [0x10549b58]
add ecx, 0x3e8
cmp eax, ecx
jb 0x10077672
call fcn.10013710
test al, al
je 0x1007766b
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.100c4ca0
call ebx
mov dword [0x10549b58], eax
cmp dword [0x102df8c4], 1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x100777b8
cmp dword [0xe61728], 0xffffffff
je 0x100777b8
push 0x12
call edi
test ax, ax
jns 0x100777b8
mov eax, dword [0xe61728]
cmp eax, 0x3e7
ja 0x100777b8
lea eax, [eax + eax*4]
cmp byte [eax*4 + 0x106d6620], 1
jne 0x100777b8
push 1
call esi
mov eax, dword [0xe61728]
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x106d6621]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.10051080
mov esi, eax
lea edi, [esp + 0x20]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
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 + 0x106d6630]
mov dword [esp + 0x83], eax
mov eax, dword [0xe61728]
lea eax, [eax + eax*4]
movzx eax, byte [eax*4 + 0x106d6627]
and eax, 0xf
push eax
movsx eax, byte [esp + 0x7e]
and eax, reloc.WS2_32.dll_ntohs
jns 0x1007772f
dec eax
or eax, 0xfffffff0
inc eax
push eax
movsx eax, word [esp + 0x28]
push eax
push str.___d__d__d
push 1
push 0x108a0690
call fcn.100b2660
mov ecx, dword [0x879340c]
lea eax, [esp + 0x38]
add esp, 0x18
sub ecx, 0x3c
push 0
push 0
push 0
push eax
xor eax, eax
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 0x100777f7
push 0x4d
mov eax, 0x861110
call eax
mov ecx, eax
call esi
test al, al
jne 0x100777f7
cmp byte [0x10549c7d], al
jbe 0x100777f7
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 0x10077c94
push 0x2c
call edi
test ax, ax
jns 0x1007781e
push 1
mov ecx, 0x102ba770
call fcn.10078530
push 0x23
call edi
bt ax, 0xe
jae 0x10077883
call ebx
sub eax, dword [0x102bb458]
cmp eax, 0x12c
jbe 0x10077883
push 0x21
mov eax, 0x861110
call eax
mov ecx, eax
mov eax, esi
call eax
test al, al
jne 0x10077883
cmp byte [0x102bb45d], al
je 0x1007786d
call ebx
mov dword [0x102bb458], eax
mov byte [0x102bb45d], 0
mov dword [0xe8cb3c], 0
jmp 0x10077883
call ebx
mov ecx, 0x102ba770
mov dword [0x102bb458], eax
call fcn.1007d2d0
call fcn.100228e0
push 0x48
call edi
bt ax, 0xe
jae 0x10077893
call fcn.100252f0
push 0x4a
call edi
bt ax, 0xe
jae 0x100778a3
call fcn.10034450
push 0x4b
call edi
bt ax, 0xe
jae 0x100778b3
call fcn.1006f2f0
push 0x77
call edi
bt ax, 0xe
jae 0x100778c3
call fcn.10052180
push 9
call edi
test ax, ax
jns 0x100778e0
call ebx
sub eax, dword [0x10895454]
cmp eax, 0x64
jbe 0x100778e0
call ebx
mov dword [0x10895454], eax
push 0xd
call edi
test ax, ax
jns 0x10077942
call ebx
cmp byte [0x102bd79d], 0
je 0x10077942
sub eax, dword [0x102bd7f8]
mov byte [0x102bd7fc], 0
cmp eax, 0x1f4
jb 0x10077942
call ebx
mov dword [0x102bd7f8], eax
mov eax, dword [0x10119c3c]
cmp eax, 6
je 0x10077931
cmp eax, 7
je 0x10077931
push dword [0x10119c4c]
push eax
call fcn.10019c30
call ebx
mov dword [0x108996c8], eax
mov byte [0x102bd79d], 0
mov dword [0xe8cb3c], 0
push 0x1b
call edi
test ax, ax
jns 0x10077bbc
cmp byte [0x102bc7dd], 1
jne 0x10077969
mov byte [0x102bc7dd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb09d], 1
jne 0x10077983
mov byte [0x102bb09d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb99d], 1
jne 0x1007799d
mov byte [0x102bb99d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bdfdd], 1
jne 0x100779b7
mov byte [0x102bdfdd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb0fd], 1
jne 0x100779d1
mov byte [0x102bb0fd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb15d], 1
jne 0x100779eb
mov byte [0x102bb15d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb1bd], 1
jne 0x10077a23
mov byte [0x102bb1bd], 0
mov dword [0xe8cb3c], 0
mov dword [0x10138b70], 0
mov dword [0x10138b68], 0xffffffff
mov dword [0x10138b6c], 0
cmp byte [0x102bd79d], 1
jne 0x10077a3d
mov byte [0x102bd79d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb45d], 0
je 0x10077a57
mov byte [0x102bb45d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bbf9d], 0
je 0x10077a7b
mov byte [0x102bbf9d], 0
mov dword [0xe8cb3c], 0
mov dword [0x102ba778], 0
cmp byte [0x102bf17d], 1
jne 0x10077a95
mov byte [0x102bf17d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bfbfd], 1
jne 0x10077aaf
mov byte [0x102bfbfd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb27d], 1
jne 0x10077ad0
mov byte [0x102bb27d], 0
mov dword [0xe8cb3c], 0
mov byte [0x108a1d5c], 0
cmp byte [0x102bb2dd], 1
jne 0x10077af1
mov byte [0x102bb2dd], 0
mov dword [0xe8cb3c], 0
mov byte [0x1089cf44], 0
cmp byte [0x102c00dd], 1
jne 0x10077b0b
mov byte [0x102c00dd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c0ebd], 1
jne 0x10077b25
mov byte [0x102c0ebd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c061d], 1
jne 0x10077b3f
mov byte [0x102c061d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102bb21d], 1
jne 0x10077b62
cmp dword [0x10899538], 0
jg 0x10077b62
mov byte [0x102bb21d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102be45d], 1
jne 0x10077b7c
mov byte [0x102be45d], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102be4bd], 1
jne 0x10077b96
mov byte [0x102be4bd], 0
mov dword [0xe8cb3c], 0
cmp byte [0x102c127d], 1
jne 0x10077ba9
mov dword [0x102ba6e4], 5
cmp byte [0x102be51d], 1
jne 0x10077bbc
mov dword [0x10899aec], 5
cmp dword [0x1081ee74], 1
je 0x10077c94
push 0x11
mov eax, 0x791090
call eax
add esp, 4
cmp al, 1
je 0x10077c94
cmp dword [0x108a1d2c], 0
je 0x10077c04
call ebx
sub eax, dword [0x108a1d30]
cmp eax, 0x4b0
jbe 0x10077c04
mov dword [0x108a1d2c], 0
jmp 0x10077c94
push 0x11
call edi
test ax, ax
jns 0x10077c94
cmp dword [0x108a1d2c], 0
jle 0x10077c83
call ebx
sub eax, dword [0x108a1d30]
cmp eax, 0x64
jbe 0x10077c83
mov eax, dword [0x108a1d2c]
mov ecx, eax
inc eax
mov dword [0x108a1d2c], eax
cmp ecx, 2
jl 0x10077c8d
cmp byte [0x108a1d28], 0
mov dword [0x108a1d2c], 0
jne 0x10077c5a
mov byte [0x108a1d28], 1
mov eax, 0x80
jmp 0x10077c66
mov byte [0x108a1d28], 0
mov eax, 0x81
push eax
mov ecx, 0x101c3ae8
call fcn.100427e0
push eax
push 2
push 0x108a0690
call fcn.100b2660
add esp, 0xc
jmp 0x10077c94
mov dword [0x108a1d2c], 1
call ebx
mov dword [0x108a1d30], eax
cmp dword [0x102df770], 2
mov edx, 0x790b10
jne 0x10077d1b
mov ecx, dword [0x102df7c0]
lea eax, [ecx - 1]
cmp eax, 2
ja 0x10077cd5
push 6
push 0xc0
push 0x1b6
push 0xdc
call edx
add esp, 0x10
cmp al, 1
je 0x10077cf7
mov ecx, dword [0x102df7c0]
mov edx, 0x790b10
cmp ecx, 1
jb 0x10077cdf
cmp ecx, 3
jbe 0x10077d1b
push 0xa
push dword [0x1010ac74]
push 0x1d6
push 0
call edx
add esp, 0x10
cmp al, 1
jne 0x10077d1b
push 1
call edi
test ax, ax
jns 0x10077d1b
call ebx
sub eax, dword [0x102c2ac0]
cmp eax, 0xc8
jbe 0x10077d1b
call fcn.10026a80
call ebx
mov dword [0x102c2ac0], eax
push 0
mov ecx, 0x102ba770
call fcn.10078530
cmp dword [0x102df878], 0
je 0x10077f19
cmp dword [0x102ba774], 0
je 0x10077f19
mov eax, dword [0x1010ac74]
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 [0x101020ec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x43960000
mov dword [esp + 8], 0x43c80000
mov dword [esp + 4], 0x42480000
addss xmm0, dword [0x10101ebc]
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 [0x10101a00]
cvttsd2si ebx, xmm0
movsd qword [esp + 0x54], xmm0
push ebx
call eax
add esp, 0x40
cmp al, 1
jne 0x10077e67
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 0x10077e67
sub esp, 0xc
mov dword [0x102ba774], 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.100c4ca0
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 0x102ba770
call fcn.10077f40
add esp, 0x1c
cmp dword [0x102df7c0], 0
jne 0x10077f29
mov eax, 0x80f8e0
call eax
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d07f0
mov esp, ebp
pop ebp
ret