Function at 0x402850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call esi
push 0x10
mov di, ax
call esi
and edi, eax
and edi, 0x8000
call fcn.00403a00
mov esi, dword [esp + 0x14]
mov dword [esi], eax
call fcn.00403a00
mov dword [esi + 4], eax
call fcn.00403a00
mov dword [esi + 8], eax
call fcn.00403a00
mov dword [esi + 0xc], eax
mov eax, dword [esi]
xor ebx, ebx
mov ebp, 0x64
mov dword [esi + 0x10], ebx
mov byte [eax + 0x2c], 8
mov ecx, dword [esi]
mov eax, 0xffffff80
cmp edi, ebx
mov dword [ecx + 0x24], 0x10
mov edx, dword [esi]
mov dword [edx + 0x44], 0x708
mov ecx, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi]
mov dword [edx + 4], eax
mov ecx, dword [esi]
mov dword [ecx + 8], eax
mov edx, dword [esi]
mov eax, 0xc0
mov dword [edx + 0xc], eax
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov dword [eax + 0x18], ebx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], ebp
mov edx, dword [esi]
mov dword [edx + 0x20], 0xc8
mov eax, dword [esi]
mov dword [eax + 0x28], 0x459c4000
je 0x402900
call fcn.00402af0
jmp 0x402905
call fcn.00402d00
mov dword [0x4509b4], eax
mov ecx, dword [esi]
mov dword [ecx + 0x30], eax
mov edx, dword [esi]
mov dword [edx + 0x38], 0x41000000
mov eax, dword [esi]
mov byte [eax + 0x2e], 0x10
mov ecx, dword [esi + 4]
mov byte [ecx + 0x2c], 8
mov edx, dword [esi + 4]
mov dword [edx + 0x24], 8
mov eax, dword [esi + 4]
mov dword [eax + 0x44], ebp
mov ecx, dword [esi + 4]
mov dword [ecx], ebx
mov edx, dword [esi + 4]
mov dword [edx + 4], ebx
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], 0x78
mov edx, dword [esi + 4]
mov dword [edx + 0x10], 0x14
mov eax, dword [esi + 4]
mov dword [eax + 0x14], 0xb4
mov ecx, dword [esi + 4]
mov eax, 0x60
mov dword [ecx + 0x18], ebx
mov edx, dword [esi + 4]
mov ecx, 0x40
mov dword [edx + 0x1c], ecx
mov edx, dword [esi + 4]
mov dword [edx + 0x20], eax
mov edx, dword [esi + 8]
mov byte [edx + 0x2c], 8
mov edx, dword [esi + 8]
mov dword [edx + 0x24], 8
mov edx, dword [esi + 8]
mov dword [edx + 0x44], ebp
mov edx, dword [esi + 8]
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov dword [edx + 4], ebx
mov edx, dword [esi + 8]
mov dword [edx + 8], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0xc], 0xb4
mov edx, dword [esi + 8]
mov dword [edx + 0x10], 0x78
mov edx, dword [esi + 8]
mov dword [edx + 0x14], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x18], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esi + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0xc]
mov eax, 1
mov byte [edx + 0x2c], 8
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x24], eax
mov edx, dword [esi + 0xc]
mov dword [edx + 0x44], eax
mov eax, dword [esi + 0xc]
mov dword [eax], ebx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 4], ebx
mov edx, dword [esi + 0xc]
mov dword [edx + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [eax + 0xc], ebx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x10], ebx
mov edx, dword [esi + 0xc]
mov dword [edx + 0x14], ebx
mov eax, dword [esi + 0xc]
mov dword [eax + 0x18], ebx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1c], ebx
mov edx, dword [esi + 0xc]
cmp edi, ebx
mov dword [edx + 0x20], ebx
je 0x402a2c
call fcn.00402d00
jmp 0x402a31
call fcn.00402af0
mov dword [0x4508e0], eax
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x30], eax
mov edx, dword [esi + 0xc]
mov dword [edx + 0x38], 0x3fb33333
mov eax, dword [esi + 0xc]
mov byte [eax + 0x2e], 0x10
mov ecx, dword [esi]
push ecx
call fcn.00403aa0
mov edx, dword [esi + 4]
push edx
call fcn.00403aa0
mov eax, dword [esi + 8]
push eax
call fcn.00403aa0
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00403aa0
mov ebp, dword [esp + 0x28]
push esi
mov ecx, 0xc0
xor eax, eax
mov edi, ebp
push 0xff
push 2
push ebp
rep stosd dword es:[edi], eax
call fcn.00403fb0
mov byte [ebp + 2], bl
mov byte [ebp + 1], bl
mov byte [ebp], bl
mov byte [ebp + 5], 0xff
mov byte [ebp + 4], 0xff
mov byte [ebp + 3], 0xff
mov edx, dword [esi]
push 0xff
push ebx
push ebp
push edx
call fcn.00403b00
mov eax, dword [esi + 4]
push 0xff
push ebx
push ebp
push eax
call fcn.00403b00
mov ecx, dword [esi + 8]
add esp, 0x40
push 0xff
push ebx
push ebp
push ecx
call fcn.00403b00
mov edx, dword [esi + 0xc]
push 0xff
push ebx
push ebp
push edx
call fcn.00403b00
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
ret