Function at 0x501890
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x6b7a30]
sub esp, 0x2c
mov ecx, dword [eax]
push ebx
push esi
push edi
xor edi, edi
push 1
push edi
push 0x501ae0
push 4
push eax
call dword [ecx + 0x10]
mov eax, dword [0x6b7a2c]
cmp eax, edi
jne 0x5018bf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov ecx, dword [0x6b7a60]
mov edx, dword [eax]
push 5
push ecx
push eax
call dword [edx + 0x34]
mov esi, eax
cmp esi, edi
je 0x5018f6
push 0x1da
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x5018f6
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
push 0x53d0f4
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
cmp esi, edi
je 0x50192e
push 0x1dd
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x50192e
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
mov ebx, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
je 0x501985
push 0x1e8
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x501985
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], edi
push edx
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
je 0x5019c3
push 0x1ed
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x5019c3
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0xfffffc18
mov dword [esp + 0x34], 0x3e8
mov ecx, dword [eax]
push edx
push 4
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
je 0x501a25
push 0x1f8
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x501a25
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], 0xfffffc18
mov dword [esp + 0x34], 0x3e8
mov ecx, dword [eax]
push edx
push 4
push eax
call dword [ecx + 0x18]
mov esi, eax
cmp esi, edi
je 0x501a8b
push 0x203
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x501a8b
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b7a2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, 0x80070005
jne 0x501ab9
push str.Other_application_has_priority_when_attempting_to_acquire_controller_n
call fcn.004015b0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
cmp esi, edi
je 0x501aad
push 0x209
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, edi
jge 0x501aad
call fcn.005001b0
push esi
call fcn.0052a101
nop
mov edx, dword [esp + 4]
mov eax, dword [0x6b7a30]
sub esp, 0x2c
add edx, 4
mov ecx, dword [eax]
push esi
push 0
push 0x6b7a2c
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x501b0e
mov eax, 1
pop esi
add esp, 0x2c
ret 8
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [0x6b7a2c]
lea edx, [esp + 8]
mov dword [esp + 8], 0x2c
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
pop edi
test esi, esi
je 0x501b5d
push 0x223
push str.C:_backupSpideyPCSpideyPCD3dDXInput.cpp
push esi
call fcn.004fc240
add esp, 0xc
test esi, esi
jge 0x501b5d
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
shr eax, 8
and al, 1
mov dword [0x6b7a58], ecx
mov byte [0x6b7928], al
xor eax, eax
pop esi
add esp, 0x2c
ret 8