Function at 0x477170
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xa8], eax
test edi, edi
jne 0x4771a7
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x64
lea ecx, [ebp - 0xa0]
push 0
push ecx
call fcn.0042e03c
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
add esp, 0xc
test byte [edi], 8
je 0x477275
push 0
call ebx
push eax
push 0
push 0x11
call esi
push 0x19
lea edx, [ebp - 0x28]
push edx
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0x18
lea ecx, [ebp - 0x27]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x47723a
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
lea edx, [ebp - 0x28]
call fcn.0049ec80
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x477272
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
mov edx, 0x4b9c90
call fcn.0049ec80
mov edi, dword [ebp - 0xc]
test byte [edi], 0x10
je 0x477322
push 0
call ebx
push eax
push 0
push 0x12
call esi
push 0x19
lea edx, [ebp - 0x28]
push edx
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0x18
lea ecx, [ebp - 0x27]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x4772e7
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
lea edx, [ebp - 0x28]
call fcn.0049ec80
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x47731f
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
mov edx, 0x4b9c94
call fcn.0049ec80
mov edi, dword [ebp - 0xc]
test byte [edi], 4
je 0x4773cf
push 0
call ebx
push eax
push 0
push 0x10
call esi
push 0x19
lea edx, [ebp - 0x28]
push edx
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0x18
lea ecx, [ebp - 0x27]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x477394
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
lea edx, [ebp - 0x28]
call fcn.0049ec80
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x4773cc
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
mov edx, 0x4b9c98
call fcn.0049ec80
mov edi, dword [ebp - 0xc]
test byte [edi], 1
je 0x477425
movzx esi, word [edi + 2]
lea edx, [ebp - 0x3c]
push 0x14
push edx
call fcn.00474850
add esp, 8
test eax, eax
je 0x477473
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0x13
lea ecx, [ebp - 0x3b]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x477473
lea edx, [ebp - 0x3c]
jmp 0x47745a
movzx edx, word [edi + 2]
push edx
push 0x4b9c9c
lea eax, [ebp - 0xc]
push 5
push eax
call fcn.004010b0
add esp, 0x10
lea edi, [ebp - 0xa4]
mov ecx, 0x64
lea edx, [ebp - 0xa0]
call fcn.0049ee50
test eax, eax
js 0x477473
lea edx, [ebp - 0xc]
mov ecx, dword [ebp - 0xa4]
mov eax, 0x64
sub eax, ecx
lea ecx, [ebp + ecx - 0xa0]
call fcn.0049ec80
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
test eax, eax
je 0x477494
cmp eax, 0x7fffffff
ja 0x477494
mov ecx, dword [ebp - 0xa8]
lea edx, [ebp - 0xa0]
call fcn.004a0810
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret