Function at 0x473ea0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x23c
mov eax, dword [0xcfead0]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [0xcc047c], esi
je 0x473ec4
call fcn.00425f60
push 0x5094d0
push str.keynames.txt
call fcn.00441230
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x473fac
mov dword [esp + 0x10], 0xcc0498
mov al, byte [ebp + 0xc]
xor ebx, ebx
test al, 0x10
mov esi, 0xcc0330
jne 0x473f4a
push ebp
call fcn.004e08a0
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x473f19
cmp ebx, 0xd
je 0x473f19
cmp ebx, 0xffffffff
je 0x473f13
mov byte [esi], bl
inc esi
test byte [ebp + 0xc], 0x10
je 0x473ef6
test byte [ebp + 0xc], 0x10
jne 0x473f4a
cmp ebx, 0xa
je 0x473f29
cmp ebx, 0xd
jne 0x473f4a
push ebp
call fcn.004e08a0
add esp, 4
cmp eax, ebx
je 0x473f40
cmp eax, 0xa
je 0x473f4a
cmp eax, 0xd
je 0x473f4a
push ebp
push eax
call fcn.004e0809
add esp, 8
mov edi, 0xcc0330
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004ddf8e
mov edx, eax
mov edi, 0xcc0330
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, 0xcc05fc
rep movsb byte es:[edi], byte [esi]
jl 0x473ee8
push ebp
call fcn.004418c0
add esp, 4
jmp 0x473fba
mov ecx, 0x59
xor eax, eax
mov edi, 0xcc0498
rep stosd dword es:[edi], eax
mov esi, 0x74166c
mov eax, 0x741ccc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x473fec
test cl, cl
je 0x473fe8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x473fec
add eax, 2
add esi, 2
test cl, cl
jne 0x473fc4
xor eax, eax
jmp 0x473ff1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4740e6
mov esi, 0x74166c
mov eax, 0xcc4e98
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x47402b
test cl, cl
je 0x474027
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x47402b
add eax, 2
add esi, 2
test cl, cl
jne 0x474003
xor eax, eax
jmp 0x474030
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4740e6
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, 0xcc4e98
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.0048d8f0
mov edx, dword [str.macros.txt]
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push edx
push eax
push 0x741ccc
push 0xcc2d98
push str.Desktop__s__s__s__s
push ecx
call fcn.004de113
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 0x50b2e8
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.00441230
mov esi, eax
add esp, 0x20
test esi, esi
mov dword [esp + 0x10], esi
jne 0x474106
push 0x50b2e8
push str.macros.txt
call fcn.00441230
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x4742a7
mov eax, dword [esi + 0xc]
and eax, 0x10
jne 0x47429e
xor ebx, ebx
mov edi, 0xcc0330
test eax, eax
jne 0x474140
push esi
call fcn.004e08a0
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x474140
cmp ebx, 0xd
je 0x474140
cmp ebx, 0xffffffff
je 0x47413a
mov byte [edi], bl
inc edi
test byte [esi + 0xc], 0x10
je 0x47411d
test byte [esi + 0xc], 0x10
jne 0x474171
cmp ebx, 0xa
je 0x474150
cmp ebx, 0xd
jne 0x474171
push esi
call fcn.004e08a0
add esp, 4
cmp eax, ebx
je 0x474167
cmp eax, 0xa
je 0x474171
cmp eax, 0xd
je 0x474171
push esi
push eax
call fcn.004e0809
add esp, 8
mov byte [edi], 0
mov edi, 0xcc0330
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47428c
mov edi, 0xcc0330
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx + 0xcc032e]
mov ecx, 3
mov al, byte [edi]
cmp al, 0x30
je 0x4741b2
cmp al, 0x31
je 0x4741b2
mov al, byte [edi - 1]
dec edi
cmp al, 0x30
jne 0x4741a6
dec edi
dec ecx
jne 0x4741a0
mov byte [edi], 0
inc edi
xor ebp, ebp
mov edx, 0xcc0498
mov eax, dword [edx]
test eax, eax
je 0x4741fd
mov esi, 0xcc0330
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4741f0
test cl, cl
je 0x4741ec
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4741f0
add eax, 2
add esi, 2
test cl, cl
jne 0x4741cc
xor eax, eax
jmp 0x4741f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4742b2
add edx, 4
inc ebp
cmp edx, 0xcc05fc
jl 0x4741c1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
and eax, 0x10
jne 0x47428c
cmp byte [0xcc0330], 0x23
je 0x47428c
mov edi, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
mov esi, 0xcc0330
jne 0x474250
push edi
call fcn.004e08a0
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x474250
cmp ebx, 0xd
je 0x474250
cmp ebx, 0xffffffff
je 0x47424a
mov byte [esi], bl
inc esi
test byte [edi + 0xc], 0x10
je 0x47422d
test byte [edi + 0xc], 0x10
jne 0x474281
cmp ebx, 0xa
je 0x474260
cmp ebx, 0xd
jne 0x474281
push edi
call fcn.004e08a0
add esp, 4
cmp eax, ebx
je 0x474277
cmp eax, 0xa
je 0x474281
cmp eax, 0xd
je 0x474281
push edi
push eax
call fcn.004e0809
add esp, 8
mov byte [esi], 0
mov eax, dword [edi + 0xc]
and eax, 0x10
je 0x474215
mov ecx, dword [esp + 0x10]
mov esi, ecx
mov eax, dword [ecx + 0xc]
and eax, 0x10
je 0x474112
push esi
call fcn.004418c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
push 0xe4
call fcn.004ddf8e
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 0x4742ec
mov dword [0xcc0484], esi
jmp 0x4742f2
mov dword [eax + 0xe0], esi
mov ebp, dword [0xcc047c]
push 0x508a04
inc ebp
push edi
mov dword [esp + 0x1c], esi
mov dword [0xcc047c], ebp
call fcn.004de8cb
add esp, 8
lea edx, [esp + 0x1c]
push edx
push 0x509080
push eax
call fcn.004debb9
push 0x508a04
push 0
call fcn.004de8cb
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0x509080
push eax
call fcn.004debb9
push 0x508a04
push 0
call fcn.004de8cb
add esp, 0x14
lea edx, [esp + 0x20]
push edx
push 0x509080
push eax
call fcn.004debb9
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 0x47428c
cmp byte [0xcc0330], 0x23
je 0x47428c
mov edi, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
mov ebp, 0xcc0330
jne 0x4743e3
push edi
call fcn.004e08a0
mov ebx, eax
add esp, 4
cmp ebx, 0xa
je 0x4743e3
cmp ebx, 0xd
je 0x4743e3
cmp ebx, 0xffffffff
je 0x4743dd
mov byte [ebp], bl
inc ebp
test byte [edi + 0xc], 0x10
je 0x4743bf
test byte [edi + 0xc], 0x10
jne 0x474414
cmp ebx, 0xa
je 0x4743f3
cmp ebx, 0xd
jne 0x474414
push edi
call fcn.004e08a0
add esp, 4
cmp eax, ebx
je 0x47440a
cmp eax, 0xa
je 0x474414
cmp eax, 0xd
je 0x474414
push edi
push eax
call fcn.004e0809
add esp, 8
mov byte [ebp], 0
mov al, byte [edi + 0xc]
test al, 0x10
jne 0x474447
cmp byte [0xcc0330], 0x23
je 0x474447
mov eax, dword [esi + 0x14]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*4 + 0x18]
push edx
push 0xcc0330
call fcn.004747e0
mov eax, dword [esi + 0x14]
add esp, 8
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
and eax, 0x10
je 0x4743a3
jmp 0x47428c