Function at 0x4a3680
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd4
push esi
push edi
push ecx
lea edi, [ebp - 0xd4]
mov ecx, 0x35
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0x200
ja 0x4a3717
cmp dword [ebp - 0x94], 0x200
je 0x4a3ca5
mov edx, dword [ebp - 0x94]
sub edx, 0x7b
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 0x8a
ja case.0x4a373c.1
mov eax, dword [ebp - 0x94]
movzx ecx, byte [eax + 0x4a3da0]
jmp dword [ecx*4 + 0x4a3d88]
mov edx, dword [ebp - 0x94]
sub edx, 0x201
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 9
ja case.0x4a373c.1
mov eax, dword [ebp - 0x94]
jmp dword [eax*4 + 0x4a3e2c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44c], 0
je case.0x4a3710.0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x98]
call fcn.00663e90
test eax, eax
je case.0x4a3710.0
mov eax, 1
jmp 0x4a3d41
call fcn.00415ef0
cmp dword [eax + 0x1a4], 0
jne 0x4a37ba
call fcn.00415ef0
cmp dword [eax + 0x1a0], 0
jne 0x4a37ba
call fcn.00415ef0
mov dword [eax + 0x1a0], 1
call fcn.004607f0
nop
call fcn.004a9010
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a37eb
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 0x12
jne 0x4a37eb
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0xc]
call fcn.0041f5a0
mov eax, 1
jmp 0x4a3d41
mov ecx, dword [ebp - 4]
add ecx, 0x350
mov dword [ebp - 0x9c], ecx
push 0
mov edx, dword [ebx + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.0051ee00
test eax, eax
je 0x4a381c
mov eax, 1
jmp 0x4a3d41
jmp case.0x4a373c.1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44c], 0
je 0x4a3867
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44c]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0xa0]
call fcn.006640c0
test eax, eax
je 0x4a3867
mov eax, 1
jmp 0x4a3d41
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00784930
cwde
and eax, 0x8000
je 0x4a388c
mov dword [ebp - 0xa4], 1
jmp 0x4a3896
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], ecx
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00784930
movsx edx, ax
and edx, 0x8000
je 0x4a38c7
mov dword [ebp - 0xa8], 1
jmp 0x4a38d1
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a3908
mov eax, dword [ebp - 0x18]
push eax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
je 0x4a3908
mov dword [ebp - 0xac], 1
jmp 0x4a3912
mov dword [ebp - 0xac], 0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x18], 0
je 0x4a3932
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call sub.IMM32.dll_ImmReleaseContext
nop
mov edx, dword [ebp - 4]
cmp dword [edx + 0x3fc], 0
je 0x4a39ad
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 0x12
je 0x4a3962
mov ecx, dword [ebx + 8]
cmp dword [ecx + 8], 0x79
jne 0x4a39ad
cmp dword [ebp - 0x10], 0
jne 0x4a39ad
cmp dword [ebp - 0x14], 0
jne 0x4a39ad
cmp dword [ebp - 0x1c], 0
jne 0x4a39ad
call fcn.0041d460
mov edx, dword [ebp - 4]
cmp dword [edx + 0x3fc], eax
jne 0x4a397d
mov ecx, dword [ebp - 4]
call fcn.00449640
nop
jmp 0x4a39a3
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 0x12
je 0x4a3994
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0xc]
and edx, 0x20000000
jne 0x4a39a3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3fc]
call fcn.00449640
nop
mov eax, 1
jmp 0x4a3d41
call fcn.004a9010
test eax, eax
je 0x4a39c0
mov eax, 1
jmp 0x4a3d41
jmp case.0x4a373c.1
mov ecx, dword [ebx + 8]
push ecx
call fcn.0051b590
test eax, eax
jne 0x4a3a03
mov edx, dword [ebp - 4]
add edx, 0x350
mov dword [ebp - 0xb0], edx
push 0
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0xb0]
call fcn.0051ee00
test eax, eax
je 0x4a3a03
mov eax, 1
jmp 0x4a3d41
mov edx, dword [ebx + 8]
cmp dword [edx + 8], 0x1b
jne 0x4a3aa1
mov ecx, dword [ebp - 4]
call fcn.00416810
test eax, eax
je 0x4a3a3a
mov eax, dword [ebp - 4]
add eax, 0x408
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.005b16d0
nop
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 0x160
call fcn.00484270
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a3a6d
mov ecx, dword [ebp - 0x20]
call fcn.00484a20
test eax, eax
je 0x4a3a6d
mov ecx, dword [ebp - 0x20]
call fcn.0063d7f0
nop
call fcn.0041cf20
push eax
push 0x819674
call fcn.0047cc80
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4a3aa1
push 0
push 0
push 0x1f
mov ecx, dword [ebp - 0x24]
call fcn.0041f5a0
mov eax, 1
jmp 0x4a3d41
cmp dword [ebp - 8], 0
jne 0x4a3aae
xor eax, eax
jmp 0x4a3d41
jmp case.0x4a373c.1
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
push ecx
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movsx ecx, ax
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405460
mov edx, dword [ebx + 8]
mov eax, dword [edx]
push eax
call fcn.00436870
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a3b16
mov esi, esp
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x4a3b16
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0041c9c0
nop
mov ecx, dword [ebp - 4]
add ecx, 0x350
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.0051f2e0
test eax, eax
je 0x4a3b8f
mov eax, 1
jmp 0x4a3d41
mov esi, esp
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp esi, esp
call fcn.00784930
test eax, eax
jne 0x4a3bb2
mov eax, 1
jmp 0x4a3d41
jmp case.0x4a373c.1
mov eax, dword [ebp - 4]
add eax, 0x350
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movsx edx, cx
push edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movsx edx, cx
push edx
lea ecx, [ebp - 0x78]
call fcn.00405460
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xc4]
call fcn.0051f2e0
test eax, eax
je 0x4a3c65
mov eax, 1
jmp 0x4a3d41
jmp case.0x4a373c.1
mov ecx, dword [ebp - 4]
add ecx, 0x350
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp - 0xd0]
call fcn.00520090
test eax, eax
je 0x4a3ca0
mov eax, 1
jmp 0x4a3d41
jmp case.0x4a373c.1
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movsx edx, cx
push edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movsx edx, cx
push edx
lea ecx, [ebp - 0x44]
call fcn.00405460
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push ecx
call fcn.00436870
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4a3cf1
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.0041c9c0
nop
mov eax, dword [ebp - 4]
add eax, 0x350
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0xd4]
call fcn.0051fee0
test eax, eax
je case.0x4a373c.1
mov eax, 1
jmp 0x4a3d41
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.004238c0
push edx
mov ecx, ebp
push eax
lea edx, [0x4a3d60]
call fcn.007848d0
pop eax
pop edx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4