Function at 0x457610
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x114
push ebx
push esi
push edi
push ebp
xor edi, edi
lea eax, [esp + 0x90]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x94], 0x94
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x457667
mov esi, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
mov dword [esi], edi
mov dword [ebp], edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x12c]
cmp eax, 2
jne 0x4577a4
mov eax, dword [esp + 0x94]
mov dword [ebp], 2
cmp eax, 4
jae 0x4576a3
mov dword [ebp], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0x128]
jne 0x457793
push str.DINPUT.DLL
mov dword [esi], 0x200
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x4576dd
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
push str.DirectInputCreateA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
test ebx, ebx
jne 0x45770e
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
push 0
mov dword [esi], 0x300
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x555958
push 1
push 0
push 0x555978
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x457754
test edi, edi
je 0x457a65
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x1c]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
test edi, edi
je 0x457768
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00457a70
test eax, eax
je 0x457782
pop ebp
mov dword [esi], 0x501
pop edi
pop esi
pop ebx
add esp, 0x114
ret
pop ebp
mov dword [esi], 0x500
pop edi
pop esi
pop ebx
add esp, 0x114
ret
pop ebp
mov dword [esi], 0x501
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x9c]
mov dword [ebp], 1
and eax, 0xffff
cmp eax, 0x549
jbe 0x4577d7
mov esi, dword [esp + 0x128]
pop ebp
pop edi
nop
mov dword [esi], 0x501
pop esi
pop ebx
add esp, 0x114
ret
push str.DDRAW.DLL
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov ebx, eax
test ebx, ebx
jne 0x457812
mov esi, dword [esp + 0x128]
push ebx
mov dword [esi], 0
mov dword [ebp], 0
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
push str.DirectDrawCreate
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x457855
mov esi, dword [esp + 0x128]
push ebx
mov dword [esi], 0
mov dword [ebp], 0
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
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, 0x114
ret
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
call eax
mov esi, dword [esp + 0x128]
test eax, eax
jge 0x457897
push ebx
mov dword [esi], 0
mov dword [ebp], 0
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
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, 0x114
ret
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
mov dword [esi], 0x100
push 0x555fb8
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
jge 0x4578db
mov eax, dword [esp + 0x10]
push eax
mov ebp, dword [eax]
call dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Couldnt_QI_DDraw2_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x18]
push eax
mov ebp, dword [eax]
call dword [ebp + 8]
push str.DINPUT.DLL
mov dword [esi], 0x200
call edi
mov ebp, eax
test ebp, ebp
jne 0x45791f
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
mov ebp, dword [eax]
call dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
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 0x45795f
push ebx
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, 0x114
ret
lea edi, [esp + 0x24]
xor eax, eax
mov ecx, 0x1b
mov dword [esi], 0x300
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], 0x6c
mov dword [esp + 0x28], 1
mov dword [esp + 0x8c], 0x200
push 8
push eax
mov eax, dword [esp + 0x18]
push eax
mov edi, dword [eax]
call dword [edi + 0x50]
test eax, eax
jge 0x4579c7
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [eax]
call dword [edi + 8]
push ebx
call ebp
push str.Couldnt_Set_coop_level_r_n
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push eax
mov edx, dword [esp + 0x18]
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
test eax, eax
jge 0x457a0a
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [eax]
call dword [edi + 8]
push ebx
call ebp
push str.Couldnt_CreateSurface_r_n
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push 0x555fa8
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x457a39
mov eax, dword [esp + 0x10]
push eax
mov esi, dword [eax]
call dword [esi + 8]
push ebx
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
call fcn.00457a70
test eax, eax
mov dword [esi], 0x501
jne 0x457a4e
mov dword [esi], 0x500
mov eax, dword [esp + 0x14]
push eax
mov esi, dword [eax]
call dword [esi + 8]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret