Function at 0x439a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x549e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, edx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
sub eax, 0x501
je 0x439c6f
sub eax, 0x64
je 0x439c62
sub eax, 0x12e
je 0x439a57
push dword [ebp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0041cda0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esi + 0x1970]
cmp ecx, eax
jne 0x439afd
mov edi, dword [ebp + 0x10]
test edi, edi
js 0x439d9a
cmp dword [esi + 0x29fc], 0
jne 0x439d9a
push 6
push edi
lea ecx, [esi + 0x19b0]
call fcn.004150b0
push eax
push 1
call dword [sym.imp.Engine.dll_int___cdecl_KSG_StringGetValue_int__int__int_]
add esp, 0xc
cmp eax, 1
jne 0x439ac4
push 0x10
push 0
push 0x270f
push 0x100
push esi
push 0x51f5b1
push 0x5236e0
push 0
call fcn.00449ef0
add esp, 0x20
jmp 0x439d9a
push 1
push edi
lea ecx, [esi + 0x19b0]
call fcn.004150b0
push eax
push 4
call dword [sym.imp.Engine.dll_int___cdecl_KSG_StringGetValue_int__int__int_]
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 0
push 2
push eax
push 4
call esi
add esp, 0x2c
push 1
jmp 0x439d8c
lea eax, [esi + 0x1ee4]
cmp ecx, eax
jne 0x439bce
mov edi, dword [ebp + 0x10]
test edi, edi
js 0x439d9a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [esi + 0x1f24]
test ax, ax
jns 0x439b45
push edi
call fcn.004150b0
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 0
jmp 0x439d80
push 1
push 0x20
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00415040
xor ecx, ecx
test eax, eax
js 0x439d9a
cmp eax, 0x20
jae 0x439daf
mov byte [ebp + eax - 0x24], cl
test eax, eax
jle 0x439d9a
cmp byte [ebp + ecx - 0x24], 0x20
je 0x439b80
inc ecx
cmp ecx, eax
jl 0x439b72
jmp 0x439b8e
cmp ecx, 0x20
jae 0x439daf
mov byte [ebp + ecx - 0x24], 0
test ecx, ecx
jle 0x439d9a
mov eax, dword [0x552628]
test eax, eax
je 0x439bb9
lea ecx, [ebp - 0x24]
add eax, 0x47fc
push ecx
push eax
call fcn.004eff0a
add esp, 8
test eax, eax
je 0x439d9a
push 1
lea eax, [ebp - 0x24]
push eax
push 0
call fcn.0045e320
add esp, 0xc
jmp 0x439d9a
lea eax, [esi + 0x2458]
cmp ecx, eax
jne 0x439d9a
cmp dword [esi + 0x29f0], 2
jne 0x439d9a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [esi + 0x2498]
test ax, ax
jns 0x439c1a
push dword [ebp + 0x10]
call fcn.004150b0
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 1
jmp 0x439d80
push 1
push 0x20
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x10]
call fcn.00415040
mov eax, dword [0x552628]
test eax, eax
je 0x439c4d
lea ecx, [ebp - 0x44]
add eax, 0x47fc
push ecx
push eax
call fcn.004eff0a
add esp, 8
test eax, eax
je 0x439d9a
push 1
lea eax, [ebp - 0x44]
push eax
push 0
call fcn.0045e320
add esp, 0xc
jmp 0x439d9a
push ecx
mov ecx, esi
call fcn.00439100
jmp 0x439d9a
cmp ecx, 0x100
jne 0x439ccc
mov eax, dword [esi + 0x1a1c]
test eax, eax
js 0x439d9a
cmp dword [esi + 0x29fc], 0
jne 0x439d9a
push 1
push eax
lea ecx, [esi + 0x19b0]
call fcn.004150b0
push eax
push 4
call dword [sym.imp.Engine.dll_int___cdecl_KSG_StringGetValue_int__int__int_]
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push dword [ebp + 0x10]
push 2
push eax
push 4
call esi
add esp, 0x2c
push 1
jmp 0x439d8c
cmp ecx, 0x200
jne 0x439cf9
cmp dword [esi + 0x29f0], 2
jne 0x439d9a
push dword [ebp + 0x10]
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push 1
push 0
push 4
call esi
push 2
jmp 0x439d80
cmp ecx, 0x400
jne 0x439d2c
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x439d9a
cmp dword [esi + 0x29f0], 2
jne 0x439d9a
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 3
jmp 0x439d80
cmp ecx, 0x800
jne 0x439d57
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x439d9a
cmp dword [esi + 0x29f0], 1
jne 0x439d9a
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 4
jmp 0x439d80
cmp ecx, 0x120
jne 0x439d9a
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x439d9a
cmp dword [esi + 0x29f0], 1
jne 0x439d9a
mov esi, dword [sym.imp.Engine.dll_int___cdecl_KSG_StringSetValue_int__int__int__int_]
push eax
push 1
push 0
push 4
call esi
push 5
push 2
push eax
push 4
call esi
add esp, 0x20
push 0
mov ecx, dword [0x54d3c4]
push eax
push 0x3a
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
call fcn.0048a8c5
int3