Function at 0x59fe70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x164]
push ebp
call fcn.005a1000
test eax, eax
jne 0x59fe9a
mov ecx, esi
call fcn.005d5987
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0
call edi
test ah, 0x80
je case.0x59fed3.69
mov edx, dword [esp + 0x4c]
lea eax, [edx - 0x41]
cmp eax, 0x17
ja case.0x59fed3.69
xor ecx, ecx
mov cl, byte [eax + 0x5a0388]
jmp dword [ecx*4 + 0x5a0374]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd4]
jmp case.0x59fed3.69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
jmp case.0x59fed3.69
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xcc]
jmp case.0x59fed3.69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ecx - 9]
cmp eax, 0x25
mov dword [esp + 0x14], eax
ja case.0x59ff2a.19
xor edx, edx
mov dl, byte [eax + 0x5a03cc]
jmp dword [edx*4 + 0x5a03a0]
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp]
push eax
push ecx
mov ecx, esi
call fcn.005a4ca0
test eax, eax
je 0x5a019e
mov edx, dword [esi + 0x168]
mov eax, dword [ebp]
push 0x1a1fa78
push edx
push eax
mov ecx, esi
call fcn.005a4390
push 0
push ebp
mov ecx, esi
call fcn.005a1070
mov dword [esi + 0x6c], 1
jmp 0x5a019e
push 0x10
call edi
test ah, 0x80
je 0x59ffd0
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x59ff99
dec ecx
mov dword [esp + 0x1c], ecx
jmp 0x5a019e
jne case.0x59ff2a.19
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x94]
cmp ecx, eax
jle case.0x59ff2a.19
mov eax, dword [esi + 0x98]
mov edx, ecx
dec edx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
jmp 0x5a019e
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x59ffe9
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x5a019e
jne case.0x59ff2a.19
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jge case.0x59ff2a.19
inc eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x1c], eax
jmp 0x5a019e
mov ecx, dword [esi + 0x90]
mov eax, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jge 0x5a019e
inc eax
mov dword [esp + 0x18], eax
jmp 0x5a019e
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x94]
cmp edx, eax
jle 0x5a019e
mov eax, edx
dec eax
mov dword [esp + 0x18], eax
jmp 0x5a019e
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x5a019e
mov eax, ecx
inc eax
mov dword [esp + 0x1c], eax
jmp 0x5a019e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x9c]
cmp ecx, eax
jle 0x5a019e
mov eax, ecx
dec eax
mov dword [esp + 0x1c], eax
jmp 0x5a019e
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.005a2730
mov edi, dword [eax]
mov ecx, dword [esi + 0x1c]
push 0
push 3
mov eax, dword [eax + 4]
push 0x115
push ecx
mov dword [esp + 0x3c], eax
call ebx
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.005a2730
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
je 0x5a018a
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0x90]
dec eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
jle 0x5a019e
mov dword [esp + 0x18], eax
jmp 0x5a019e
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.005a2730
mov edi, dword [eax]
mov edx, dword [esi + 0x1c]
push 0
push 2
mov ecx, dword [eax + 4]
push 0x115
push edx
mov dword [esp + 0x3c], ecx
call ebx
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.005a2730
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], edx
je 0x5a0154
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0x94]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x5a019e
mov dword [esp + 0x18], eax
jmp 0x5a019e
mov eax, dword [esi + 0x94]
mov dword [esp + 0x18], eax
jmp 0x5a019e
mov ecx, dword [esi + 0x1c]
push 0
push 6
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x18], edx
jmp 0x5a019e
mov eax, dword [esi + 0x1c]
push 0
push 7
push 0x115
push eax
call ebx
mov eax, dword [esi + 0x90]
dec eax
mov dword [esp + 0x18], eax
jmp 0x5a019e
mov ecx, esi
call fcn.005d5987
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
cmp ecx, eax
jne 0x5a01b8
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
cmp edx, eax
je 0x5a0367
mov eax, dword [esi + 0x140]
xor edi, edi
cmp eax, edi
jne 0x5a026a
mov edx, dword [esi + 0x1a4]
cmp edx, edi
je 0x5a01f2
mov eax, dword [esi + 0x1a8]
cmp eax, edi
jbe 0x5a01f2
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
test eax, eax
je 0x5a01ec
mov eax, dword [eax]
test eax, eax
jne 0x5a01e6
add ecx, 4
dec edi
jne 0x5a01e0
push edx
call fcn.005d3613
mov ecx, dword [esi + 0x1b4]
xor edi, edi
add esp, 4
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1b0], edi
call fcn.005d26bf
mov dword [esi + 0x1b4], edi
mov eax, dword [esi + 0x74]
neg eax
sbb eax, eax
push 0x10
add eax, 4
mov dword [esi + 0x140], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x5a0244
cmp dword [esp + 0x4c], 9
jne 0x5a0258
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.005a1930
mov dword [esi + 0x140], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.005a12f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.005a4cd0
test eax, eax
jne 0x5a0367
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.005a4b70
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
ja case.0x5a02bf.5
xor edx, edx
mov dl, byte [eax + 0x5a040c]
jmp dword [edx*4 + 0x5a03f4]
push edi
push 1
mov eax, dword [esi + 0x1c]
push 0x114
push eax
jmp 0x5a0358
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x114
push ecx
jmp 0x5a0358
push edi
push 1
push 0x115
jmp 0x5a0354
mov eax, dword [esi + 0x1c]
push edi
push edi
push 0x115
push eax
jmp 0x5a0358
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x10]
je 0x5a0330
cmp eax, edi
push edi
push edi
je 0x5a02c9
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0xd8]
push 1
push edx
push edi
mov ecx, esi
call fcn.005a2b50
jmp case.0x5a02bf.5
cmp eax, edi
push edi
push 1
je 0x5a034f
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebx
push 1
push edi
push edi
mov ecx, esi
call fcn.005a2b50
jmp case.0x5a02bf.5
push 0x114
mov edx, dword [esi + 0x1c]
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc