Function at 0x452100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
jne 0x4524ec
cmp dword [ebx + 0x44], 0
jne 0x4524ec
cmp dword [ebx + 0x48], 0
jne 0x4524ec
mov ecx, dword [ebx + 0x263c]
test ecx, ecx
je 0x452145
call fcn.0043bf30
test eax, eax
je 0x452145
mov ecx, dword [ebx + 0x263c]
call fcn.0041e970
mov ecx, dword [ebx + 0xd4]
push esi
push edi
test ecx, ecx
je 0x4521a2
call dword [sym.imp.byondwin.dll_public:_bool___thiscall_CDIJoystick::PollDevice_void_]
xor eax, eax
lea edi, [ebx + 0xd8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
jmp 0x452170
mov ecx, dword [ebx + 0xd4]
push eax
call dword [sym.imp.byondwin.dll_public:_class_Gamepad____thiscall_CDIJoystick::GetPad_int_]
mov ecx, 0x21
lea esi, [eax + 0xb0]
mov eax, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
inc eax
add edi, 0x84
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
cmp eax, 4
jl 0x452170
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, edi
push 0x980003
push 0x103
push 0x102
push 0
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x4521ff
push 0x980003
push 0x107
push 0x106
push eax
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x4521ff
push 0x4070003
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x452226
call sub.mfc120u.dll_Ordinal_2204
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
jne 0x4521b0
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4521b0
push 0x980003
push 0x12
push 0x12
push 0
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x45224f
push 0x980003
push 0x11
push 0x11
push eax
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x452274
call sub.mfc120u.dll_Ordinal_2204
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
jne 0x452274
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, dword [ebx + 0x20d0]
test edi, edi
je 0x4522da
lea esi, [ebx + 0x1ac8]
lea esi, [esi + edi*4]
mov eax, dword [esi - 4]
lea esi, [esi - 4]
dec edi
cmp byte [eax + ebx + 0x72e], 0
jne 0x4522d6
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4522d6
mov ecx, dword [esi]
lea edx, [ebp - 0x5c]
push 1
push 0
push edx
movzx eax, word [ebx + ecx*2 + 0x42c]
and eax, 1
mov dword [ebp - 0x54], ecx
shl eax, 2
lea ecx, [ebx - 4]
or eax, 0x101
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ecx]
call dword [eax + 0x64]
test edi, edi
jne 0x452287
cmp dword [ebx + 0x14b8], 0
je 0x4523c8
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp dword [ebx + 0x14c0], 0
je 0x452358
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebx + 0x20d4]
mov edx, dword [ebp - 0x1c]
sbb edx, dword [ebx + 0x20d8]
call fcn.0045874f
mov ecx, ebx
movsd qword [ebp - 8], xmm0
call dword [sym.imp.byondcore.dll_public:_float___thiscall_DungClient::GetServerTickLag_void_]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.0045874f
movsd qword [ebp - 0x10], xmm0
fmul qword [ebp - 0x10]
movsd xmm0, qword [ebp - 8]
fmul qword [0x46de90]
fstp qword [ebp - 0x10]
comisd xmm0, xmmword [ebp - 0x10]
jb 0x4523c8
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
mov dword [ebx + 0x20d4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x20d8], eax
mov eax, dword [ebx + 0x14b8]
push 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebx - 4]
push 0
push ecx
lea ecx, [ebx - 4]
mov dword [ebx + 0x14c0], 0
mov dword [ebp - 0x58], 0x7ec
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [eax + 0x64]
mov eax, dword [ebx + 0x14bc]
test eax, eax
je 0x4523c8
push 0
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx - 4]
push 0
push ecx
lea ecx, [ebx - 4]
mov dword [ebp - 0x58], 0x7ec
call dword [eax + 0x64]
xor esi, esi
cmp dword [ebx + 0x21bc], esi
jle 0x45247c
xor edi, edi
test esi, esi
js 0x4524f1
cmp esi, dword [ebx + 0x21bc]
jge 0x4524f1
mov eax, dword [ebx + 0x21b8]
mov eax, dword [eax + edi + 8]
cmp eax, 8
je 0x452444
cmp eax, 0xb
jne 0x45246c
cmp esi, dword [ebx + 0x21bc]
jge 0x4524f1
mov eax, dword [ebx + 0x21b8]
mov eax, dword [edi + eax]
test eax, eax
je 0x452433
lea ecx, [eax - 0x5d0]
mov eax, dword [ecx + 0x5d0]
add ecx, 0x5d0
call dword [eax + 0xfc]
jmp 0x45246c
xor ecx, ecx
mov ecx, 0x5d0
mov eax, dword [ecx]
call dword [eax + 0xfc]
jmp 0x45246c
cmp esi, dword [ebx + 0x21bc]
jge 0x4524f1
mov eax, dword [ebx + 0x21b8]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x452465
add ecx, 0xffffff74
jmp 0x452467
xor ecx, ecx
call fcn.00406e60
inc esi
add edi, 0x10
cmp esi, dword [ebx + 0x21bc]
jl 0x4523d8
cmp dword [ebx + 0x25f0], 0
je 0x45248d
mov ecx, ebx
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DungClient::RefreshCursors_void_]
lea esi, [ebx + 0x2138]
mov ecx, esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.byondcore.dll_public:_int___thiscall_Cid::IsNull_void_]
test eax, eax
jne 0x4524df
mov eax, dword [esi]
lea ecx, [ebx]
mov edi, dword [ebx + 0x2140]
mov esi, dword [esi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.byondcore.dll_public:_unsigned_char___thiscall_DungClient::GetCidPointer_struct_Cid__enum_PointerModeEnum__enum_PointerEnum___unsigned_long_int__]
push dword [ebp - 4]
lea ecx, [ebx - 0x9c]
push dword [ebp - 0x14]
push edi
push esi
push dword [ebp - 0x1c]
call fcn.0044f170
lea ecx, [ebx + 0x23d8]
call fcn.0041bb90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.mfc120u.dll_Ordinal_2341
int3