Function at 0x4e54d0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5604c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x88
push esi
push edi
push 0x30
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
call fcn.0055ed3b
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
push eax
push 0x10
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x74], 8
mov dword [ebp - 0x90], 0x3f800000
call fcn.004f77f0
mov dword [ebp - 4], 2
call dword [sym.imp.SDL2.dll_SDL_NumJoysticks]
push 0xc
mov edi, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.0055ed3b
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push eax
push 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x4c], 0x3f800000
call fcn.004f77f0
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], esi
test edi, edi
jle 0x4e5629
nop dword [eax]
push esi
call dword [sym.imp.SDL2.dll_SDL_IsGameController]
add esp, 4
test eax, eax
je 0x4e5621
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004f96c0
mov esi, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, edi
jl 0x4e5600
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x4e578d
nop dword [eax]
mov eax, dword [esi + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.SDL2.dll_SDL_GameControllerOpen]
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4e574a
push eax
call dword [sym.imp.SDL2.dll_SDL_GameControllerName]
mov edx, eax
add esp, 4
lea ecx, [edx + 1]
mov dword [ebp - 0x1c], ecx
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4e56a0
sub edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push edx
push eax
call fcn.004f7570
push dword [ebp - 0x24]
call dword [sym.imp.SDL2.dll_SDL_GameControllerGetJoystick]
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e573e
push eax
call dword [sym.imp.SDL2.dll_SDL_JoystickNumButtons]
mov edx, dword [ebp - 0x54]
mov edi, eax
mov ecx, dword [ebp - 0x58]
add esp, 4
sub edx, ecx
mov dword [ebp - 0x1c], edi
cmp edi, edx
jae 0x4e56e9
add ecx, edi
mov dword [ebp - 0x54], ecx
jmp 0x4e5713
jbe 0x4e5713
mov eax, dword [ebp - 0x50]
sub eax, ecx
cmp edi, eax
jbe 0x4e5700
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.004fab30
jmp 0x4e5713
sub edi, edx
push edi
push 0
push dword [ebp - 0x54]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add dword [ebp - 0x54], edi
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x4e573b
mov esi, dword [ebp - 0x1c]
nop dword [eax]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.SDL2.dll_SDL_JoystickGetButton]
mov ecx, dword [ebp - 0x58]
add esp, 8
mov byte [ecx + edi], al
inc edi
cmp edi, esi
jl 0x4e5720
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.SDL2.dll_SDL_GameControllerClose]
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x90]
call fcn.004f9960
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [eax]
add ecx, 0xc
call fcn.004e5a40
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.004e59a0
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp esi, edi
jne 0x4e5640
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov edi, dword [0x6bb664]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
cmp esi, edi
je 0x4e58a3
movzx eax, byte [esi + 8]
lea edx, [esi + 8]
xor eax, 0x811c9dc5
mov dword [ebp - 0x20], edx
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor eax, ecx
mov dword [ebp - 0x28], ecx
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 2]
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [ebp - 0x4c]
push eax
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.004faac0
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [ebp - 0x14]
jne 0x4e5899
movzx eax, byte [esi + 9]
mov edi, esi
xor eax, dword [ebp - 0x28]
mov edx, dword [0x6bb66c]
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 0xa]
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, dword [0x6bb678]
mov eax, dword [edx + ecx*8]
cmp dword [edx + ecx*8 + 4], esi
jne 0x4e5856
cmp eax, esi
jne 0x4e584d
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*8], eax
mov dword [edx + ecx*8 + 4], eax
jmp 0x4e585f
mov eax, dword [esi + 4]
mov dword [edx + ecx*8 + 4], eax
jmp 0x4e585f
cmp eax, esi
jne 0x4e585f
mov eax, dword [esi]
mov dword [edx + ecx*8], eax
mov esi, dword [edi]
dec dword [0x6bb668]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [eax], esi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
call fcn.004e59a0
push 0x30
push edi
call fcn.0055efc1
mov eax, dword [ebp - 0x48]
add esp, 8
mov edi, dword [0x6bb664]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
jmp 0x4e589b
mov esi, dword [esi]
cmp esi, edi
jne 0x4e57a0
mov edi, dword [ebp - 0x8c]
mov esi, dword [edi]
cmp esi, edi
je 0x4e58d9
nop
lea eax, [esi + 8]
mov ecx, 0x6bb660
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.004f9960
lea ecx, [esi + 0xc]
push ecx
mov ecx, dword [eax]
add ecx, 0xc
call fcn.004e5a40
mov esi, dword [esi]
cmp esi, edi
jne 0x4e58b0
lea ecx, [ebp - 0x4c]
call fcn.004e5910
lea ecx, [ebp - 0x90]
call fcn.004e4fb0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret