Function at 0x41dabb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5c8eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xe5
push esi
mov esi, ecx
mov dword [ebp - 0x214], ebx
mov cx, word [ebp + 0xc]
cmp cx, ax
jne 0x41d8a5
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054a5f8
mov esp, ebp
pop ebp
ret 0x10
cmp cx, 0x10
je 0x41d88e
cmp cx, 0x11
je 0x41d88e
cmp cx, 0x12
je 0x41d88e
mov eax, dword [esi + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp word [eax + 0x664], 0
jbe 0x41d926
cmp cx, 0x1b
jne 0x41d926
push 0x10
call edi
cwde
test eax, 0xffffff80
je 0x41d922
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
cmp dword [esi + 0x1c], eax
sete al
mov dword [esi + 0x1c], eax
push 1
push 0x102
push 0x102
push ebx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054a5f8
mov esp, ebp
pop ebp
ret 0x10
mov cx, word [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x41d937
movzx eax, cx
cmp dword [esi + 0x23c], eax
je 0x41d8f0
mov ebx, dword [ebp + 0x14]
movzx eax, cx
mov dword [ebp - 0x224], eax
mov dword [esi + 0x23c], eax
test bx, bx
jne 0x41d95d
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ebx, ax
mov dword [ebp + 0x14], ebx
push 0x10
mov dword [ebp - 0x208], 1
mov dword [ebp - 0x20c], 1
call edi
cwde
test eax, 0xffffff80
je 0x41d99a
or ebx, 0x200
mov dword [ebp - 0x208], 0
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x20c], 0
push 0x11
call edi
cwde
test eax, 0xffffff80
je 0x41d9bb
or ebx, 0x400
mov dword [ebp - 0x208], 0
mov dword [ebp + 0x14], ebx
jmp 0x41d9c5
mov dword [ebp - 0x20c], 0
push 0x12
call edi
cwde
test eax, 0xffffff80
je 0x41d9fb
mov eax, dword [esi + 8]
or ebx, 0x800
mov dword [ebp + 0x14], ebx
cmp word [eax + 0x8f2], 0
jne 0x41d9fb
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp + 0x10]
xor edx, edx
xor edi, edi
movzx ebx, ax
cmp word [ebp + 0xc], 0x2e
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x220], edx
jne 0x41da2a
mov eax, dword [esi + 8]
cmp word [eax + 0x8ec], dx
jne 0x41da44
mov ecx, dword [esi + 0x240]
mov edx, dword [ebp + 0x14]
call fcn.00414030
movzx ecx, ax
test cx, cx
jne 0x41dbf5
mov ecx, dword [ebp - 0x224]
lea eax, [ecx - 8]
cmp eax, 0x26
ja case.0x41da5d.9
movzx eax, byte [eax + 0x41ddd8]
jmp dword [eax*4 + 0x41ddc4]
cmp dword [ebp - 0x20c], edi
je 0x41da8f
mov eax, dword [esi + 8]
mov ecx, 0x7f
mov edx, 8
cmp word [eax + 0x8ea], 2
cmove ecx, edx
mov byte [ebp - 0x104], cl
jmp 0x41db1e
cmp dword [ebp - 0x208], edi
je 0x41db23
mov eax, dword [esi + 8]
mov ecx, 8
mov edx, 0x7f
cmp word [eax + 0x8ea], 2
cmove ecx, edx
mov byte [ebp - 0x104], cl
jmp 0x41db1e
cmp dword [ebp - 0x208], edi
je 0x41db23
mov dword [ebp - 0x210], 1
mov byte [ebp - 0x104], 0xd
jmp 0x41db1e
cmp dword [ebp - 0x20c], edi
je 0x41db23
mov byte [ebp - 0x104], 0
jmp 0x41db1e
cmp dword [ebp - 0x208], edi
je 0x41db23
mov eax, dword [esi + 8]
cmp word [eax + 0x8ec], di
jbe 0x41db23
mov byte [ebp - 0x104], 0x7f
jmp 0x41db1e
movsx eax, word [esi + 0x244]
cmp ecx, eax
jne 0x41db23
cmp dword [ebp - 0x20c], edi
je 0x41db23
mov byte [ebp - 0x104], 0x1c
mov edi, 1
mov eax, dword [esi + 8]
cmp word [eax + 0x8f2], 0
jbe 0x41dc72
cmp edi, 1
jne 0x41dc72
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, 0xffffff80
je 0x41db84
mov al, byte [ebp - 0x104]
mov edi, 2
push 1
push 0x106
push 0x106
push dword [ebp - 0x214]
mov byte [ebp - 0x103], al
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 0x104], 0x1b
call dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, 0x90
cmp word [ebp + 0xc], ax
jne 0x41dbb0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor byte [ebp - 0x174], 1
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push 1
push 0x102
push 0x102
push dword [ebp - 0x214]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 0
je case.default.0x41dbee
mov ecx, dword [ebp - 0x210]
movzx ecx, cx
cmp ecx, 3
ja case.default.0x41dbee
jmp dword [ecx*4 + 0x41de00]
lea eax, [ecx - 0x2f]
cmp ax, 0xe
ja 0x41dc30
mov eax, ecx
mov edi, dword [esi + eax*4 + 0x144]
test edi, edi
jle 0x41dc30
add eax, 0xffffffd2
shl eax, 5
add eax, esi
push edi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0054fca0
add esp, 0xc
mov dword [ebp - 0x210], 0
jmp 0x41dc72
mov edx, dword [esi + 0x240]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x18]
push dword [esi + 0x14]
push ecx
mov ecx, dword [ebp - 0x214]
call fcn.00414060
mov eax, dword [ebp - 0x220]
add esp, 0x18
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
test edi, edi
jne 0x41db84
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054a5f8
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x10], 0
jne case.default.0x41dbee
cmp ebx, 1
jl case.default.0x41dbee
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x104]
push edi
add ecx, 0x948
call fcn.00415100
mov ecx, dword [esi + 8]
add esp, 4
cmp word [ecx + 0x80c], 0
jbe 0x41dcdc
push edi
add ecx, 0x948
lea edx, [ebp - 0x104]
call fcn.00415340
add esp, 4
dec ebx
jne 0x41dca2
jmp case.default.0x41dbee
cmp dword [eax + 0x10], 0
jne case.default.0x41dbee
cmp ebx, 1
jl case.default.0x41dbee
jmp 0x41dd00
mov ecx, dword [esi + 8]
cmp word [ecx + 0x80c], 0
jbe 0x41dd22
push edi
add ecx, 0x948
lea edx, [ebp - 0x104]
call fcn.00415410
add esp, 4
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x104]
push edi
add ecx, 0x948
call fcn.00415200
add esp, 4
dec ebx
jne 0x41dd00
jmp case.default.0x41dbee
cmp edi, 0xff
jae 0x41ddbc
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x104]
push 0
push eax
mov byte [ebp + edi - 0x104], 0
call fcn.004299f0
jmp case.default.0x41dbee
cmp edi, 0xff
jae 0x41ddbc
lea eax, [ebp - 0x218]
mov byte [ebp + edi - 0x104], 0
push eax
lea eax, [ebp - 0x104]
push 0x5aa57c
push eax
call fcn.0054cc90
add esp, 0xc
cmp eax, 1
jne case.default.0x41dbee
movzx eax, word [ebp - 0x218]
push 0
push eax
push 0x111
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.default.0x41dbee
call fcn.0054adb2
lea ecx, [ecx]
fiadd dword fs:[ecx]
mov ebx, -704626214
fiadd dword [ecx]
out 0xda, eax
inc ecx
add byte [ebx + ebx*8], al
inc ecx
add byte [eax], al
add al, 4
add al, 4
add dword [esp + eax], eax
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, byte [esp + eax]
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 3
nop
invalid