Function at 0x43e480
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x118
mov al, byte [0x6e96c8]
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], 0x6e96c8
mov dword [esp + 0x14], 0x6e97c8
mov byte [0x6e98d8], al
call fcn.0043e440
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp edi, esi
je 0x43e75f
mov al, byte [0x6e96c8]
test al, al
je 0x43e75f
mov eax, dword [0x5d2188]
cmp eax, esi
je 0x43e75f
mov ebx, dword [eax + 0x138]
mov edx, dword [eax + 0x13c]
mov cl, byte [eax + 0x138]
push esi
neg ebx
sbb bl, bl
push 0x6e96c8
and bl, 0xe
push esi
add bl, 0xd2
push edx
mov edx, dword [eax + 0x124]
mov eax, dword [eax + 0x120]
inc cl
mov byte [esp + 0x2c], bl
push ecx
push edx
push eax
call fcn.0043c030
mov ecx, dword [0x5d2188]
mov edx, dword [ecx + 0x13c]
push edx
push 0x6e96c8
call fcn.00431ec0
mov ecx, dword [0x5d2188]
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x40]
push 1
mov edx, dword [ecx + 0x124]
mov eax, dword [ecx + 0x120]
mov ecx, dword [ecx + 0x13c]
push 1
push edi
lea ecx, [ecx + ecx*2]
mov ecx, dword [ecx*8 + 0x51cc78]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x4c]
add ecx, eax
dec edx
push ecx
dec eax
push edx
push eax
call fcn.004ec750
mov ecx, dword [0x5d2188]
mov edi, dword [esp + 0x64]
add esp, 0x40
mov edx, dword [esp + 0x14]
mov al, byte [edx]
cmp al, 1
je 0x43e596
cmp al, 3
jne 0x43e5a8
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x43e5a8
mov ebp, esi
mov dword [esp + 0x10], 1
cmp al, 2
je 0x43e5b0
test al, al
jne 0x43e5bb
cmp dword [esp + 0x10], 1
jge 0x43e618
test al, al
je 0x43e614
mov al, byte [edi]
push eax
call fcn.00431e70
add esp, 4
cmp eax, 2
jne 0x43e5ef
mov ecx, dword [esp + 0x14]
add edi, eax
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [0x5d2188]
mov eax, dword [ecx + 0x13c]
lea edx, [eax + eax*2]
add esi, dword [edx*8 + 0x51cc74]
jmp 0x43e588
mov eax, dword [esp + 0x14]
mov ecx, dword [0x5d2188]
inc edi
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x13c]
lea eax, [eax + eax*2]
add esi, dword [eax*8 + 0x51cc6c]
jmp 0x43e588
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x10], 1
jl 0x43e661
mov eax, dword [ecx + 0x124]
mov edx, dword [ecx + 0x120]
mov ecx, dword [ecx + 0x13c]
push 1
inc bl
push 0xfc
lea ecx, [ecx + ecx*2]
push ebx
mov ecx, dword [ecx*8 + 0x51cc78]
add ecx, eax
dec eax
push ecx
lea ecx, [edx + esi]
push ecx
lea edx, [edx + ebp - 1]
push eax
push edx
call fcn.004ec750
mov ecx, dword [0x5d2188]
add esp, 0x1c
mov edx, dword [0x6e98d4]
test edx, edx
je 0x43e75f
mov eax, dword [edx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jbe 0x43e75f
mov ebx, 0x18
mov eax, dword [edx + 0xc]
cmp eax, esi
je 0x43e74c
mov edi, dword [ebx + edx]
sub esi, eax
mov eax, dword [ecx + 0x13c]
add edi, edx
push 0
push edi
push 0
push eax
lea eax, [eax + eax*2]
mov edi, dword [ecx + 0x124]
push 4
mov edx, dword [eax*8 + 0x51cc78]
mov eax, dword [ecx + 0x120]
imul edx, esi
add edx, edi
add eax, ebp
push edx
push eax
call fcn.0043c030
mov ecx, dword [0x5d2188]
mov eax, dword [0x6e98d4]
mov edx, dword [ecx + 0x13c]
mov ecx, dword [ebx + eax]
add ecx, eax
push edx
push ecx
call fcn.00431ec0
mov edx, dword [0x5d2188]
mov dword [esp + 0x3c], eax
push 1
push 0
mov ecx, dword [edx + 0x13c]
mov edi, dword [edx + 0x124]
mov edx, dword [edx + 0x120]
push 0xd9
lea eax, [ecx + ecx*2]
mov ecx, dword [eax*8 + 0x51cc78]
lea eax, [esi + 1]
imul eax, ecx
imul ecx, esi
add eax, edi
lea ecx, [ecx + edi - 1]
push eax
mov eax, dword [esp + 0x4c]
add eax, edx
lea edx, [edx + ebp - 1]
add eax, ebp
push eax
push ecx
push edx
call fcn.004ec750
mov edx, dword [0x6e98d4]
mov ecx, dword [0x5d2188]
mov esi, dword [esp + 0x50]
add esp, 0x40
mov eax, dword [edx + 8]
inc esi
add ebx, 4
cmp esi, eax
mov dword [esp + 0x10], esi
jb 0x43e685
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret