Function at 0x493190
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x90]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4931ea
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x12c]
mov dword [ecx], edi
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x12c]
cmp eax, 2
jne 0x493298
mov eax, dword [esp + 0x94]
mov dword [ebx], 2
cmp eax, 4
jae 0x493220
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
jne 0x49329e
mov ebp, dword [esp + 0x128]
push str.DINPUT.DLL
mov dword [ebp], 0x200
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
jne 0x493257
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push str.DirectInputCreateA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, edi
jne 0x493286
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
pop edi
mov dword [ebp], 0x300
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov dword [ebx], 1
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DDRAW.DLL
call ebp
mov esi, eax
cmp esi, edi
jne 0x4932ce
mov eax, dword [esp + 0x128]
push edi
mov dword [eax], edi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectDrawCreate
push esi
call edi
test eax, eax
jne 0x493308
mov ecx, dword [esp + 0x128]
push esi
mov dword [ecx], eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Couldnt_LoadLibrary_DDraw_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 0
push edx
push 0
call eax
test eax, eax
jge 0x493347
mov eax, dword [esp + 0x128]
push esi
mov dword [eax], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ebx, dword [esp + 0x128]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov dword [ebx], 0x100
mov ecx, dword [eax]
push edx
push 0x501710
push eax
call dword [ecx]
test eax, eax
jge 0x493392
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Couldnt_QI_DDraw2_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push str.DINPUT.DLL
mov dword [ebx], 0x200
call ebp
mov ebp, eax
test ebp, ebp
jne 0x4933d6
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push str.DirectInputCreateA
push ebp
call edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
call ebp
test edi, edi
jne 0x493410
push esi
call ebp
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x24]
mov dword [ebx], 0x300
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0x6c
mov dword [esp + 0x28], 1
mov dword [esp + 0x8c], 0x200
mov ecx, dword [eax]
push 8
push 0
push eax
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x10]
jge 0x493479
mov edx, dword [eax]
push eax
call dword [edx + 8]
push esi
call ebp
push str.Couldnt_Set_coop_level_r_n
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push 0
push edx
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x4934b8
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call ebp
push str.Couldnt_CreateSurface_r_n
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x501750
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x4934e7
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov dword [ebx], 0x500
push ecx
mov edx, dword [eax]
push 0x501760
push eax
call dword [edx]
test eax, eax
jge 0x493526
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [ebx], 0x600
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret