Function at 0x47d870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5630ab
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push ebx
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5ba28c]
test eax, eax
je 0x47d8cc
mov dword [ebp - 0x14], eax
jmp 0x47d9ed
cmp edi, 1
jle 0x47d911
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0xff
jne 0x47d8fa
cmp byte [eax + 1], 0xfe
jne 0x47d8fa
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], 0x4b0
mov dword [ebp + 0xc], edi
jmp 0x47dc20
cmp cl, 0xfe
jne 0x47d911
cmp byte [eax + 1], 0xff
jne 0x47d911
mov dword [ebp - 0x14], 0x4b1
jmp 0x47da15
cmp edi, 2
jle 0x47d932
mov eax, dword [ebx]
cmp byte [eax], 0xef
jne 0x47d932
cmp byte [eax + 1], 0xbb
jne 0x47d932
cmp byte [eax + 2], 0xbf
jne 0x47d932
mov dword [ebp - 0x14], 0x104029
jmp 0x47d973
mov ecx, dword [ebx]
push edi
push ecx
call fcn.0044e3e0
add esp, 8
cmp eax, 1
je 0x47d96c
mov ecx, dword [0x5ed680]
test ecx, ecx
je 0x47d9ed
cmp dword [ebp + 0x14], 0
jne 0x47d9ed
cmp ecx, 0xfde9
jne 0x47d9d2
cmp eax, 0xffffffff
jne 0x47d9ed
mov dword [ebp - 0x14], 0xfde9
mov esi, dword [ebp - 0x14]
cmp esi, 0xf4240
jle 0x47d984
add esi, 0xfff0bdc0
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edx]
push 0
mov eax, esi
sub eax, 0xfde9
push 0
neg eax
push ebx
sbb eax, eax
push ecx
and eax, 8
push eax
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test ebx, ebx
jle 0x47dbc1
test edi, edi
jne 0x47dbc1
mov edi, dword [0x5ba270]
test edi, edi
je 0x47da32
mov ebx, dword [0x5ba26c]
jmp 0x47db3c
cmp ecx, 0x4b0
je 0x47d9ed
cmp ecx, 0x4b1
je 0x47d9ed
cmp ecx, 0x104029
je 0x47d9ed
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x4b0
jne 0x47da0a
mov ebx, dword [ebx]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp + 0xc], edi
jmp 0x47dc20
cmp eax, 0x4b1
jne 0x47d973
mov ebx, dword [ebx]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push edi
push ebx
mov dword [ebp + 0xc], edi
call fcn.0046e9e0
add esp, 8
jmp 0x47dc20
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47dca9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0x14]
push 0x54b5
push edx
mov dword [ebp - 4], 0
call fcn.00402170
add esp, 0xc
cmp dword [0x5ba284], 0
je 0x47daed
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47dca9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
push 0x54c8
mov byte [ebp - 4], 1
call fcn.00508284
test eax, eax
je 0x47dac0
push 0x54c8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401da0
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 0x14]
call fcn.00401fe0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47daed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0x14]
push 0
push 0x23
push esi
call fcn.0050bda7
xor ebx, ebx
mov edi, eax
cmp dword [0x5ba284], ebx
je 0x47db19
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47db19
mov dword [0x5ba270], edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47db3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 6
jne 0x47dbb2
test ebx, ebx
je 0x47db4d
mov dword [ebp - 0x14], ebx
jmp 0x47d973
push 0
lea ecx, [ebp - 0x120]
call fcn.004aaa10
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 2
mov dword [ebp - 0x54], 1
call fcn.0044e7f0
cmp eax, 1
jne 0x47dcbd
mov eax, dword [ebp - 0x58]
cmp eax, 0x186a0
je 0x47dcb3
cmp dword [0x5ba270], 0
mov dword [ebp - 0x14], eax
je 0x47db9b
mov dword [0x5ba26c], eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.004528d0
jmp 0x47d973
cmp edi, 2
je 0x47dccf
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
mov dword [ebp - 4], 3
neg ecx
or ecx, eax
push ecx
call fcn.004ff272
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add esp, 4
push edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push edx
push 0
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov edi, eax
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, dword [esi]
push eax
mov dword [ebp + 0xc], edi
call fcn.004ff267
mov dword [esi], ebx
mov esi, dword [ebp - 0x18]
add esp, 4
mov ecx, 0xfeff
cmp cx, word [ebx]
jne 0x47dc31
add ebx, 2
dec edi
mov dword [ebp + 0xc], edi
push 0x5f80
mov dword [ebp - 0x20], edi
mov dword [ebp + 0x14], 0
call fcn.00478950
add esp, 4
mov dword [esi + 0x2b4], 0
mov dword [ebp - 0x48], 1
test edi, edi
jne 0x47dce5
cmp dword [esi + 0x31c], edi
je 0x47dc71
push edi
mov ecx, esi
call fcn.00473880
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call fcn.004d3fa0
lea edx, [ebp - 0x44]
push edx
mov ecx, esi
call fcn.004739d0
jmp 0x47dff8
push 0x80004005
call fcn.00401350
mov dword [0x5ba28c], 0x186a0
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.004528d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 8]
push eax
push edi
push ebx
call fcn.0046e710
add esp, 0xc
mov dword [esi + 0xf4], eax
cmp dword [0x5ed730], 0
mov dword [ebp - 0x1c], 0
je 0x47de26
cmp dword [ebp + 8], 0
je 0x47de26
mov esi, dword [0x5ba274]
test esi, esi
jne 0x47ddd8
lea ecx, [ebp + 8]
call fcn.00401d40
push 0x5480
lea ecx, [ebp + 8]
mov dword [ebp - 4], 5
call fcn.00401fb0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47dd64
cmp word [esi], 0
je 0x47dd64
push 0x579154
lea ecx, [ebp + 8]
call fcn.004022a0
push esi
lea ecx, [ebp + 8]
call fcn.004022a0
cmp dword [0x5ba284], 0
je 0x47dd9e
lea ecx, [ebp + 0x10]
call fcn.00401d40
push 0x54c8
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.00401fb0
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.00414960
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401b70
mov edx, dword [ebp + 8]
push 0
push 0x23
push edx
call fcn.0050bda7
cmp dword [0x5ba284], 0
mov esi, eax
je 0x47ddc9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47ddc9
mov dword [0x5ba274], esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401b70
cmp esi, 2
jne 0x47dde9
mov dword [ebp - 0x48], 0
jmp 0x47dff3
cmp esi, 6
jne 0x47de23
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call fcn.0046e7d0
add esp, 0xc
test eax, eax
je 0x47de0f
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [edx], 1
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov dword [eax + 0xf4], 1
mov esi, eax
jmp 0x47de26
mov esi, dword [ebp - 0x18]
cmp dword [esi + 0x31c], 0
je 0x47de38
push 0
mov ecx, esi
call fcn.00473880
test edi, edi
jle 0x47dfac
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xf4]
xor edx, edx
mov ecx, 1
xor esi, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
cmp eax, ecx
jne 0x47de83
lea eax, [edx + 0xa]
nop
cmp word [ebx + esi*2], 0xd
jne 0x47de6e
cmp word [ebx + esi*2 + 2], ax
je 0x47de76
cmp esi, edi
jge 0x47deb9
add esi, ecx
jmp 0x47de60
cmp esi, edi
jge 0x47deb9
mov dword [ebp + 0xc], 2
jmp 0x47deb9
cmp eax, edx
jne 0x47de9f
cmp word [ebx], 0xa
je 0x47deb2
lea ecx, [ecx]
cmp esi, edi
jge 0x47deb9
add esi, ecx
cmp word [ebx + esi*2], 0xa
jne 0x47de90
jmp 0x47deb2
cmp word [ebx], 0xd
je 0x47deb2
cmp esi, edi
jge 0x47deb9
add esi, ecx
cmp word [ebx + esi*2], 0xd
jne 0x47dea5
cmp esi, edi
jge 0x47deb9
mov dword [ebp + 0xc], ecx
cmp esi, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x44]
jle 0x47df21
lea edx, [esi + 1]
push edx
push ebx
push 0
call fcn.004d3ff0
mov edx, dword [ebp - 0x3c]
lea eax, [esi + esi]
xor ecx, ecx
add ebx, eax
mov word [eax + edx], cx
mov eax, dword [ebp - 0x2c]
push eax
sub edi, esi
call fcn.004ff267
mov ecx, dword [ebp - 0x24]
xor esi, esi
push ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.004ff267
add esp, 8
mov dword [ebp - 0x24], esi
jmp 0x47df29
xor eax, eax
push eax
call fcn.004d3fa0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
push edx
call fcn.004739d0
test edi, edi
jle 0x47df40
mov dword [ebp + 8], 1
mov eax, dword [ebp + 0xc]
sub edi, eax
lea ebx, [ebx + eax*2]
test edi, edi
jg 0x47df56
cmp dword [ebp + 8], 0
je 0x47dfe7
mov eax, dword [ebp + 0x14]
mov ecx, eax
inc eax
cmp ecx, 0xc8
mov dword [ebp + 0x14], eax
jle 0x47dfa4
mov eax, dword [ebp - 0x20]
push eax
mov esi, eax
push 0x64
sub esi, edi
push esi
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0x63
jle 0x47df8b
mov eax, 0x63
jmp 0x47df98
mov edx, dword [ebp - 0x20]
push edx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [0x5ed04c]
push eax
call fcn.004629e0
test edi, edi
jg 0x47de40
xor eax, eax
cmp dword [ebp + 8], eax
je 0x47dfe7
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.004d3fa0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x44]
push eax
call fcn.004739d0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ff267
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov ecx, dword [0x5ed04c]
push 0x64
call fcn.004629e0
mov ecx, dword [0x5ed04c]
call fcn.00463c50
cmp dword [esi + 0x78], edi
jne 0x47e01d
cmp dword [esi + 0x84], edi
je 0x47e024
mov ecx, esi
call fcn.00473800
mov ecx, dword [0x5ed04c]
mov ebx, 1
cmp dword [ecx + 0x1748], ebx
jne 0x47e0a3
push edi
call fcn.0050bf67
cmp eax, edi
je 0x47e0a3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x144]
call eax
cmp eax, esi
jne 0x47e0a3
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x64]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call edx
cmp eax, edi
je 0x47e090
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0xf4]
push edi
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 0x2d0]
push edx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0048ad20
mov edx, dword [0x5ed04c]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x2b4], ebx
mov dword [esi + 0xf8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14