Function at 0x433190
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 + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4331ec
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 8
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x12c]
cmp eax, 2
jne 0x4332a6
mov eax, dword [esp + 0x94]
mov dword [ebx], 2
cmp eax, 4
jae 0x433224
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8
jne 0x4332ac
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 0x433261
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 8
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 0x433292
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 8
pop edi
mov dword [ebp], 0x300
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8
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 0x4332de
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 8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectDrawCreate
push esi
call edi
test eax, eax
jne 0x43331a
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 8
lea edx, [esp + 0x10]
push 0
push edx
push 0
call eax
test eax, eax
jge 0x43335b
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 8
mov ebx, dword [esp + 0x128]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov dword [ebx], 0x100
mov ecx, dword [eax]
push edx
push 0x43ed60
push eax
call dword [ecx]
test eax, eax
jge 0x4333a8
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 8
mov eax, dword [esp + 0x18]
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 0x4333ee
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 8
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 0x43342a
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 8
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 0x433495
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 8
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 0x4334d6
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 8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x43eda0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x433507
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 8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [ebx], 0x500
push edx
mov ecx, dword [eax]
push 0x43edb0
push eax
call dword [ecx]
test eax, eax
jl 0x433534
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 8