Function at 0x417380
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov al, 0x30
push 0x1b
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov byte [esp + 0x34], 0
mov byte [esp + 0x12], 0x42
mov byte [esp + 0x13], 0x4b
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x15], 0x4f
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x435918]
movsx eax, ax
test eax, ecx
je 0x417404
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x43a174]
je 0x41740d
cmp dword [0x43a1b0], 5
jne 0x417454
push 5
push 0x43a1b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0xe]
and esi, 0xff
push 2
push ecx
push esi
call dword [0x44d8e0]
lea edx, [esi*8]
add esp, 0xc
sub edx, esi
lea ecx, [esi + edx*4]
pop esi
pop ebp
pop ebx
mov dword [ecx*4 + 0x44cd08], eax
mov eax, 1
add esp, 0x3c
ret
mov ebx, dword [esp + 0x4c]
lea edx, [esp + 0x10]
and ebx, 0xff
push 2
push edx
push ebx
mov dword [esp + 0x20], ebx
call dword [0x44d8e0]
lea ecx, [ebx*8]
add esp, 0xc
sub ecx, ebx
lea ebp, [ebx + ecx*4]
shl ebp, 2
cmp eax, 1
mov dword [ebp + 0x44cd08], eax
je 0x417499
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
mov edx, dword [0x44d51c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x43a190]
mov dword [0x44ccb4], eax
lea ecx, [esp + 0x18]
add eax, edx
mov esi, 8
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec esi
jne 0x4174bc
mov eax, dword [0x44d51c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x43a180]
mov ecx, dword [0x43a194]
mov edx, dword [0x43a198]
push ecx
test eax, eax
push edx
jne 0x4174ef
push str._08lX_08lX
jmp 0x4174f4
push str._08ld_08ld
lea eax, [esp + 0x40]
push eax
call fcn.0042460f
mov ecx, dword [0x43579c]
add esp, 0x10
add ecx, ecx
xor dl, dl
test ecx, ecx
jle 0x417531
xor eax, eax
neg eax
inc dl
lea esi, [eax + ecx]
mov al, byte [esp + eax + 0x43]
mov byte [esp + 0x4c], dl
mov byte [esp + esi + 0x1f], al
mov eax, dword [esp + 0x4c]
and eax, 0xff
cmp eax, ecx
jl 0x417511
push edi
mov byte [esp + ecx + 0x24], 0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x44cd54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x50], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x43579c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
pop edi
jle 0x4175ff
mov esi, dword [esp + 0x4c]
mov eax, dword [0x43a184]
test eax, eax
jne 0x4175a8
and esi, 0xff
mov cl, byte [esp + esi*2 + 0x20]
push ecx
call fcn.00413030
mov dl, byte [esp + esi*2 + 0x25]
mov ebx, eax
push edx
shl bl, 4
call fcn.00413030
add esp, 8
add bl, al
mov byte [esp + esi + 0x18], bl
jmp 0x4175d8
and esi, 0xff
mov al, byte [esp + esi*2 + 0x20]
push eax
call fcn.00413030
mov cl, byte [esp + esi*2 + 0x25]
mov ebx, eax
push ecx
shl bl, 4
call fcn.00413030
mov edx, dword [0x43579c]
add esp, 8
add bl, al
sub edx, esi
mov byte [esp + edx + 0x17], bl
mov bl, byte [esp + 0x4c]
mov ecx, dword [0x43579c]
inc bl
mov byte [esp + 0x4c], bl
mov esi, dword [esp + 0x4c]
mov eax, esi
and eax, 0xff
cmp eax, ecx
jl 0x417575
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 8
push ecx
push ebx
call dword [0x44d8e0]
add esp, 0xc
cmp eax, 1
mov dword [ebp + 0x44cd08], eax
je 0x417627
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
lea edx, [esp + 0x12]
push 2
push edx
push ebx
call dword [0x44d484]
mov dword [ebp + 0x44cd08], eax
mov al, byte [esp + 0x1e]
add esp, 0xc
mov byte [ebp + 0x44cd53], al
test al, al
je 0x417696
mov eax, dword [0x43a194]
mov ecx, dword [0x4357a4]
cmp eax, ecx
jne 0x41768b
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x43a194
call esi
mov ecx, dword [0x43a198]
mov eax, dword [0x4357a8]
cmp ecx, eax
jne 0x417684
push 0
push 0x43a198
call esi
jmp 0x417696
push 0x43a198
jmp 0x417690
push 0x43a194
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x43a180]
mov edx, dword [0x43a194]
test eax, eax
mov eax, dword [0x43a198]
push edx
push eax
jne 0x4176b3
push str._08lX_08lX
jmp 0x4176b8
push str._08ld_08ld
lea ecx, [esp + 0x40]
push ecx
call fcn.0042460f
mov eax, dword [0x43579c]
add esp, 0x10
xor dl, dl
lea ecx, [eax + eax]
test ecx, ecx
jle 0x4176f5
xor eax, eax
neg eax
inc dl
lea esi, [eax + ecx]
mov al, byte [esp + eax + 0x43]
mov byte [esp + 0x4c], dl
mov byte [esp + esi + 0x1f], al
mov eax, dword [esp + 0x4c]
and eax, 0xff
cmp eax, ecx
jl 0x4176d5
mov edx, dword [0x43a174]
mov byte [esp + ecx + 0x20], 0
lea ecx, [esp + 0x20]
push ecx
push 0x3fb
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x44bfa0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret