Function at 0x457120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e083d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x64e2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movss xmm0, dword [esi + 0x8b0]
addss xmm0, dword [0x5eeac0]
comiss xmm0, dword [0x5eeb28]
movss dword [esi + 0x8b0], xmm0
jb 0x457175
mov dword [esi + 0x8b0], 0x40000000
lea edi, [esi + 0xe8]
push edi
call fcn.004601d0
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4576d4
cmp byte [esi + 0x7a4], 0
jne 0x4576db
cmp byte [esi + 0x9b2], 0
lea ebx, [esi + 0x7d8]
mov byte [esi + 0x7a4], 1
mov byte [esi + 0x9b6], 1
je 0x457473
lea eax, [esi + 0x8d0]
xor edi, edi
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
mov ecx, dword [ebx]
mov edx, dword [esi + 0xe8]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x457310
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x457310
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0xec]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x457310
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x457310
cmp byte [esi + edi + 0x8b4], 0
je 0x457310
xor al, al
cmp dword [esi + 0x9b8], edi
jne 0x45722e
mov al, 1
mov byte [esi + 0x9b2], 0
cmp dword [esi + 0x9bc], edi
jne 0x45723f
mov al, 1
mov byte [esi + 0x9b2], 0
cmp dword [esi + 0x9c0], edi
jne 0x457250
mov al, 1
mov byte [esi + 0x9b2], 0
cmp byte [esi + 0x9b0], 1
mov dword [esi + 0x9a8], edi
mov byte [esi + 0x9b1], 0
jne 0x457302
test al, al
jne 0x457302
mov eax, dword [esi + 0x9ac]
mov byte [esi + eax + 0x8cc], 1
mov ecx, dword [esi + 0x9ac]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0x930], eax
mov eax, dword [esi + 0x9ac]
mov byte [eax + esi + 0x9b3], 1
mov eax, dword [esi + 0x9ac]
mov byte [esi + 0x9b2], 0
mov dword [esi + eax*4 + 0x9b8], edi
call fcn.00436e40
push 0
sub esp, 8
mov ecx, esp
mov dword [ecx], str.Asset_Sounds_equipChange.wav
mov dword [ecx + 4], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.004710a0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x457302
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x457302
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x457302
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esi + 0x9b0], 0
mov byte [esi + 0x9b6], 0
add dword [ebp - 0x10], 4
inc edi
add ebx, 8
cmp edi, 0x18
jl 0x4571d0
lea eax, [esi + 0x9b8]
xor ebx, ebx
lea edi, [esi + 0x898]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov ecx, dword [edi]
mov edx, dword [esi + 0xe8]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x45745a
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x45745a
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xec]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x45745a
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x45745a
mov ecx, dword [esi + 0x9a8]
xor al, al
cmp dword [esi + 0x9b8], ecx
jne 0x45738b
mov al, 1
mov byte [esi + 0x9b2], 0
cmp dword [esi + 0x9bc], ecx
jne 0x45739c
mov al, 1
mov byte [esi + 0x9b2], 0
cmp dword [esi + 0x9c0], ecx
jne 0x4573ad
mov al, 1
mov byte [esi + 0x9b2], 0
cmp byte [esi + 0x9b0], 0
mov dword [esi + 0x9ac], ebx
jne 0x45744c
test al, al
jne 0x45744c
mov ecx, dword [ebp - 0x18]
mov byte [esi + ebx + 0x8cc], 1
mov eax, dword [esi + 0x9a8]
mov eax, dword [esi + eax*4 + 0x8d0]
mov dword [ecx - 0x88], eax
mov byte [esi + ebx + 0x9b3], 1
mov eax, dword [esi + 0x9a8]
mov byte [esi + 0x9b2], 0
mov dword [ecx], eax
call fcn.00436e40
push 0
sub esp, 8
mov ecx, esp
mov dword [ecx], str.Asset_Sounds_equipChange.wav
mov dword [ecx + 4], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004710a0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x457449
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x457449
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x457449
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov byte [esi + 0x9b1], 1
mov byte [esi + 0x9b6], 0
add dword [ebp - 0x18], 4
inc ebx
add edi, 8
mov dword [ebp - 0x10], edi
cmp ebx, 3
jl 0x457335
jmp 0x4575b6
mov edx, dword [edi]
xor ecx, ecx
mov edi, dword [ebx]
lea eax, [edi - 0x23]
cmp edx, eax
jle 0x4574c0
lea eax, [edi + 0x23]
cmp edx, eax
jge 0x4574c0
mov edi, dword [ebx + 4]
lea eax, [edi - 0x23]
cmp dword [esi + 0xec], eax
jle 0x4574c0
lea eax, [edi + 0x23]
cmp dword [esi + 0xec], eax
jge 0x4574c0
cmp byte [esi + ecx + 0x8b4], 0
je 0x4574c0
mov dword [esi + 0x9a8], ecx
mov word [esi + 0x9b1], 0x100
mov byte [esi + 0x9b6], 0
inc ecx
add ebx, 8
cmp ecx, 0x18
jl 0x457477
mov ecx, dword [esi + 0x898]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x457518
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x457518
mov ecx, dword [esi + 0x89c]
mov edi, dword [esi + 0xec]
lea eax, [ecx - 0x23]
cmp edi, eax
jle 0x457518
lea eax, [ecx + 0x23]
cmp edi, eax
jge 0x457518
mov dword [esi + 0x9ac], 0
mov word [esi + 0x9b0], 0x101
mov byte [esi + 0x9b2], 1
mov byte [esi + 0x9b6], 0
mov ecx, dword [esi + 0x8a0]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x457567
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x457567
mov ecx, dword [esi + 0x8a4]
mov edi, dword [esi + 0xec]
lea eax, [ecx - 0x23]
cmp edi, eax
jle 0x457567
lea eax, [ecx + 0x23]
cmp edi, eax
jge 0x457567
mov dword [esi + 0x9ac], 1
mov word [esi + 0x9b0], 0x101
mov byte [esi + 0x9b2], 1
mov byte [esi + 0x9b6], 0
mov ecx, dword [esi + 0x8a8]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x4575b6
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x4575b6
mov ecx, dword [esi + 0x8ac]
mov edx, dword [esi + 0xec]
lea eax, [ecx - 0x23]
cmp edx, eax
jle 0x4575b6
lea eax, [ecx + 0x23]
cmp edx, eax
jge 0x4575b6
mov dword [esi + 0x9ac], 2
mov word [esi + 0x9b0], 0x101
mov byte [esi + 0x9b2], 1
mov byte [esi + 0x9b6], 0
cmp byte [esi + 0x9b6], 0
je 0x4575c6
mov byte [esi + 0x9b2], 0
mov dword [esi + 0xf0], 0
lea edi, [esi + 0x930]
mov dword [esi + 0xf8], 0
xor ebx, ebx
mov dword [esi + 0xf4], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
cmp byte [esi + ebx + 0x9b3], 0
je case.default.0x457632
xor edx, edx
lea ecx, [esi + 0x93c]
xor eax, eax
cmp dword [esi + ebx*4 + 0x9b8], eax
jne 0x457622
mov edx, dword [ecx]
mov dword [edi + 0x6c], edx
inc eax
add ecx, 4
cmp eax, 0x18
jl 0x457614
mov eax, dword [edi]
cmp eax, 4
ja case.default.0x457632
jmp dword [eax*4 + 0x45772c]
add dword [esi + 0xf0], edx
jmp case.default.0x457632
add dword [esi + 0xf4], edx
jmp case.default.0x457632
add dword [esi + 0xf8], edx
jmp case.default.0x457632
add dword [esi + 0xfc], edx
jmp case.default.0x457632
add dword [esi + 0x100], edx
inc ebx
add edi, 4
cmp ebx, 3
jl 0x457600
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x110]
push eax
call fcn.0043b4d0
push dword [esi + 0x100]
mov ecx, dword [eax]
push dword [esi + 0xfc]
mov dword [ebp - 4], 0
push dword [esi + 0xf8]
push dword [esi + 0xf4]
push dword [esi + 0xf0]
call fcn.0045c9b0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4576db
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4576db
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4576db
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4576db
mov byte [esi + 0x7a4], 0
push 0x51
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x457711
cmp byte [esi + 0x9c8], 0
jne 0x457718
mov ecx, esi
mov byte [esi + 0x9c8], 1
call fcn.00457740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x9c8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret