Function at 0x1004744b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1019067e], 0
push ebx
push esi
push edi
jne case.0x1004759e.403
mov eax, dword [0x100c0304]
cmp dword [eax + 0x14e0], 0
jne case.0x1004759e.403
cmp byte [0x1018c62c], 0
jne case.0x1004759e.403
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
cmp dword [0x1019078c], edi
jle 0x100473a4
xor esi, esi
mov eax, dword [0x1019428c]
mov eax, dword [esi + eax + 1]
test eax, eax
je 0x10047398
push eax
call ebx
shr eax, 0xf
test al, 1
mov eax, dword [0x1019428c]
je 0x10047394
cmp byte [esi + eax], 0
jne 0x10047398
mov byte [esi + eax], 1
mov eax, dword [0x1019428c]
add eax, 5
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1004736c
mov eax, dword [eax]
push eax
push 0x10091a18
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.100228e0
lea eax, [ebp - 0x84]
push eax
call fcn.10009d10
add esp, 0x14
jmp 0x10047398
mov byte [esi + eax], 0
inc edi
add esi, 0x1d
cmp edi, dword [0x1019078c]
jl 0x10047334
push 0x52
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
shr eax, 0xf
test al, 1
je case.0x10047408.26
cmp dword [0x1019064c], 1
jne case.0x10047408.26
call esi
cmp eax, dword [0x1019090c]
jbe case.0x10047408.26
mov eax, dword [0x100c02fc]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1e]
mov eax, dword [eax]
mov edi, dword [eax + 0x44]
call fcn.1000a0d0
mov dword [ebp - 0x90], eax
add eax, 0xffffffea
cmp eax, 0xc
ja case.0x10047408.26
movzx eax, byte [eax + 0x10047678]
jmp dword [eax*4 + 0x1004765c]
mov eax, str.colt45_reload
mov ecx, str.COLT45
jmp 0x10047455
mov eax, str.Silence_reload
mov ecx, str.SILENCED
jmp 0x10047455
mov eax, str.python_reload
mov ecx, str.PYTHON
jmp 0x10047455
mov eax, str.buddy_reload
mov ecx, str.BUDDY
jmp 0x10047455
mov eax, str.tec_reload
mov ecx, 0x10097434
jmp 0x10047455
mov eax, str.rifle_load
mov ecx, str.RIFLE
movsd xmm0, qword [0x10093b18]
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
sub esp, 8
movsd qword [esp], xmm0
push ecx
push eax
push edi
push 0x100970d4
call fcn.10031820
add esp, 0x2c
call esi
add eax, 0x44c
mov dword [0x1019090c], eax
call fcn.10009100
test eax, eax
je case.0x10047408.26
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push 1
push 0
push dword [ebp - 0x90]
mov edx, 0x5e6080
call edx
cmp dword [0x10190648], 0
je 0x1004762e
push 0x41
call ebx
test ax, ax
js 0x1004762e
push 0x44
call ebx
test ax, ax
js 0x1004762e
push 0x57
call ebx
shr eax, 0xf
test al, 1
je 0x10047610
cmp dword [0x10190794], 0
mov byte [0x1019067c], 1
jne case.0x1004759e.403
call esi
cmp dword [0x10190908], eax
jbe case.0x1004759e.403
mov dword [0x10190908], 0
mov byte [0x1019067c], 1
mov eax, dword [0xb74494]
mov edi, dword [0xb6f980]
mov byte [ebp - 0x85], 1
test eax, eax
je 0x1004753b
cmp dword [eax], 0
je 0x1004753b
cmp dword [eax + 8], 0
jg 0x10047542
mov byte [ebp - 0x85], 0
push eax
push edi
call fcn.10009660
mov esi, dword [0xb7cd98]
xor ebx, ebx
movzx ecx, byte [ebp - 0x85]
test eax, eax
push esi
push edi
cmove ebx, ecx
call fcn.1000a020
add esp, 0x10
neg eax
sbb al, al
xor ecx, ecx
and al, bl
cmp dword [edi + 0x460], esi
movzx eax, al
cmove ecx, eax
test cl, cl
je case.0x1004759e.403
movzx eax, word [edi + 0x22]
add eax, 0xfffffe6e
cmp eax, 0xae
ja case.0x1004759e.403
movzx eax, byte [eax + 0x10047690]
jmp dword [eax*4 + 0x10047688]
mov eax, dword [0x100c02fc]
xor ecx, ecx
mov dword [0x10190790], edi
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0xc]
add eax, 0x1134
cmp dword [eax + 0x1f40], 1
jne 0x100475da
mov edx, dword [eax]
test edx, edx
je 0x100475da
mov esi, dword [edx + 0x4c]
test esi, esi
je 0x100475da
cmp esi, edi
je 0x100475f7
inc ecx
add eax, 4
cmp ecx, 0x7d0
jle 0x100475c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x44]
mov dword [0x10190794], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
cmp byte [0x1019067c], 0
je case.0x1004759e.403
mov byte [0x1019067c], 0
call esi
add eax, 0xfa
mov dword [0x10190908], eax
jmp 0x10047635
mov byte [0x1019067c], 0
mov dword [0x10190794], 0
mov dword [0x10190790], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064a7b
mov esp, ebp
pop ebp
ret