Function at 0x10018fe0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], ecx
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x1001925f
call fcn.100302a0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x1001925f
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_mouse_event]
push ebp
push edi
lea ebp, [edx + 8]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x76
mov ecx, dword [eax + 0x130]
push ecx
call edi
dec eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivr dword [0x100bc954]
fimul dword [ebp + 0xc]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
mov esi, eax
push 0x75
mov eax, dword [edx + 0x130]
push eax
call edi
dec eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivr dword [0x100bc954]
fimul dword [ebp + 0x10]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, 0x203
ja 0x100191b8
je 0x1001919b
cmp eax, 0x105
ja 0x1001915a
je 0x10019109
sub eax, 0x100
je 0x100190b8
dec eax
je 0x10019109
sub eax, 3
jne case.default.0x100191c6
mov eax, dword [ebp]
cmp eax, 0x25
je 0x100190ec
cmp eax, 0x27
je 0x100190ec
cmp eax, 0x26
je 0x100190ec
cmp eax, 0x28
je 0x100190ec
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebp]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.default.0x100191c6
push 0
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, byte [ebp]
push eax
push edx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.default.0x100191c6
mov eax, dword [ebp]
cmp eax, 0x25
je 0x1001913d
cmp eax, 0x27
je 0x1001913d
cmp eax, 0x26
je 0x1001913d
cmp eax, 0x28
je 0x1001913d
push 0
push 2
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebp]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.default.0x100191c6
push 0
push 3
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebp]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.default.0x100191c6
sub eax, 0x200
je 0x1001918b
dec eax
je 0x1001917b
dec eax
jne case.default.0x100191c6
push 0
push 0
push edi
push esi
push 0x8004
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8002
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8001
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8006
call ebx
push 0
push 0
push edi
push esi
push 0x8006
jmp 0x10019248
add eax, 0xfffffdfc
cmp eax, 6
ja case.default.0x100191c6
jmp dword [eax*4 + 0x10019264]
push 0
push 0
push edi
push esi
push 0x8008
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8010
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8018
call ebx
push 0
push 0
push edi
push esi
push 0x8018
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8020
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8040
jmp 0x10019248
push 0
push 0
push edi
push esi
push 0x8060
call ebx
push 0
push 0
push edi
push esi
push 0x8060
jmp 0x10019248
mov edx, dword [ebp]
push 0
shr edx, 0x10
movsx eax, dx
push eax
push edi
push esi
push 0x8800
call ebx
mov eax, dword [esp + 0x1c]
add ebp, 0x1c
dec eax
mov dword [esp + 0x1c], eax
jne 0x1001902e
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8