Function at 0x4753a0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
and dh, 0xfe
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], edx
jne 0x4753f0
test cl, 1
je 0x475413
test edx, 0x20000
je 0x4753dd
test edx, 0x2000000
jne 0x475431
and edx, 0x400000
je 0x4754a0
xor esi, esi
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
jns 0x4753c1
mov dword [esp + 8], 0x406
mov dword [esp + 4], 0x547980
mov dword [esp], 0x547f0b
call fcn.0049c730
mov edx, dword [ebx + 0x2c]
jmp 0x4753c1
test cl, 0x40
je 0x4753c1
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [ebx + 0x2c], edx
je 0x4753c1
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x4753c1
lea eax, [esp + 0x2c]
lea edx, [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
sub esp, 0x10
test eax, eax
jne 0x4753dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4753df
mov dword [esp], 0x576840
call fcn.0046fc60
mov eax, 2
xchg dword [0x576860], eax
cmp eax, 1
je 0x4754d4
mov dword [esp], 0x576840
call fcn.0046fc20
or dword [ebx + 0x2c], 0x400000
jmp 0x4753dd
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.conout_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
mov edi, eax
je 0x475537
mov dword [esp + 4], 0x576844
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
jne 0x4755f0
mov ecx, 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0xd0001
mov word [esp + 0x2c], cx
mov dword [esp + 4], 0
mov esi, 0xd
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub esp, 8
mov word [esp + 0x38], ax
lea eax, [esp + 0x28]
mov dword [esp + 8], 1
mov word [esp + 0x3a], si
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
sub esp, 0x10
test eax, eax
je 0x4755d0
cmp edi, 0xffffffff
je 0x4754c8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4754c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov ebp, eax
jne 0x47567b
mov esi, eax
test ebp, ebp
jne 0x4753df
jmp 0x4754c8
lock or dword [0x57685c], 1
mov eax, 1
mov word [esp + 0x2c], ax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0xd0001
mov dword [esp + 4], 0
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub esp, 8
mov edx, 0xd
mov word [esp + 0x38], ax
lea eax, [esp + 0x28]
mov dword [esp + 8], 1
mov word [esp + 0x3a], dx
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
sub esp, 0x10
test eax, eax
jne 0x4755b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp], edi
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4755e3