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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xc], 0x7d2370
mov dword [ebp - 0x130], 0x7d2470
mov al, byte [0x7d2370]
mov byte [0x7d2360], al
call fcn.0047be00
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
movsx edx, byte [ebp - 0x10c]
mov dword [ebp - 0x134], edx
cmp dword [0xd2df90], 0
jne 0x47bf8c
cmp dword [0x6b9870], 0
je 0x47bf8c
cmp dword [ebp - 0x12c], 0
je 0x47bf16
push 0x64
push 0x7d2580
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sub.IMM32.DLL_ImmGetDescriptionA
mov byte [0x7d258a], 0
jmp 0x47bf65
cmp dword [ebp - 0x134], 0
je 0x47bf43
mov eax, dword [0x5ead04]
mov dword [0x7d2580], eax
mov ecx, dword [0x5ead08]
mov dword [0x7d2584], ecx
mov edx, dword [0x5ead0c]
mov dword [0x7d2588], edx
jmp 0x47bf65
mov eax, dword [0x5ead10]
mov dword [0x7d2580], eax
mov ecx, dword [0x5ead14]
mov dword [0x7d2584], ecx
mov edx, dword [0x5ead18]
mov dword [0x7d2588], edx
push 0
push 0
push 0x7d2580
push 8
push 1
push 3
movzx eax, word [0x604b54]
push eax
movzx ecx, word [0x604b50]
push ecx
call fcn.00477f60
add esp, 0x20
cmp dword [ebp - 0x12c], 0
je 0x47c630
movsx edx, byte [0x7d2370]
test edx, edx
je 0x47c630
cmp dword [0x6b9870], 0
jne 0x47bfb6
jmp 0x47c630
mov eax, dword [0x6b9870]
cmp dword [eax + 0x138], 0
jne 0x47bfca
mov byte [ebp - 1], 0xd2
jmp 0x47bfce
mov byte [ebp - 1], 0xe0
push 0
push 0x7d2370
push 0
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x13c]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x138]
add ecx, 1
push ecx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x124]
push eax
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x120]
push edx
call fcn.00477da0
add esp, 0x1c
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
push ecx
push 0x7d2370
call fcn.00462350
add esp, 8
mov dword [ebp - 8], eax
push 1
push 1
movzx edx, byte [ebp - 1]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x124]
add eax, dword [ecx + 0x604948]
push eax
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x120]
add edx, dword [ebp - 8]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x124]
sub ecx, 1
push ecx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x120]
sub eax, 1
push eax
call fcn.005a2610
add esp, 0x1c
mov ecx, 1
test ecx, ecx
je 0x47c198
mov edx, dword [ebp - 0x130]
movsx eax, byte [edx]
cmp eax, 1
je 0x47c0bb
mov ecx, dword [ebp - 0x130]
movsx edx, byte [ecx]
cmp edx, 3
jne 0x47c0d7
cmp dword [ebp - 0x124], 0
jne 0x47c0d7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 1
mov ecx, dword [ebp - 0x130]
movsx edx, byte [ecx]
cmp edx, 2
je 0x47c0f2
mov eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x47c106
cmp dword [ebp - 0x124], 1
jl 0x47c106
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jmp 0x47c198
mov eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x47c118
jmp 0x47c198
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
push eax
call fcn.004622d0
add esp, 4
cmp eax, 2
jne 0x47c160
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x130]
add edx, 2
mov dword [ebp - 0x130], edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x604944]
mov dword [ebp - 0x18], edx
jmp 0x47c193
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x60493c]
mov dword [ebp - 0x18], ecx
jmp 0x47c092
cmp dword [ebp - 0x124], 1
jl 0x47c20f
push 1
push 0xfc
movzx edx, byte [ebp - 1]
add edx, 1
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x124]
add eax, dword [ecx + 0x604948]
push eax
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x120]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x124]
sub ecx, 1
push ecx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x120]
mov ecx, dword [ebp - 0x128]
lea edx, [eax + ecx - 1]
push edx
call fcn.005a2610
add esp, 0x1c
cmp dword [0x7d257c], 0
je 0x47c630
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x10], 0
jmp 0x47c24c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [0x7d257c]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x47c630
mov eax, dword [0x7d257c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x10]
mov edx, dword [0x7d257c]
cmp ecx, dword [edx + 8]
jae 0x47c62b
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
push 0
push 0xa
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
call fcn.005e3dd4
add esp, 0xc
push eax
push 0
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
push ecx
push 4
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x124]
add edx, dword [eax + 0x604948]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x120]
add ecx, dword [ebp - 0x128]
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov edx, dword [ebp - 0x140]
imul edx, dword [eax + 0x604948]
lea eax, [ecx + edx + 5]
push eax
call fcn.00477da0
add esp, 0x1c
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
push 0
mov edx, dword [0x7d257c]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x10]
mov ecx, dword [0x7d257c]
mov edx, dword [0x7d257c]
add edx, dword [ecx + eax*4 + 0x18]
push edx
push 0
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
push ecx
push 4
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x124]
add edx, dword [eax + 0x604948]
push edx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x120]
add ecx, dword [ebp - 0x128]
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov edx, dword [ebp - 0x140]
imul edx, dword [eax + 0x604948]
add ecx, edx
push ecx
call fcn.00477da0
add esp, 0x1c
mov eax, dword [0x7d257c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x10]
mov edx, dword [0x7d257c]
mov eax, dword [0x7d257c]
add eax, dword [edx + ecx*4 + 0x18]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x148]
mov al, byte [edx]
mov byte [ebp - 0x14d], al
add dword [ebp - 0x148], 1
cmp byte [ebp - 0x14d], 0
jne 0x47c3d2
mov ecx, dword [ebp - 0x148]
sub ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 2
jge 0x47c421
mov dword [ebp - 0x138], 2
mov eax, dword [ebp - 0x138]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x140]
mov dword [ebp - 0x140], eax
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [0x7d257c]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x10]
mov ecx, dword [0x7d257c]
mov edx, dword [0x7d257c]
add edx, dword [ecx + eax*4 + 0x18]
push edx
call fcn.00462350
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [0x7d257c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x10]
mov edx, dword [0x7d257c]
cmp dword [edx + 0xc], ecx
jne 0x47c559
push 1
push 0
push 0xd9
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x124]
add eax, dword [ecx + 0x604948]
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x13c]
imul edx, edx, 0x18
add eax, dword [edx + 0x604948]
push eax
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x120]
add ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x13c]
add edx, 1
mov eax, dword [0x6b9870]
mov eax, dword [eax + 0x13c]
imul eax, eax, 0x18
imul edx, dword [eax + 0x604948]
add ecx, dword [ebp - 8]
add edx, ecx
push edx
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x13c]
imul edx, edx, 0x18
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x124]
add ecx, dword [edx + 0x604948]
push ecx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x120]
add eax, dword [ebp - 0x128]
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x13c]
imul edx, edx, 0x18
mov ecx, dword [ebp - 0x13c]
imul ecx, dword [edx + 0x604948]
add eax, ecx
push eax
call fcn.005a2610
add esp, 0x1c
jmp 0x47c62b
push 1
push 0xfc
push 0xd8
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x13c]
imul eax, eax, 0x18
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x124]
add edx, dword [eax + 0x604948]
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
add edx, dword [ecx + 0x604948]
push edx
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x120]
add eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov edx, dword [0x6b9870]
mov edx, dword [edx + 0x13c]
imul edx, edx, 0x18
imul ecx, dword [edx + 0x604948]
add eax, dword [ebp - 8]
add ecx, eax
push ecx
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov edx, dword [0x6b9870]
mov eax, dword [edx + 0x124]
add eax, dword [ecx + 0x604948]
push eax
mov ecx, dword [0x6b9870]
mov edx, dword [ecx + 0x120]
add edx, dword [ebp - 0x128]
mov eax, dword [0x6b9870]
mov ecx, dword [eax + 0x13c]
imul ecx, ecx, 0x18
mov eax, dword [ebp - 0x13c]
imul eax, dword [ecx + 0x604948]
add edx, eax
push edx
call fcn.005a2610
add esp, 0x1c
jmp 0x47c243
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret