Function at 0x47ea90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fb120
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x58
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x68]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x782e08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x47e7aa
push 0x24a
push 0x71cf38
call fcn.00442350
test eax, eax
je 0x47e7aa
int3
mov ecx, dword [ebp + 8]
call fcn.0043a4a0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov esi, esp
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, esp
call fcn.006c7eb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0044c060
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0x100
jb 0x47e7fc
cmp dword [ebp - 0x1c], 0x109
jbe 0x47e816
cmp dword [ebp - 0x1c], 0x200
jb 0x47e91a
cmp dword [ebp - 0x1c], 0x209
ja 0x47e91a
cmp dword [ebp - 0x24], 0
je 0x47e91a
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x47e84f
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x6c], 0
jne 0x47e84f
mov ecx, dword [ebp - 0x2c]
call fcn.0043a3f0
cmp eax, dword [ebp + 8]
je 0x47e84f
mov ecx, dword [ebp - 0x2c]
call fcn.0043a3f0
mov dword [ebp - 0x2c], eax
jmp 0x47e826
cmp dword [ebp - 0x2c], 0
je 0x47e89f
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x6c], 0
je 0x47e89f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x6c]
cmp dword [edx + 0x58], 0
je 0x47e89f
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
cmp esi, esp
call fcn.006c7eb0
test eax, eax
jne 0x47e89f
mov eax, 1
jmp 0x47ee82
cmp dword [ebp - 0x1c], 0x101
je 0x47e8ba
cmp dword [ebp - 0x1c], 0x100
je 0x47e8ba
cmp dword [ebp - 0x1c], 0x102
jne 0x47e91a
cmp dword [ebp - 0x2c], 0
je 0x47e91a
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x6c], 0
je 0x47e91a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
cmp eax, 0xd
jne 0x47e8ee
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x84]
and eax, 1
jne 0x47e913
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
cmp eax, 0x1b
jne 0x47e91a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x84]
and eax, 2
je 0x47e91a
xor eax, eax
jmp 0x47ee82
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0044c060
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x100
je 0x47ea4b
cmp dword [ebp - 0x58], 0x102
je 0x47e9a9
cmp dword [ebp - 0x58], 0x106
je 0x47e96e
jmp case.0x47ea89.1
cmp dword [ebp - 0x24], 0
jne 0x47e991
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.006c7eb0
movsx ecx, ax
test ecx, ecx
jl 0x47e991
jmp case.0x47ea89.1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 0x20
jne 0x47e9a9
jmp case.0x47ea89.1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0047f9a0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x1c], 0x102
jne 0x47e9d2
mov ecx, dword [ebp - 0x3c]
and ecx, 0x84
je 0x47e9d2
jmp case.0x47ea89.1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 9
jne 0x47e9f2
mov edx, dword [ebp - 0x3c]
and edx, 2
je 0x47e9f2
jmp case.0x47ea89.1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
cmp edx, 0x20
jne 0x47ea0d
xor eax, eax
jmp 0x47ee82
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047fa20
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x47ea46
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x47ea46
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 4]
call fcn.0047b260
mov dword [ebp - 0x30], 1
jmp case.0x47ea89.1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0047f9a0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
sub edx, 3
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0x28
ja case.0x47ea89.1
mov eax, dword [ebp - 0x5c]
movzx ecx, byte [eax + 0x47eee4]
jmp dword [ecx*4 + 0x47eecc]
mov edx, dword [ebp - 0x3c]
and edx, 2
je 0x47ea9d
jmp case.0x47ea89.1
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.006c7eb0
cwde
test eax, eax
jge 0x47eabc
mov dword [ebp - 0x60], 1
jmp 0x47eac3
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00440c20
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x47eb76
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x47eb12
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xb4]
call edx
cmp esi, esp
call fcn.006c7eb0
jmp 0x47eb6f
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x47eb2a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call fcn.0044c060
mov dword [ebp - 0x64], eax
jmp 0x47eb3d
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043a280
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x47eb6f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov dword [ecx + 0x70], 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.0047f4a0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0047f220
add esp, 8
mov dword [ebp - 0x30], 1
jmp case.0x47ea89.1
mov dword [ebp - 0x40], 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0047f9a0
and eax, 1
je 0x47eb99
jmp case.0x47ea89.1
cmp dword [ebp - 0x40], 0
je 0x47ebae
push 0
mov ecx, dword [ebp + 8]
call fcn.00440f30
mov dword [ebp - 0x28], eax
jmp 0x47ebbb
push 0
mov ecx, dword [ebp + 8]
call fcn.00440b40
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x47eccd
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 8], 0
je 0x47ebda
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.00441bf0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x47ec12
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xb4]
call edx
cmp esi, esp
call fcn.006c7eb0
mov dword [ebp - 0x30], 1
jmp 0x47eccd
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x47ec2a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call fcn.0044c060
mov dword [ebp - 0x68], eax
jmp 0x47ec3d
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043a200
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x47eccd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov dword [ecx + 0x70], 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.0047f4a0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
je 0x47ecc6
mov esi, esp
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0x38]
call fcn.0043a4a0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp esi, esp
call fcn.006c7eb0
mov dword [ebp - 0x48], eax
push 0
push 1
push 0xf1
mov ecx, dword [ebp - 0x38]
call fcn.0043bbd0
mov ecx, dword [ebp - 0x38]
call fcn.0043a4a0
push eax
mov ecx, dword [ebp - 0x48]
and ecx, 0xffff
movzx edx, cx
push edx
push 0x111
mov ecx, dword [ebp + 8]
call fcn.0043bbd0
mov eax, dword [ebp - 0x38]
push eax
call fcn.0047f4a0
mov dword [ebp - 0x30], 1
jmp case.0x47ea89.1
mov ecx, dword [ebp - 0x3c]
and ecx, 4
je 0x47ecdf
jmp case.0x47ea89.1
mov edx, dword [ebp - 0x24]
push edx
call fcn.0047e6a0
add esp, 4
and eax, 0x10
je 0x47ed03
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.00440680
mov dword [ebp - 0x44], eax
jmp case.0x47ea89.0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047fd80
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x38], 0
jne 0x47ed30
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0047f4e0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x47ed30
jmp case.0x47ea89.1
cmp dword [ebp - 0x38], 0
jne 0x47ed4a
push 0x321
push 0x71cf38
call fcn.00442350
test eax, eax
je 0x47ed4a
int3
mov ecx, dword [ebp - 0x38]
call fcn.00441570
test eax, eax
jne 0x47ed69
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
cmp esi, esp
call fcn.006c7eb0
jmp case.0x47ea89.1
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x6c], 0
je case.0x47ea89.1
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 1
push 0xfffffdd9
mov eax, dword [ebp - 0x38]
push eax
call fcn.004412f0
add esp, 0x18
jmp 0x47edc7
mov dword [ebp - 4], 0xffffffff
jmp 0x47edd7
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
jne 0x47ee2c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x58]
and eax, 0x1000
jne 0x47ee2c
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
cmp esi, esp
call fcn.006c7eb0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x47ee2c
call fcn.00439d20
cmp eax, dword [ebp - 0x24]
je 0x47ee2c
call fcn.00439d20
push eax
call fcn.0047f150
add esp, 4
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
cmp esi, esp
call fcn.006c7eb0
test eax, eax
je 0x47ee7f
call fcn.00439d20
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.0047f220
add esp, 8
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
cmp esi, esp
call fcn.006c7eb0
test eax, eax
je 0x47ee7f
call fcn.00439d20
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047f330
mov eax, dword [ebp - 0x30]
push edx
mov ecx, ebp
push eax
lea edx, [0x47eeb4]
call fcn.006c7e50
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x68
cmp ebp, esp
call fcn.006c7eb0
mov esp, ebp
pop ebp
ret 8