Function at 0x4154c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x840
xor eax, eax
push ebx
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov word [esp + 0x20], ax
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
mov word [esp + 0x10], ax
mov eax, dword [0x439fc8]
push ebp
push esi
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
mov byte [esp + 0x10], 0x42
mov byte [esp + 0x11], 0x4b
mov byte [esp + 0x12], 0x47
mov byte [esp + 0x13], 0x4f
mov bl, byte [ecx + edx + 8]
push edi
mov edi, 0x800
cmp bl, 0xb4
mov dword [esp + 0x20], edi
jne 0x415590
cmp dword [esp + 0x858], 2
jne 0x415590
mov ax, word [0x43a19c]
mov esi, dword [esp + 0x854]
xor ecx, ecx
lea edx, [esp + 0x28]
mov ch, ah
and esi, 0xff
push 4
mov cl, al
push edx
push esi
mov word [esp + 0x34], cx
call dword [0x44d8e0]
lea ecx, [esi*8]
add esp, 0xc
sub ecx, esi
cmp eax, 1
lea edx, [esi + ecx*4]
mov dword [edx*4 + 0x44cd08], eax
je 0x41558b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x840
ret
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
cmp byte [ecx + edx + 8], 0xb5
jne 0x415620
cmp dword [esp + 0x858], 2
jne 0x415620
mov ax, word [0x43a1a0]
mov esi, dword [esp + 0x854]
mov cx, word [0x43a1a2]
mov dx, word [0x43a1a4]
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
and esi, 0xff
push 6
push eax
push esi
mov word [esp + 0x26], cx
mov word [esp + 0x28], dx
call dword [0x44d8e0]
lea ecx, [esi*8]
add esp, 0xc
sub ecx, esi
cmp eax, 1
lea edx, [esi + ecx*4]
mov dword [edx*4 + 0x44cd08], eax
je 0x41561b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x840
ret
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
mov eax, dword [ecx + edx + 0x18]
cmp eax, 1
jne 0x415646
mov dword [esp + 0x20], 0x400
mov edi, dword [esp + 0x20]
mov ecx, dword [0x42e558]
cmp ecx, 1
jne 0x415668
mov eax, dword [0x44ccb4]
mov ecx, dword [0x439eb0]
mov esi, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x4156c0
cmp ecx, 2
jne 0x41569b
lea edx, [esp + 0x50]
cmp eax, 1
mov eax, dword [0x439eb0]
mov dword [esp + 0x10], edx
jne 0x415693
test cl, al
jne 0x41568b
shr eax, 1
shl eax, 1
mov esi, eax
jmp 0x4156c0
shr eax, 1
lea esi, [eax + eax + 2]
jmp 0x4156c0
test al, 1
mov esi, eax
je 0x4156c0
jmp 0x4156bf
lea ecx, [esp + 0x50]
cmp eax, 1
mov eax, dword [0x439eb0]
mov dword [esp + 0x10], ecx
jne 0x4156b9
test al, 2
je 0x41568b
shr eax, 1
shl eax, 1
mov esi, eax
jmp 0x4156c0
test al, 1
mov esi, eax
jne 0x4156c0
inc esi
mov eax, dword [0x42e59c]
mov ecx, dword [0x439eb4]
mov edx, eax
mov ebx, ecx
sub edx, ecx
inc edx
cmp ebx, eax
mov dword [0x44d520], edx
ja 0x4159b2
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x30], eax
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x34], eax
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x435918]
movsx eax, ax
test eax, ecx
je 0x415721
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x43a174]
je 0x4158b8
cmp dword [0x43a1b0], 5
je 0x4158b8
mov edi, dword [esp + 0x854]
lea ecx, [esp + 0x16]
and edi, 0xff
push 2
push ecx
push edi
call dword [0x44d8e0]
lea edx, [edi*8]
mov ecx, 1
sub edx, edi
add esp, 0xc
lea ebp, [edi + edx*4]
shl ebp, 2
cmp eax, ecx
mov dword [ebp + 0x44cd08], eax
jne 0x415917
mov eax, dword [esp + 0x858]
test eax, eax
je 0x415815
cmp dword [0x42e558], ecx
je 0x4157e1
mov eax, dword [0x439fc8]
mov edx, dword [eax*4 + 0x439fcc]
mov eax, dword [eax*4 + 0x431580]
shl edx, 7
cmp dword [edx + eax + 0x18], ecx
jne 0x4157c7
mov ecx, dword [0x44ccb4]
xor eax, eax
mov dl, byte [ecx + esi]
add esi, 4
mov byte [esp + eax + 0x50], dl
mov dl, byte [ecx + esi - 3]
mov byte [esp + eax + 0x51], dl
add eax, 2
cmp eax, 0x800
jl 0x4157a9
jmp 0x4157e1
mov ecx, dword [0x44ccb4]
xor eax, eax
mov dl, byte [ecx + esi]
add esi, 2
mov byte [esp + eax + 0x50], dl
inc eax
cmp eax, 0x800
jl 0x4157cf
mov eax, dword [esp + 0x10]
push 0x800
push eax
push edi
call dword [0x44d8e0]
add esp, 0xc
cmp eax, 1
mov dword [ebp + 0x44cd08], eax
jne 0x415980
cmp dword [0x42e558], 1
jne 0x415815
add dword [esp + 0x10], 0x800
lea ecx, [esp + 0x26]
push 2
push ecx
push edi
call dword [0x44d484]
add esp, 0xc
cmp eax, 1
mov dword [ebp + 0x44cd08], eax
jne 0x415980
mov ax, word [esp + 0x26]
cmp al, 0x4f
je 0x415847
cmp ah, 0x4b
jne 0x415924
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add ebx, eax
mov eax, dword [0x439eb4]
add ecx, edi
push 0x25
mov dword [esp + 0x34], ecx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, ecx
shl edx, 2
sub eax, edx
xor edx, edx
div dword [0x44d520]
lea edx, [ebp + 0x44cd0e]
and eax, 0xff
push eax
mov eax, dword [esp + 0x860]
mov ecx, dword [eax*4 + 0x435788]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x42e59c]
add esp, 0x10
cmp ebx, eax
jbe 0x4156fa
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
push 5
push 0x43a1b0
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [esp + 0x854]
lea eax, [esp + 0x14]
and esi, 0xff
push 2
push eax
push esi
call dword [0x44d8e0]
lea ecx, [esi*8]
add esp, 0xc
sub ecx, esi
cmp eax, 1
lea edx, [esi + ecx*4]
mov dword [edx*4 + 0x44cd08], eax
je 0x4159b2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x840
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x840
ret
mov eax, dword [0x439fc8]
mov esi, dword [esp + 0x854]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
mov al, byte [ecx + edx + 8]
sub al, 0xb5
neg al
sbb eax, eax
and esi, 0xff
and al, 0xfe
add eax, 8
push eax
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x44d484]
lea ecx, [esi*8]
add esp, 0xc
sub ecx, esi
lea ecx, [esi + ecx*4]
shl ecx, 2
cmp eax, 1
mov dword [ecx + 0x44cd08], eax
je 0x415990
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x840
ret
mov dl, byte [esp + 0x3c]
mov ax, word [esp + 0x3e]
mov byte [ecx + 0x44cd53], dl
mov dx, word [esp + 0x40]
mov word [ecx + 0x44cd66], ax
mov word [ecx + 0x44cd68], dx
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret