Function at 0x427aa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], esi
push ebp
lea eax, [esp + 0x8c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x90], 0x94
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x427af6
mov ebx, dword [esp + 0x124]
mov edi, dword [esp + 0x128]
pop ebp
mov dword [ebx], esi
mov dword [edi], esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x128]
cmp eax, 2
jne 0x427bbb
mov eax, dword [esp + 0x90]
mov dword [edi], 2
cmp eax, 4
jae 0x427b30
pop ebp
mov dword [edi], 0
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov ebx, dword [esp + 0x124]
jne 0x427baa
push str.DINPUT.DLL
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx], 0x200
call ebp
mov esi, eax
test esi, esi
jne 0x427b68
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push str.DirectInputCreateA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
test edi, edi
jne 0x427b99
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
pop ebp
mov dword [ebx], 0x300
pop edi
pop esi
pop ebx
add esp, 0x110
ret
pop ebp
mov dword [ebx], 0x501
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x98]
mov dword [edi], 1
and eax, 0xffff
cmp eax, 0x549
jbe 0x427bec
mov ebx, dword [esp + 0x124]
pop ebp
pop edi
pop esi
mov dword [ebx], 0x501
pop ebx
add esp, 0x110
ret
push str.DDRAW.DLL
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebp
mov esi, eax
test esi, esi
jne 0x427c26
mov ebx, dword [esp + 0x124]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx], 0
mov dword [edi], 0
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push str.DirectDrawCreate
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x427c68
mov ebx, dword [esp + 0x124]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx], 0
mov dword [edi], 0
call ebp
push str.Couldnt_LoadLibrary_DDraw_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
call eax
mov ebx, dword [esp + 0x124]
test eax, eax
jge 0x427ca9
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx], 0
mov dword [edi], 0
call ebp
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
mov dword [ebx], 0x100
push 0x4d6860
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
jge 0x427cef
mov eax, dword [esp + 0x10]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
push str.Couldnt_QI_DDraw2_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x18]
push eax
mov edi, dword [eax]
call dword [edi + 8]
push str.DINPUT.DLL
mov dword [ebx], 0x200
call ebp
mov ebp, eax
test ebp, ebp
jne 0x427d35
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push str.DirectInputCreateA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
test edi, edi
jne 0x427d75
push esi
call ebp
mov eax, dword [esp + 0x10]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
push str.Couldnt_GetProcAddress_DInputCreate_r_n
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea edi, [esp + 0x20]
xor eax, eax
mov ecx, 0x1b
mov dword [ebx], 0x300
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0x6c
mov dword [esp + 0x24], 1
mov dword [esp + 0x88], 0x200
push 8
push eax
mov eax, dword [esp + 0x18]
push eax
mov edi, dword [eax]
call dword [edi + 0x50]
test eax, eax
jge 0x427ddd
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [eax]
call dword [edi + 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push eax
mov edx, dword [esp + 0x18]
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
test eax, eax
jge 0x427e20
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [eax]
call dword [edi + 8]
push esi
call ebp
push str.Couldnt_CreateSurface_r_n
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push 0x4d6890
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x427e4f
mov eax, dword [esp + 0x10]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x14]
mov dword [ebx], 0x500
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push esi
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret