Function at 0x4ac6dc
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
xor ebx, ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070f8
xor eax, eax
push ebp
push 0x4acd57
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x44], 0
mov eax, dword [ebp - 4]
call fcn.00407bf4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4ac776
mov eax, dword [ebp - 0x48]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov edx, 0x4bd88c
mov eax, dword [ebp - 0x30]
call fcn.0041dc4c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4ac7a2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004073f4
jmp 0x4acd0b
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x4acd0b
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x34], 0
jne 0x4ac7d6
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
jmp 0x4ac7e6
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
sar eax, 1
jns 0x4ac7e3
adc eax, 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4ac7fe
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00407d78
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00407bf4
mov edx, dword [ebp - 0x28]
add edx, edx
add eax, edx
push eax
call sub.kernel32.dll_lstrcpynW_1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x28], eax
cmp dword [ebp - 0x34], 0
je 0x4accf3
lea eax, [ebp - 0xa4]
xor ecx, ecx
mov edx, 0x40
call fcn.00404dec
mov eax, dword [ebp - 0x34]
add eax, 2
mov al, byte [eax]
mov byte [ebp - 0x39], al
mov eax, dword [ebp - 0x34]
add eax, 4
mov al, byte [eax]
mov byte [ebp - 0x3a], al
test byte [ebp - 0x3a], 2
seta byte [ebp - 0x41]
test byte [ebp - 0x3a], 4
seta byte [ebp - 0x42]
cmp byte [ebp - 0x3a], 0x2d
jne 0x4ac97d
cmp byte [ebp - 0x43], 0
je 0x4ac8f7
mov al, byte [ebp - 0x39]
sub al, 0x4c
je 0x4ac899
dec al
je 0x4ac8af
sub al, 5
je 0x4ac8c5
sub al, 0xad
je 0x4ac8db
jmp 0x4ac8e9
push 0x4acd64
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acc94
push 0x4acd8c
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acc94
push 0x4acdb8
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acc94
mov word [ebp - 0xa4], 0xd
jmp 0x4acc94
mov word [ebp - 0xa4], 0
jmp 0x4acc94
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4ac922
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x39]
sub al, 0x4c
je 0x4ac935
sub al, 0xb3
je 0x4ac943
jmp 0x4ac96f
mov word [ebp - 0xa4], 0x20
jmp 0x4acc94
cmp dword [ebp - 0x24], 0
jle 0x4acc94
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
cmp word [eax + edx*2 - 2], 0xd
je 0x4acc94
mov word [ebp - 0xa4], 0xd
jmp 0x4acc94
mov word [ebp - 0xa4], 0
jmp 0x4acc94
cmp byte [ebp - 0x43], 0
je 0x4acbda
mov word [ebp - 0xa4], 0x5b
cmp byte [ebp - 0x41], 0
je 0x4ac9a7
push 0x4acde0
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
cmp byte [ebp - 0x42], 0
je 0x4ac9be
push 0x4acdec
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
xor eax, eax
mov al, byte [ebp - 0x39]
cmp eax, 0x13
jg 0x4ac9d6
je 0x4ac9f6
sub eax, 9
je 0x4aca0c
sub eax, 4
je 0x4aca22
jmp 0x4aca4e
sub eax, 0x20
je 0x4aca38
sub eax, 0xc
jne 0x4aca4e
push 0x4acdf8
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
push 0x4ace14
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
push 0x4ace24
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
push 0x4ace30
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
push 0x4ace40
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
mov eax, dword [ebp - 0x40]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 0x39]
push eax
call sub.user32.dll_MapVirtualKeyExW
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4acb63
push 0x20
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrlenW_1
lea eax, [ebp + eax*2 - 0xa4]
push eax
xor eax, eax
mov al, byte [ebp - 0x3a]
shl eax, 0x18
mov edx, dword [ebp - 0x38]
shl edx, 0x10
or eax, edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x4acaf4
test byte [ebp - 0x3a], 8
jbe 0x4acade
test byte [ebp - 0x3a], 0x10
jbe 0x4acabc
lea eax, [ebp - 0x5c]
mov edx, 0x4ace5c
call fcn.0040743c
jmp 0x4acac9
lea eax, [ebp - 0x5c]
mov edx, 0x4ace70
call fcn.0040743c
mov eax, dword [ebp - 0x5c]
call fcn.00407bf4
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
push 0x4ace78
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
lea eax, [ebp - 0xac]
xor edx, edx
mov dl, byte [ebp - 0x39]
call fcn.00407c0c
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.0041c374
cmp dword [ebp - 0xa8], 0
je 0x4acb58
lea eax, [ebp - 0xb0]
xor edx, edx
mov dl, byte [ebp - 0x39]
call fcn.00407c0c
lea eax, [ebp - 0xb0]
mov edx, 0x4ace88
call fcn.00407df8
mov eax, dword [ebp - 0xb0]
call fcn.00407bf4
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
mov word [ebp - 0xa4], 0x20
jmp 0x4acbd0
lea eax, [ebp - 0xb8]
xor edx, edx
mov dl, byte [ebp - 0x39]
call fcn.00407c0c
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0041c374
cmp dword [ebp - 0xb4], 0
je 0x4acbc7
lea eax, [ebp - 0xbc]
xor edx, edx
mov dl, byte [ebp - 0x39]
call fcn.00407c0c
lea eax, [ebp - 0xbc]
mov edx, 0x4ace88
call fcn.00407df8
mov eax, dword [ebp - 0xbc]
call fcn.00407bf4
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x4acbd0
mov word [ebp - 0xa4], 0x20
mov eax, dword [ebp - 8]
inc dword [eax]
jmp 0x4acc94
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4acbff
mov eax, dword [ebp - 0x64]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x39]
sub al, 8
je 0x4acc1a
dec al
je 0x4acc63
sub al, 4
je 0x4acc74
sub al, 0x13
je 0x4acc63
jmp 0x4acc8b
cmp byte [ebp - 0x44], 0
jne 0x4acc94
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4acc2c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4acc94
dec dword [ebp - 0x28]
dec dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jle 0x4acc94
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edx*2 - 2]
sub eax, 9
je 0x4acc94
sub eax, 4
je 0x4acc94
sub eax, 0x13
je 0x4acc94
mov eax, dword [ebp - 8]
dec dword [eax]
jmp 0x4acc94
xor eax, eax
mov al, byte [ebp - 0x39]
mov word [ebp - 0xa4], ax
inc dword [ebp - 0x20]
jmp 0x4acc94
push 0x4ace8c
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrcatW
add dword [ebp - 0x20], 2
jmp 0x4acc94
mov word [ebp - 0xa4], 0
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00407d78
mov eax, dword [ebp - 0x2c]
inc eax
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00407bf4
mov edx, dword [ebp - 0x28]
add edx, edx
add eax, edx
push eax
call sub.kernel32.dll_lstrcpynW_1
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
add eax, 8
mov dword [ebp - 0x30], eax
mov edx, 0x4bd88c
mov eax, dword [ebp - 0x30]
call fcn.0041dc4c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
add eax, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jle 0x4ac7bc
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0041c374
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc]
call fcn.004073f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acd5e
lea eax, [ebp - 0xc0]
mov edx, 7
call fcn.00407074
lea eax, [ebp - 0x5c]
call fcn.00407014
lea eax, [ebp - 4]
call fcn.00407014
ret