Function at 0x508321
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x20a
jne 0x5082ad
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
test eax, eax
je 0x5082ad
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434650
test eax, eax
je 0x5082ad
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.004323e0
mov eax, 1
jmp 0x508577
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0x100
jne case.0x508421.1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl case.0x50831a.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl case.0x50831a.1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
test eax, eax
je case.0x50831a.1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0xd
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x1b
ja case.0x50831a.1
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x50858c]
jmp dword [eax*4 + 0x508580]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434650
test eax, eax
jne case.0x50831a.0
jmp case.0x50831a.1
mov ecx, dword [ebp - 4]
call fcn.00435df0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434650
test eax, eax
je 0x508383
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.004323e0
jmp 0x5083f1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00432360
test eax, eax
je 0x5083f1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x74]
add eax, 0xb8
push eax
mov ecx, dword [ebp - 4]
call fcn.00423cf0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00432330
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x74]
mov ecx, dword [eax + 0x20]
and ecx, 0xffff
movzx edx, cx
push edx
push 0x111
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00432360
mov ecx, eax
call fcn.00432430
mov eax, 1
jmp 0x508577
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1f
ja case.0x508421.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x5085b8]
jmp dword [edx*4 + 0x5085a8]
mov ecx, dword [ebp - 4]
call fcn.00433300
test eax, eax
je 0x508472
push 0x5ba
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarcomboboxbutton.cpp
mov ecx, dword [ebp - 4]
call fcn.00433300
push eax
call fcn.004581f0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
call fcn.00433300
mov ecx, eax
call fcn.004330c0
mov ecx, eax
call fcn.00435df0
mov eax, 1
jmp 0x508577
jmp case.0x508421.1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
test eax, eax
je 0x50849a
push 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434470
mov ecx, dword [ebp - 4]
call fcn.00426e50
test eax, eax
je 0x5084bf
mov ecx, dword [ebp - 4]
call fcn.00426e50
mov ecx, eax
call fcn.00435df0
mov eax, 1
jmp 0x508577
jmp case.0x508421.1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl case.0x508421.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl case.0x508421.1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x74]
call fcn.005fee60
test eax, eax
je case.0x508421.1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434650
test eax, eax
jne 0x508564
push 1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00434470
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00433300
test eax, eax
je 0x508564
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
add ecx, 0x90
call fcn.00430b10
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x74]
call fcn.005fee60
mov ecx, eax
call fcn.00433300
mov ecx, eax
call fcn.00432b90
mov eax, 1
jmp 0x508577
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00423b70
mov esp, ebp
pop ebp
ret 4