Function at 0x479210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov al, byte [esi + 0x38c]
lea ecx, [esi + 0x38c]
test al, al
jne 0x479501
push ebx
push edi
mov al, 1
xchg byte [ecx], al
mov ecx, esi
call fcn.00479190
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 4
push dword [esi + 4]
call edi
push eax
push dword [esi + 4]
call fcn.004574c0
mov eax, dword [esi + 4]
add esp, 8
cmp byte [esi + 0x38d], 0
mov dword [ebp - 0x40], 0
push 4
push eax
je 0x4793c5
call edi
push 0
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x320
push 0x7d2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esi + 4]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x20], xmm0
xor ebx, ebx
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47938e
nop dword [eax + eax]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x47938e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jne 0x479313
cmp dword [ebp - 0x20], esi
jne 0x479351
mov eax, dword [ebp - 0x18]
push 1
push edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1c]
mov ebx, 1
cmp eax, 0x20a
jne 0x479325
test dword [ebp - 0x18], 8
jne 0x47937b
jmp 0x479351
cmp eax, 0x100
jne 0x479351
cmp dword [ebp - 0x18], 0x74
je 0x47937b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x479351
mov eax, dword [ebp - 0x18]
cmp eax, 0x46
je 0x479375
cmp eax, 0x4f
je 0x479375
cmp eax, 0x50
je 0x479375
lea eax, [ebp - 0x20]
push eax
call fcn.004acc00
add esp, 4
test al, al
jne 0x479375
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x47938e
test ebx, ebx
jne 0x47938e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4792d0
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1c], 0x12
jne 0x4794ed
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call edi
push 1
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.00457ab0
add esp, 4
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esi + 4]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x3c], xmm0
xor ebx, ebx
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4794ce
nop
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4794ce
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jne 0x479453
cmp dword [ebp - 0x3c], esi
jne 0x479491
mov eax, dword [ebp - 0x34]
push 1
push edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x38]
mov ebx, 1
cmp eax, 0x20a
jne 0x479465
test dword [ebp - 0x34], 8
jne 0x4794bb
jmp 0x479491
cmp eax, 0x100
jne 0x479491
cmp dword [ebp - 0x34], 0x74
je 0x4794bb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x479491
mov eax, dword [ebp - 0x34]
cmp eax, 0x46
je 0x4794b5
cmp eax, 0x4f
je 0x4794b5
cmp eax, 0x50
je 0x4794b5
lea eax, [ebp - 0x3c]
push eax
call fcn.004acc00
add esp, 4
test al, al
jne 0x4794b5
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x38], 0x12
je 0x4794ce
test ebx, ebx
jne 0x4794ce
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479410
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x38], 0x12
jne 0x4794ed
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00479190
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [esi + 4]
call fcn.004574c0
add esp, 8
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.00457ab0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret