Function at 0x488810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x734adf
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x8bb040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
lea eax, [ecx + 4]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [eax], 0
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], 4
mov dword [eax + 0x1c], 0xf
mov dword [eax + 8], 0x656e6f4e
mov byte [eax + 0xc], cl
mov dword [ebp - 4], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
lea esi, [eax + 0x48]
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], esi
mov dword [esi], ecx
push 0x24
mov dword [ebp - 0x38], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
call fcn.0073298e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00488bd0
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x30]
push edi
mov dword [esi], 0x77607c
mov dword [esi + 0x6c], 0
call dword [sym.imp.SDL2.dll_SDL_JoystickOpen]
add esp, 4
mov dword [esi + 0x6c], eax
test eax, eax
je 0x488a40
push eax
call dword [sym.imp.SDL2.dll_SDL_JoystickName]
mov edi, eax
push ecx
mov eax, esp
mov ecx, edi
sub esp, 8
mov edx, esp
mov dword [eax], str.XInput_Controller
mov dword [eax + 4], 0x11
lea eax, [ecx + 1]
mov dword [edx], edi
mov dword [ebp - 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488951
sub ecx, dword [ebp - 0x34]
mov dword [edx + 4], ecx
call fcn.00487ca0
add esp, 0x10
mov edx, str.XInput_Controller
test al, al
cmove edx, edi
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea edi, [ecx + 1]
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488990
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004815d0
mov byte [ebp - 4], 6
push dword [esi + 0x6c]
call dword [sym.imp.SDL2.dll_SDL_JoystickNumBalls]
push dword [esi + 0x6c]
call dword [sym.imp.SDL2.dll_SDL_JoystickNumHats]
push dword [esi + 0x6c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.SDL2.dll_SDL_JoystickNumButtons]
push dword [esi + 0x6c]
mov dword [ebp - 0x38], eax
call dword [sym.imp.SDL2.dll_SDL_JoystickNumAxes]
mov ecx, dword [ebp - 0x30]
mov edi, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push dword [ecx + 0x6c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SDL2.dll_SDL_JoystickInstanceID]
add esp, 0x10
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
push esi
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.004baca0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x488a40
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x488a36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x488a36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00732c0f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0073297b
mov esp, ebp
pop ebp
ret 4