Function at 0x47b590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
push 0x5eaaa0
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47b622
mov dword [ebp - 0x18], 0
push str.Couldnt_LoadLibrary_DDraw_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
push str.DirectDrawCreate
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x47b65e
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreate_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
push 0
lea edx, [ebp - 0x20]
push edx
push 0
call dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x47b696
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
mov dword [ebp - 0x18], 0x100
lea ecx, [ebp - 0x24]
push ecx
push 0x5fa148
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x47b6e7
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_QI_DDraw2_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x18], 0x200
push str.DINPUT.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47b73b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
push 0x5eab68
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47b788
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
mov dword [ebp - 0x18], 0x300
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 0x6c
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0xa8], 0x6c
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0x40], 0x200
push 8
push 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x47b814
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0x18], 0
push str.Couldnt_Set_coop_level_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x47b86a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0x18], 0
push str.Couldnt_CreateSurface_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
lea ecx, [ebp - 8]
push ecx
push 0x5fa128
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [eax]
call edx
test eax, eax
jge 0x47b8bd
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_QI_DDS3_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
mov dword [ebp - 0x18], 0x500
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x28]
push ecx
push 0x5fa118
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [eax]
call edx
test eax, eax
jge 0x47b922
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.Couldnt_QI_DDS4_r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
jmp 0x47b956
mov dword [ebp - 0x18], 0x600
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret