Function at 0x4b64b0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x23c
mov eax, dword [0x8d0ce8]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [0xcecc7c], esi
je 0x4b64d4
call fcn.0043f0a0
push 0x5192f8
push str.keynames.txt
call fcn.004a61a0
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x4b65bc
mov dword [esp + 0x10], 0xcecc98
mov al, byte [ebp + 0xc]
xor ebx, ebx
test al, 0x10
mov esi, 0xcecb30
jne 0x4b655a
push ebp
call fcn.004f04ba
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x4b6529
cmp ebx, 0xd
je 0x4b6529
cmp ebx, 0xffffffff
je 0x4b6523
mov byte [esi], bl
inc esi
test byte [ebp + 0xc], 0x10
je 0x4b6506
test byte [ebp + 0xc], 0x10
jne 0x4b655a
cmp ebx, 0xa
je 0x4b6539
cmp ebx, 0xd
jne 0x4b655a
push ebp
call fcn.004f04ba
add esp, 4
cmp eax, ebx
je 0x4b6550
cmp eax, 0xa
je 0x4b655a
cmp eax, 0xd
je 0x4b655a
push ebp
push eax
call fcn.004f0423
add esp, 8
mov edi, 0xcecb30
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004ed8ee
mov edx, eax
mov edi, 0xcecb30
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov ebx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebx], edx
mov eax, ecx
mov esi, edi
mov edi, edx
add ebx, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x10], ebx
and ecx, 3
cmp ebx, 0xcecdfc
rep movsb byte es:[edi], byte [esi]
jl 0x4b64f8
push ebp
call fcn.004a6830
add esp, 4
jmp 0x4b65ca
mov ecx, 0x59
xor eax, eax
mov edi, 0xcecc98
rep stosd dword es:[edi], eax
mov esi, 0x636af0
mov eax, 0x636c1c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4b65fc
test cl, cl
je 0x4b65f8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4b65fc
add eax, 2
add esi, 2
test cl, cl
jne 0x4b65d4
xor eax, eax
jmp 0x4b6601
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b66f6
mov esi, 0x636af0
mov eax, 0xcf35e0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4b663b
test cl, cl
je 0x4b6637
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4b663b
add eax, 2
add esi, 2
test cl, cl
jne 0x4b6613
xor eax, eax
jmp 0x4b6640
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b66f6
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0xcf35e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.004cc490
mov edx, dword [str.macros.txt]
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push edx
push eax
push 0x636c1c
push 0xcf14e0
push str.Desktop__s__s__s__s
push ecx
call fcn.004ee486
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x160]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x52319c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x164]
push ecx
call fcn.004a61a0
mov esi, eax
add esp, 0x20
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4b6716
push 0x52319c
push str.macros.txt
call fcn.004a61a0
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x4b68b7
mov eax, dword [esi + 0xc]
and eax, 0x10
jne 0x4b68ae
xor ebx, ebx
mov edi, 0xcecb30
test eax, eax
jne 0x4b6750
push esi
call fcn.004f04ba
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x4b6750
cmp ebx, 0xd
je 0x4b6750
cmp ebx, 0xffffffff
je 0x4b674a
mov byte [edi], bl
inc edi
test byte [esi + 0xc], 0x10
je 0x4b672d
test byte [esi + 0xc], 0x10
jne 0x4b6781
cmp ebx, 0xa
je 0x4b6760
cmp ebx, 0xd
jne 0x4b6781
push esi
call fcn.004f04ba
add esp, 4
cmp eax, ebx
je 0x4b6777
cmp eax, 0xa
je 0x4b6781
cmp eax, 0xd
je 0x4b6781
push esi
push eax
call fcn.004f0423
add esp, 8
mov byte [edi], 0
mov edi, 0xcecb30
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b689c
mov edi, 0xcecb30
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx + 0xcecb2e]
mov ecx, 3
mov al, byte [edi]
cmp al, 0x30
je 0x4b67c2
cmp al, 0x31
je 0x4b67c2
mov al, byte [edi - 1]
dec edi
cmp al, 0x30
jne 0x4b67b6
dec edi
dec ecx
jne 0x4b67b0
mov byte [edi], 0
inc edi
xor ebp, ebp
mov edx, 0xcecc98
mov eax, dword [edx]
test eax, eax
je 0x4b680d
mov esi, 0xcecb30
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4b6800
test cl, cl
je 0x4b67fc
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4b6800
add eax, 2
add esi, 2
test cl, cl
jne 0x4b67dc
xor eax, eax
jmp 0x4b6805
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b68c2
add edx, 4
inc ebp
cmp edx, 0xcecdfc
jl 0x4b67d1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
and eax, 0x10
jne 0x4b689c
cmp byte [0xcecb30], 0x23
je 0x4b689c
mov edi, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
mov esi, 0xcecb30
jne 0x4b6860
push edi
call fcn.004f04ba
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x4b6860
cmp ebx, 0xd
je 0x4b6860
cmp ebx, 0xffffffff
je 0x4b685a
mov byte [esi], bl
inc esi
test byte [edi + 0xc], 0x10
je 0x4b683d
test byte [edi + 0xc], 0x10
jne 0x4b6891
cmp ebx, 0xa
je 0x4b6870
cmp ebx, 0xd
jne 0x4b6891
push edi
call fcn.004f04ba
add esp, 4
cmp eax, ebx
je 0x4b6887
cmp eax, 0xa
je 0x4b6891
cmp eax, 0xd
je 0x4b6891
push edi
push eax
call fcn.004f0423
add esp, 8
mov byte [esi], 0
mov eax, dword [edi + 0xc]
and eax, 0x10
je 0x4b6825
mov ecx, dword [esp + 0x10]
mov esi, ecx
mov eax, dword [ecx + 0xc]
and eax, 0x10
je 0x4b6722
push esi
call fcn.004a6830
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
push 0xe4
call fcn.004ed8ee
add esp, 4
mov esi, eax
push 1
push ebp
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
shl ebp, 0x10
test eax, eax
mov dword [esi + 4], ebp
mov dword [esi + 0xe0], 0
jne 0x4b68fc
mov dword [0xcecc84], esi
jmp 0x4b6902
mov dword [eax + 0xe0], esi
mov ebp, dword [0xcecc7c]
push 0x5199ec
inc ebp
push edi
mov dword [esp + 0x1c], esi
mov dword [0xcecc7c], ebp
call fcn.004ef74d
add esp, 8
lea edx, [esp + 0x1c]
push edx
push 0x5192f0
push eax
call fcn.004ede83
push 0x5199ec
push 0
call fcn.004ef74d
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0x5192f0
push eax
call fcn.004ede83
push 0x5199ec
push 0
call fcn.004ef74d
add esp, 0x14
lea edx, [esp + 0x20]
push edx
push 0x5192f0
push eax
call fcn.004ede83
mov ebp, dword [esp + 0x28]
add esp, 0xc
xor eax, eax
test ebp, ebp
setne al
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x10]
test ebx, ebx
setne cl
mov dword [esi + 0xc], ecx
mov edi, dword [esp + 0x20]
xor edx, edx
mov dword [esi + 0x14], 0
test edi, edi
setne dl
mov dword [esi + 0x10], edx
mov eax, dword [eax + 0xc]
and eax, 0x10
jne 0x4b689c
cmp byte [0xcecb30], 0x23
je 0x4b689c
mov edi, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
mov ebp, 0xcecb30
jne 0x4b69f3
push edi
call fcn.004f04ba
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x4b69f3
cmp ebx, 0xd
je 0x4b69f3
cmp ebx, 0xffffffff
je 0x4b69ed
mov byte [ebp], bl
inc ebp
test byte [edi + 0xc], 0x10
je 0x4b69cf
test byte [edi + 0xc], 0x10
jne 0x4b6a24
cmp ebx, 0xa
je 0x4b6a03
cmp ebx, 0xd
jne 0x4b6a24
push edi
call fcn.004f04ba
add esp, 4
cmp eax, ebx
je 0x4b6a1a
cmp eax, 0xa
je 0x4b6a24
cmp eax, 0xd
je 0x4b6a24
push edi
push eax
call fcn.004f0423
add esp, 8
mov byte [ebp], 0
mov al, byte [edi + 0xc]
test al, 0x10
jne 0x4b6a57
cmp byte [0xcecb30], 0x23
je 0x4b6a57
mov eax, dword [esi + 0x14]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*4 + 0x18]
push edx
push 0xcecb30
call fcn.004b6df0
mov eax, dword [esi + 0x14]
add esp, 8
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
and eax, 0x10
je 0x4b69b3
jmp 0x4b689c