Function at 0x572ae0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1d4], 0
jne 0x572dc1
test ebx, ebx
je 0x572dc1
mov esi, dword [0x9c25b0]
cmp dword [esi + 0x24], 0x7530
jne 0x572dc1
mov ecx, dword [0x9c25b4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x276c8]
add ecx, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esi + 0x26f28], ebx
cmp eax, ecx
jbe 0x572dc1
mov eax, dword [esi + 0x1a9c2c]
cvttss2si ecx, dword [edi + 0x28]
cvttss2si edx, dword [edi + 0x2c]
test eax, eax
je 0x572b67
mov edx, dword [esi + 0x1a9c30]
cmove eax, ecx
cvttss2si ecx, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
cvttss2si eax, dword [ebx + 0x2c]
mov dword [esp + 0x20], ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.0049a800
add esp, 4
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x118]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00498290
movzx eax, word [ebx + 0xf4]
lea ecx, [ebx + 0xf4]
mov edx, 0x6bf
add esp, 0x10
cmp ax, dx
jne 0x572bda
mov eax, 0x3e8
cmp word [edi + 0x614], ax
jl 0x572dc1
jmp 0x572c00
mov edx, 0x167
cmp ax, dx
je 0x572dc1
mov edx, 0x6c5
cmp ax, dx
jl 0x572c00
mov edx, 0x6c8
cmp ax, dx
jle 0x572dc1
cmp dword [esp + 0x10], 1
jg 0x572d78
cvttss2si eax, dword [ebx + 0x28]
cmp dword [esp + 0x20], eax
jne 0x572d78
cvttss2si eax, dword [ebx + 0x2c]
cmp dword [esp + 0x14], eax
jne 0x572d78
cvttss2si eax, dword [edi + 0x28]
cmp dword [edi + 0x668], eax
jne 0x572d78
cvttss2si eax, dword [edi + 0x2c]
cmp dword [edi + 0x66c], eax
jne 0x572d78
mov eax, dword [esi + 0x1a9bc0]
mov dl, 0x21
mov dword [esp + 0x10], eax
call fcn.0049aed0
cmp eax, 7
jg 0x572c65
test eax, eax
jns 0x572c67
xor eax, eax
push dword [eax*8 + 0x5f16d4]
mov ecx, dword [esp + 0x14]
push dword [eax*8 + 0x5f16d0]
lea eax, [esp + 0x1c]
push eax
call fcn.004db730
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
jle 0x572dc1
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
jg 0x572cb7
mov dl, 0x26
lea ecx, [ebx + 0xf4]
call fcn.0049aed0
cmp eax, 2
jne 0x572dc1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
movzx eax, word [ebx + 0xf4]
mov dword [esp + 0x10], 0x305
cmp ax, word [esp + 0x10]
je 0x572dc1
mov dword [esp + 0x10], 0x2ea
cmp ax, word [esp + 0x10]
je 0x572dc1
xor eax, eax
mov dword [esp + 0x28], 0
mov word [esp + 0x42], ax
movzx eax, word [edi + 0x20]
mov word [esp + 0x2e], ax
mov eax, 0x270
mov word [esp + 0x2c], ax
movzx eax, word [ebx + 0x20]
mov word [esp + 0x3c], ax
lea eax, [edx + ecx*4]
add eax, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x28]
cvttss2si eax, dword [ebx + 0x28]
mov edx, 0x1c
mov dword [esp + 0x34], 1
mov word [esp + 0x3e], ax
cvttss2si eax, dword [ebx + 0x2c]
mov word [esp + 0x40], ax
call fcn.0054f850
mov eax, dword [esp + 0x24]
mov dword [esi + 0x26f28], 0
mov dword [esi + 0x276b4], eax
mov dword [esi + 0x276c8], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x9d8]
test eax, eax
je 0x572d87
cmp eax, 1
jne 0x572dc1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xffffff00
test cx, ax
jg 0x572dc1
cvttss2si eax, dword [ebx + 0x28]
push 0
push 0
mov ecx, edi
mov dword [esi + 0x27850], eax
cvttss2si eax, dword [ebx + 0x2c]
push eax
push dword [esi + 0x27850]
mov dword [esi + 0x27854], eax
call fcn.00578820
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 4