Function at 0x47cd70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push esi
push edi
mov eax, dword [0x5b7b5c]
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 [0x5ba35c]
test eax, eax
je 0x47cdcc
mov dword [ebp - 0x14], eax
jmp 0x47ceed
cmp edi, 1
jle 0x47ce11
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0xff
jne 0x47cdfa
cmp byte [eax + 1], 0xfe
jne 0x47cdfa
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 0x47d120
cmp cl, 0xfe
jne 0x47ce11
cmp byte [eax + 1], 0xff
jne 0x47ce11
mov dword [ebp - 0x14], 0x4b1
jmp 0x47cf15
cmp edi, 2
jle 0x47ce32
mov eax, dword [ebx]
cmp byte [eax], 0xef
jne 0x47ce32
cmp byte [eax + 1], 0xbb
jne 0x47ce32
cmp byte [eax + 2], 0xbf
jne 0x47ce32
mov dword [ebp - 0x14], 0x104029
jmp 0x47ce73
mov ecx, dword [ebx]
push edi
push ecx
call fcn.0044c0a0
add esp, 8
cmp eax, 1
je 0x47ce6c
mov ecx, dword [0x5ed6f0]
test ecx, ecx
je 0x47ceed
cmp dword [ebp + 0x14], 0
jne 0x47ceed
cmp ecx, 0xfde9
jne 0x47ced2
cmp eax, 0xffffffff
jne 0x47ceed
mov dword [ebp - 0x14], 0xfde9
mov esi, dword [ebp - 0x14]
cmp esi, 0xf4240
jle 0x47ce84
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 0x47d0c1
test edi, edi
jne 0x47d0c1
mov edi, dword [0x5ba340]
test edi, edi
je 0x47cf32
mov ebx, dword [0x5ba33c]
jmp 0x47d03c
cmp ecx, 0x4b0
je 0x47ceed
cmp ecx, 0x4b1
je 0x47ceed
cmp ecx, 0x104029
je 0x47ceed
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x4b0
jne 0x47cf0a
mov ebx, dword [ebx]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp + 0xc], edi
jmp 0x47d120
cmp eax, 0x4b1
jne 0x47ce73
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.0046daf0
add esp, 8
jmp 0x47d120
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47d1a9
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.00402140
add esp, 0xc
cmp dword [0x5ba354], 0
je 0x47cfed
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47d1a9
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.00508953
test eax, eax
je 0x47cfc0
push 0x54c8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401d70
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 0x14]
call fcn.00401fb0
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 0x47cfed
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.0050c485
xor ebx, ebx
mov edi, eax
cmp dword [0x5ba354], ebx
je 0x47d019
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47d019
mov dword [0x5ba340], 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 0x47d03c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 6
jne 0x47d0b2
test ebx, ebx
je 0x47d04d
mov dword [ebp - 0x14], ebx
jmp 0x47ce73
push 0
lea ecx, [ebp - 0x124]
call fcn.004aab10
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 2
mov dword [ebp - 0x58], 1
call fcn.0044c630
cmp eax, 1
jne 0x47d1bd
mov eax, dword [ebp - 0x5c]
cmp eax, 0x186a0
je 0x47d1b3
cmp dword [0x5ba340], 0
mov dword [ebp - 0x14], eax
je 0x47d09b
mov dword [0x5ba33c], eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.00453760
jmp 0x47ce73
cmp edi, 2
je 0x47d1cf
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.004ff95f
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.004ff96a
mov dword [esi], ebx
mov esi, dword [ebp - 0x18]
add esp, 4
mov ecx, 0xfeff
cmp cx, word [ebx]
jne 0x47d131
add ebx, 2
dec edi
mov dword [ebp + 0xc], edi
push 0x5f80
mov dword [ebp - 0x20], edi
mov dword [ebp + 0x14], 0
call fcn.00477ee0
add esp, 4
mov dword [esi + 0x2cc], 0
mov dword [ebp - 0x48], 1
test edi, edi
jne 0x47d1e5
cmp dword [esi + 0x334], edi
je 0x47d171
push edi
mov ecx, esi
call fcn.00472850
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.004d3660
lea edx, [ebp - 0x44]
push edx
mov ecx, esi
call fcn.004729a0
jmp 0x47d4f8
push 0x80004005
call fcn.00401340
mov dword [0x5ba35c], 0x186a0
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.00453760
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.0046d840
add esp, 0xc
mov dword [esi + 0xf4], eax
cmp dword [0x5ed7a0], 0
mov dword [ebp - 0x1c], 0
je 0x47d326
cmp dword [ebp + 8], 0
je 0x47d326
mov esi, dword [0x5ba344]
test esi, esi
jne 0x47d2d8
lea ecx, [ebp + 8]
call fcn.00401d10
push 0x5480
lea ecx, [ebp + 8]
mov dword [ebp - 4], 5
call fcn.00401f80
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47d264
cmp word [esi], 0
je 0x47d264
push 0x5790ec
lea ecx, [ebp + 8]
call fcn.00402270
push esi
lea ecx, [ebp + 8]
call fcn.00402270
cmp dword [0x5ba354], 0
je 0x47d29e
lea ecx, [ebp + 0x10]
call fcn.00401d10
push 0x54c8
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.00401f80
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.00414a70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401b40
mov edx, dword [ebp + 8]
push 0
push 0x23
push edx
call fcn.0050c485
cmp dword [0x5ba354], 0
mov esi, eax
je 0x47d2c9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47d2c9
mov dword [0x5ba344], esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401b40
cmp esi, 2
jne 0x47d2e9
mov dword [ebp - 0x48], 0
jmp 0x47d4f3
cmp esi, 6
jne 0x47d323
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call fcn.0046d8e0
add esp, 0xc
test eax, eax
je 0x47d30f
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 0x47d326
mov esi, dword [ebp - 0x18]
cmp dword [esi + 0x334], 0
je 0x47d338
push 0
mov ecx, esi
call fcn.00472850
test edi, edi
jle 0x47d4ac
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 0x47d383
lea eax, [edx + 0xa]
nop
cmp word [ebx + esi*2], 0xd
jne 0x47d36e
cmp word [ebx + esi*2 + 2], ax
je 0x47d376
cmp esi, edi
jge 0x47d3b9
add esi, ecx
jmp 0x47d360
cmp esi, edi
jge 0x47d3b9
mov dword [ebp + 0xc], 2
jmp 0x47d3b9
cmp eax, edx
jne 0x47d39f
cmp word [ebx], 0xa
je 0x47d3b2
lea ecx, [ecx]
cmp esi, edi
jge 0x47d3b9
add esi, ecx
cmp word [ebx + esi*2], 0xa
jne 0x47d390
jmp 0x47d3b2
cmp word [ebx], 0xd
je 0x47d3b2
cmp esi, edi
jge 0x47d3b9
add esi, ecx
cmp word [ebx + esi*2], 0xd
jne 0x47d3a5
cmp esi, edi
jge 0x47d3b9
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 0x47d421
lea edx, [esi + 1]
push edx
push ebx
push 0
call fcn.004d36b0
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.004ff96a
mov ecx, dword [ebp - 0x24]
xor esi, esi
push ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.004ff96a
add esp, 8
mov dword [ebp - 0x24], esi
jmp 0x47d429
xor eax, eax
push eax
call fcn.004d3660
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
push edx
call fcn.004729a0
test edi, edi
jle 0x47d440
mov dword [ebp + 8], 1
mov eax, dword [ebp + 0xc]
sub edi, eax
lea ebx, [ebx + eax*2]
test edi, edi
jg 0x47d456
cmp dword [ebp + 8], 0
je 0x47d4e7
mov eax, dword [ebp + 0x14]
mov ecx, eax
inc eax
cmp ecx, 0xc8
mov dword [ebp + 0x14], eax
jle 0x47d4a4
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 0x47d48b
mov eax, 0x63
jmp 0x47d498
mov edx, dword [ebp - 0x20]
push edx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [0x5ed0c0]
push eax
call fcn.00461a60
test edi, edi
jg 0x47d340
xor eax, eax
cmp dword [ebp + 8], eax
je 0x47d4e7
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.004d3660
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x44]
push eax
call fcn.004729a0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ff96a
add esp, 4
mov esi, dword [ebp - 0x18]
xor edi, edi
mov ecx, dword [0x5ed0c0]
push 0x64
call fcn.00461a60
mov ecx, dword [0x5ed0c0]
call fcn.00462f90
cmp dword [esi + 0x78], edi
jne 0x47d51d
cmp dword [esi + 0x84], edi
je 0x47d524
mov ecx, esi
call fcn.004727d0
mov ecx, dword [0x5ed0c0]
mov ebx, 1
cmp dword [ecx + 0x1824], ebx
jne 0x47d5a3
push edi
call fcn.0050c645
cmp eax, edi
je 0x47d5a3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x144]
call eax
cmp eax, esi
jne 0x47d5a3
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 0x47d590
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0xf4]
push edi
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 0x2e8]
push edx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0048b410
mov edx, dword [0x5ed0c0]
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 + 0x2cc], 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