Function at 0x40ae90
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4babfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor eax, eax
lea edi, [ebp + 0x225]
mov ecx, 0x40
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
lea ebx, [ebp + 0x1c]
mov byte [ebp + 0x24], al
mov dword [ebx], eax
lea eax, [ebp + 0x20]
push 0x114
mov dword [esp + 0x14], eax
mov dword [eax], 0
call fcn.004a98ab
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x40aefe
mov ecx, eax
call fcn.0049e2e0
mov edi, eax
jmp 0x40af00
xor edi, edi
push 1
push str.keycode.cfg
mov dword [esp + 0x2c], 0xffffffff
call fcn.0049c650
add esp, 4
push eax
mov ecx, edi
call fcn.0049e380
test al, al
je 0x40af4c
push 1
push pe_nt_image_headers32
lea esi, [ebp + 0x25]
push esi
mov ecx, edi
call fcn.0049ee10
mov ecx, edi
call fcn.0049e2f0
mov byte [0x4ee69c], 1
mov byte [0x9096b3], 0
jmp 0x40af63
xor eax, eax
lea esi, [ebp + 0x25]
mov byte [esi + eax], al
inc eax
cmp eax, 0x100
jl 0x40af51
mov byte [0x4ee69c], 0
test edi, edi
je 0x40af77
mov ecx, edi
call fcn.0049e2f0
push edi
call fcn.0049fdf6
add esp, 4
lea edi, [ebp + 0x125]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x9096b3]
test al, al
je 0x40b005
mov eax, dword [ebp + 0x940]
push 0
push ebx
push 0x4bc480
push 0x800
push eax
call sub.DINPUT8.dll_DirectInput8Create
test eax, eax
jl 0x40b005
mov eax, dword [ebx]
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push ebx
push 0x4bc460
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40b009
mov eax, dword [ebx]
mov edx, dword [eax]
push 0x4e43ac
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x40b009
mov edx, dword [ebp + 0x93c]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 6
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jl 0x40b009
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x425]
mov byte [ebp + 0x24], 1
rep stosd dword es:[edi], eax
jmp 0x40b009
mov ebx, dword [esp + 0x10]
push 0x14
mov byte [ebp + 0x526], 0
mov byte [ebp + 0x525], 0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and al, 1
mov byte [ebp + 0x527], al
mov byte [ebp + 0x528], 0
mov eax, dword [0x4ee6d8]
cmp dword [eax], 0
je 0x40b053
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40b04e
mov edx, dword [esp + 0x14]
push edx
call ecx
mov eax, dword [0x4ee6d8]
add esp, 4
cmp dword [eax], 0
jne 0x40b05a
mov byte [0x9096c8], 0
mov eax, dword [0x4ee6dc]
test eax, eax
je 0x40b076
mov ecx, dword [eax]
test ecx, ecx
je 0x40b076
test ecx, ecx
je 0x40b076
mov eax, dword [eax + 8]
test eax, eax
je 0x40b076
call eax
mov esi, dword [0x4ee6e0]
test esi, esi
je 0x40b09c
mov eax, dword [esi]
test eax, eax
je 0x40b093
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
push esi
call fcn.0049fdf6
add esp, 4
cmp dword [ebx], 0
je 0x40b1ee
push 0x40
call fcn.004a98ab
mov esi, eax
add esp, 4
test esi, esi
je 0x40b197
push str.keyemudi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40b199
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ked_create
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.ked_create_did8
push eax
call edi
mov ecx, dword [esi]
push str.ked_release
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.ked_reset
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.ked_clear
push eax
call edi
mov ecx, dword [esi]
push str.ked_acquire
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.ked_get
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.ked_setdelay
push eax
call edi
mov ecx, dword [esi]
push str.ked_usemmtimer
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi]
push str.ked_updatecounter
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push str.ked_setconverttable
push eax
call edi
mov ecx, dword [esi]
push str.ked_getconverttable
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi]
push str.ked_getdevicestate
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi]
push str.ked_setnumlock
push eax
call edi
mov ecx, dword [esi]
push str.ked_setkeyboardstate
push ecx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
jmp 0x40b199
xor esi, esi
mov eax, esi
mov dword [0x4ee6e0], eax
cmp dword [esi], 0
je 0x40b1bb
mov esi, dword [esi + 8]
test esi, esi
je 0x40b1bb
mov edx, dword [ebx]
push edx
push 0
call esi
mov eax, dword [0x4ee6e0]
add esp, 8
cmp dword [eax], 0
je 0x40b1ee
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x40b1d3
push 0
call ecx
mov eax, dword [0x4ee6e0]
add esp, 4
cmp dword [eax], 0
je 0x40b1ee
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40b1ee
push 0x4b00000
push 0x2ee00000
call eax
add esp, 8
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret