Function at 0x41b904
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffef0
mov esi, eax
xor eax, eax
mov edi, edx
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
xor ecx, ecx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 0xc], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x41b94c
xor ecx, ecx
mov dword [esi], ecx
xor eax, eax
mov dword [edi], eax
jmp 0x41bc17
mov edx, dword [esp + 0x20]
cmp edx, 2
jne 0x41b9db
mov dword [edi], 2
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jae 0x41b971
xor eax, eax
mov dword [edi], eax
jmp 0x41bc17
mov edx, dword [esp + 0x14]
cmp edx, 4
jne 0x41b9d0
mov dword [esi], pe_nt_image_headers32
push 0x50a540
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x41b99f
push 0x50a54b
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
push 0x50a569
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov ebp, eax
push edi
call sub.KERNEL32.DLL_FreeLibrary
test ebp, ebp
jne 0x41b9c5
push 0x50a57c
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
mov dword [esi], 0x300
jmp 0x41bc17
mov dword [esi], 0x501
jmp 0x41bc17
mov dword [edi], 1
mov eax, dword [esp + 0x1c]
and eax, 0xffff
cmp eax, 0x549
jbe 0x41b9fc
mov dword [esi], 0x501
jmp 0x41bc17
push str.DDRAW.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x41ba1f
xor eax, eax
xor edx, edx
mov dword [esi], eax
mov dword [edi], edx
push ebx
call sub.KERNEL32.DLL_FreeLibrary
jmp 0x41bc17
push str.DirectDrawCreate
push ebx
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
jne 0x41ba4b
xor ecx, ecx
xor eax, eax
mov dword [esi], ecx
mov dword [edi], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary
push str.Couldnt_LoadLibrary_DDraw_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
push 0
lea edx, [esp + 4]
push edx
push 0
call eax
test eax, eax
jge 0x41ba77
xor ecx, ecx
xor eax, eax
mov dword [esi], ecx
mov dword [edi], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary
push str.Couldnt_create_DDraw_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
mov dword [esi], 0x100
lea edx, [esp + 4]
push edx
push 0x515008
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x41bab2
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
push str.Couldnt_QI_DDraw2_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi], pe_nt_image_headers32
push str.DINPUT.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x41baf0
push str.Couldnt_LoadLibrary_DInput_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
jmp 0x41bc17
push str.DirectInputCreateA
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov ebp, eax
push edi
call sub.KERNEL32.DLL_FreeLibrary
test ebp, ebp
jne 0x41bb25
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push str.Couldnt_GetProcAddress_DInputCreate_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
mov dword [esi], 0x300
push 0x6c
push 0
lea ecx, [esp + 0xac]
push ecx
call fcn.004bfc04
add esp, 0xc
mov dword [esp + 0xa4], 0x6c
mov dword [esp + 0xa8], 1
mov dword [esp + 0x10c], pe_nt_image_headers32
push 8
push 0
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
test eax, eax
jge 0x41bb94
mov ecx, dword [esp]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [esi], edx
push str.Couldnt_Set_coop_level_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
push 0
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0xac]
push eax
mov edx, dword [esp + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
test eax, eax
jge 0x41bbd0
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
xor ecx, ecx
mov dword [esi], ecx
push str.Couldnt_CreateSurface_r_n
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x41bc17
lea eax, [esp + 0xc]
push eax
push 0x514ff8
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jge 0x41bbf8
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
jmp 0x41bc17
mov dword [esi], 0x500
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
push ebx
call sub.KERNEL32.DLL_FreeLibrary
add esp, 0x110
pop ebp
pop edi
pop esi
pop ebx
ret