Function at 0x5000a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x82
call fcn.004f3670
add esp, 4
cmp dword [0x60285c], 0
je 0x5000d3
mov eax, 1
jmp 0x5003c6
cmp dword [0x602864], 0
jne 0x5000e3
xor eax, eax
jmp 0x5003c6
mov byte [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x500184
push 4
push 0x578dec
mov eax, dword [ebp + 8]
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x500122
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.0046d1b0
add esp, 0xc
jmp 0x500135
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00532590
add esp, 8
lea edx, [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
movsx ecx, byte [eax]
test ecx, ecx
je 0x500184
mov edx, dword [ebp - 0x214]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x50016a
mov ecx, dword [ebp - 0x214]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x500173
mov eax, dword [ebp - 0x214]
mov byte [eax], 0x20
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x500141
cmp dword [ebp + 0xc], 0
je 0x500286
movsx edx, byte [ebp - 0x210]
test edx, edx
je 0x5001c9
lea eax, [ebp - 0x210]
push eax
call fcn.00532e80
add esp, 4
movsx ecx, byte [ebp + eax - 0x211]
cmp ecx, 0x3a
je 0x5001c9
push 0x578df4
lea edx, [ebp - 0x210]
push edx
call fcn.00532590
add esp, 8
movsx eax, byte [ebp - 0x210]
test eax, eax
je 0x500204
lea ecx, [ebp - 0x210]
push ecx
call fcn.00532e80
add esp, 4
movsx edx, byte [ebp + eax - 0x211]
cmp edx, 0x3a
jne 0x500204
push 0x578df8
lea eax, [ebp - 0x210]
push eax
call fcn.00532590
add esp, 8
push 4
push 0x578dfc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x500273
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call fcn.0046d1b0
add esp, 0xc
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
movsx eax, byte [edx]
cmp eax, 0x20
jne 0x50025b
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x50023c
mov edx, dword [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00532590
add esp, 8
jmp 0x500286
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00532590
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x5002fc
movsx eax, byte [ebp - 0x210]
test eax, eax
je 0x5002ab
push 0x578e04
lea ecx, [ebp - 0x210]
push ecx
call fcn.00532590
add esp, 8
push 4
push 0x578e08
mov edx, dword [ebp + 0x10]
push edx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x5002e9
lea eax, [ebp - 0x210]
push eax
call fcn.00532e80
add esp, 4
lea ecx, [ebp + eax - 0x210]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
call fcn.0046d1b0
add esp, 0xc
jmp 0x5002fc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00532590
add esp, 8
movsx edx, byte [ebp - 0x210]
test edx, edx
jne 0x500330
cmp dword [0x5fb6d0], 0
je 0x50031a
mov eax, 1
jmp 0x5003c6
lea eax, [ebp - 0x210]
push eax
push str.MSG_Button_Done
push 0
call fcn.0046d1b0
add esp, 0xc
push 4
push 0x578e20
lea ecx, [ebp - 0x210]
push ecx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x500351
mov eax, 1
jmp 0x5003c6
movsx edx, byte [0x5f6490]
test edx, edx
je 0x500392
lea eax, [ebp - 0x210]
push eax
push 0x5f6490
push str._s__s
lea ecx, [ebp - 0x418]
push ecx
call fcn.00532706
add esp, 0x10
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00532580
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0x401
mov edx, dword [0x602864]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x5003c1
mov byte [0xeae820], 0x1b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret