Function at 0x56d5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b2cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
mov dword [ebx], vtable.tTVPDirectInputDevice.0
call fcn.0056d260
lea edi, [ebx + 4]
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.tTVPPadDirectInputDevice.0
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebp - 4], 2
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebp - 4], 3
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov ecx, dword [0x77e320]
test ecx, ecx
je 0x56d7e3
cmp dword [0x773158], 1
jne 0x56d7e3
mov eax, dword [ecx]
push 1
push edi
push 0x56d9e0
push 4
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x56d6b0
cmp dword [edi], 0
jne 0x56d6b6
mov dword [edi], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x56d6d9
mov eax, dword [ecx]
push 0x772e50
push ecx
call dword [eax + 0x2c]
test eax, eax
jns 0x56d6d9
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x56d6fa
mov eax, dword [ecx]
push 6
push esi
push ecx
call dword [eax + 0x34]
test eax, eax
jns 0x56d6fa
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x56d7d0
xorps xmm0, xmm0
lea edx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
movq qword [ebp - 0x38], xmm0
movq qword [ebp - 0x30], xmm0
movq qword [ebp - 0x28], xmm0
movq qword [ebp - 0x20], xmm0
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0xffff8000
mov dword [ebp - 0x2c], 0x7fff
mov dword [ebp - 0x18], 0x1388
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ecx]
push 4
push ecx
call dword [eax + 0x18]
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x28]
push eax
push 5
push ecx
call dword [edx + 0x18]
lea edx, [ebp - 0x40]
or esi, eax
mov eax, dword [edi]
push edx
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x38], 4
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x18]
lea edx, [ebp - 0x28]
or esi, eax
mov eax, dword [edi]
push edx
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x18]
or esi, eax
jge 0x56d7d0
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x56d7dc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
mov dword [ebx + 8], 0
cmp dword [0x77e31c], 0
jne 0x56d822
push 0xc
call fcn.006341f8
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x56d817
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x56d819
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x77e31c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], ebx
call fcn.0056e490
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret 4