Function at 0x4fde90
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov eax, ebp
push edi
and eax, 1
push 0x3f800000
mov dword [0x6b78f4], eax
mov dword [0x6b58d0], esi
call fcn.00432550
mov ecx, dword [0x562d60]
push ecx
call fcn.00505c00
mov eax, dword [0x6b78f8]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x4fded3
and ebp, 0xfffffffd
push esi
call fcn.004fedd0
push ebp
call fcn.004fe1b0
add esp, 8
test al, al
jne 0x4fdf12
mov edi, dword [0x6b78ec]
push 1
call fcn.004fd850
push esi
mov dword [0x6b78ec], 0x10
call fcn.004fedd0
push ebp
call fcn.004fe1b0
add esp, 0xc
mov dword [0x6b78ec], edi
cmp dword [0x6b78f8], ebx
jne 0x4fdf22
cmp dword [0x6b790c], ebx
jne 0x4fdf25
and ebp, 0xfffffffd
push ebx
push 0x6b7920
push 0x53c9c8
call sub.DSOUND.dll_DirectSoundCreate8
test eax, eax
je 0x4fdf44
mov dword [0x6b7920], ebx
jmp 0x4fe0cf
mov eax, dword [0x6b7920]
push 3
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
cmp eax, ebx
je 0x4fdff3
push 0x4fa
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push eax
call fcn.004fc630
add esp, 0xc
call fcn.00503af0
mov eax, dword [0x6b7920]
cmp eax, ebx
je 0x4fe0cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, eax
cmp edi, ebx
je 0x4fdf39
push 0x4db
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push edi
call fcn.004fc630
add esp, 0xc
cmp edi, ebx
jge 0x4fdf39
call fcn.005027a0
push 1
call fcn.004fd850
add esp, 4
call fcn.005000f0
mov eax, dword [0x6b7924]
cmp eax, ebx
je 0x4fe0c4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, eax
cmp esi, ebx
je 0x4fe0be
push 0x4c5
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, ebx
jge 0x4fe0be
jmp 0x4fe0b3
mov ecx, 0x18
xor eax, eax
mov edi, 0x6b5870
push 0x6b5870
rep stosd dword es:[edi], eax
mov eax, dword [0x6b7920]
mov dword [0x6b5870], 0x60
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
cmp eax, ebx
je 0x4fe0ca
push 0x508
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push eax
call fcn.004fc630
add esp, 0xc
call fcn.00503af0
mov eax, dword [0x6b7920]
cmp eax, ebx
je 0x4fe0cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, eax
cmp edi, ebx
je 0x4fdf39
push 0x4db
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push edi
call fcn.004fc630
add esp, 0xc
cmp edi, ebx
jge 0x4fdf39
call fcn.005027a0
push 1
call fcn.004fd850
add esp, 4
call fcn.005000f0
mov eax, dword [0x6b7924]
cmp eax, ebx
je 0x4fe0c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, eax
cmp esi, ebx
je 0x4fe0be
push 0x4c5
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, ebx
jge 0x4fe0be
call fcn.005001b0
push esi
call fcn.0052a101
mov dword [0x6b7924], ebx
push edi
call fcn.0052a101
call fcn.005039f0
mov edx, dword [esp + 0x18]
push ebx
push 0x6b7924
push 0x53ca98
push 0x800
push edx
call sub.DINPUT8.dll_DirectInput8Create
mov edi, eax
cmp edi, ebx
je 0x4fe1a2
push 0x4b4
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push edi
call fcn.004fc240
add esp, 0xc
cmp edi, ebx
jge 0x4fe1a2
call fcn.005027a0
push 1
call fcn.004fd850
add esp, 4
call fcn.00503af0
mov eax, dword [0x6b7920]
cmp eax, ebx
je 0x4fe15f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, eax
cmp esi, ebx
je 0x4fe159
push 0x4db
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push esi
call fcn.004fc630
add esp, 0xc
cmp esi, ebx
jge 0x4fe159
call fcn.005001b0
push esi
call fcn.0052a101
mov dword [0x6b7920], ebx
mov eax, dword [0x6b7924]
cmp eax, ebx
je 0x4fe19c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, eax
cmp esi, ebx
je 0x4fe196
push 0x4c5
push str.C:_backupSpideyPCSpideyPCD3dDXinit.cpp
push esi
call fcn.004fc240
add esp, 0xc
cmp esi, ebx
jge 0x4fe196
call fcn.005001b0
push esi
call fcn.0052a101
mov dword [0x6b7924], ebx
push edi
call fcn.0052a101
push ebp
call fcn.00502220
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret