Function at 0x1000ae60
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 0x1000b0d9
call fcn.1000c9a0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x1000b0d9
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 + 0x28]
push ecx
call edi
dec eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivr dword [0x10093408]
fimul dword [ebp + 0xc]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
mov esi, eax
push 0x75
mov eax, dword [edx + 0x28]
push eax
call edi
dec eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivr dword [0x10093408]
fimul dword [ebp + 0x10]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, 0x203
ja 0x1000b032
je 0x1000b015
cmp eax, 0x105
ja 0x1000afd4
je 0x1000af83
sub eax, 0x100
je 0x1000af32
dec eax
je 0x1000af83
sub eax, 3
jne case.default.0x1000b040
mov eax, dword [ebp]
cmp eax, 0x25
je 0x1000af66
cmp eax, 0x27
je 0x1000af66
cmp eax, 0x26
je 0x1000af66
cmp eax, 0x28
je 0x1000af66
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.0x1000b040
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.0x1000b040
mov eax, dword [ebp]
cmp eax, 0x25
je 0x1000afb7
cmp eax, 0x27
je 0x1000afb7
cmp eax, 0x26
je 0x1000afb7
cmp eax, 0x28
je 0x1000afb7
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.0x1000b040
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.0x1000b040
sub eax, 0x200
je 0x1000b005
dec eax
je 0x1000aff5
dec eax
jne case.default.0x1000b040
push 0
push 0
push edi
push esi
push 0x8004
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8002
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8001
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8006
call ebx
push 0
push 0
push edi
push esi
push 0x8006
jmp 0x1000b0c2
add eax, 0xfffffdfc
cmp eax, 6
ja case.default.0x1000b040
jmp dword [eax*4 + 0x1000b0e0]
push 0
push 0
push edi
push esi
push 0x8008
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8010
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8018
call ebx
push 0
push 0
push edi
push esi
push 0x8018
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8020
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8040
jmp 0x1000b0c2
push 0
push 0
push edi
push esi
push 0x8060
call ebx
push 0
push 0
push edi
push esi
push 0x8060
jmp 0x1000b0c2
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 0x1000aeae
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8