Function at 0x411be0
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x411c03
mov eax, dword [ecx]
push 1
call dword [eax]
call dword [sym.imp.core.dll_bool___cdecl_UnloadGraphicsAPI_void_]
mov dword [esi + 0x14], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
call sub.DSETUP.dll_Ordinal_11
mov ebp, dword [sym.imp.core.dll_bool___cdecl_LoadGraphicsAPI_char_const__]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x411cc8
cmp word [esp + 0x10], 8
jb 0x411cc8
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ebx, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push ebx
push str.gfx2d_dx8.dll
push str.GraphicsAPI_1
push ecx
call edi
test eax, eax
jne 0x411c61
mov ebx, 0x41e440
push ebx
call ebp
add esp, 4
test al, al
jne 0x411cad
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ebx, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push ebx
push str.gfx2d_dx8.dll
push str.GraphicsAPI_1
push ecx
call edi
test eax, eax
jne 0x411c9a
mov ebx, 0x41e440
push ebx
push str.Failed_to_load_graphics_API:_CFFFF00_sc_f
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 0xc
jmp 0x411cc8
mov eax, dword [sym.imp.core.dll_class_gfxSubsystem_____stdcall___void__gfxCreateGfxSubsystem]
call dword [eax]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00411b30
test al, al
jne 0x411cc8
call dword [sym.imp.core.dll_bool___cdecl_UnloadGraphicsAPI_void_]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x411e28
call dword [sym.imp.core.dll_enum_e_OperatingSystem___cdecl_Platform::GetPlatformOS_void_]
cmp eax, 2
jle 0x411d79
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ebx, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push ebx
push str.gfx2d_ogl.dll
push str.GraphicsAPI_2
push ecx
call edi
test eax, eax
jne 0x411d11
mov ebx, 0x41e440
push ebx
call ebp
add esp, 4
test al, al
jne 0x411d5d
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ebx, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push ebx
push str.gfx2d_ogl.dll
push str.GraphicsAPI_2
push ecx
call edi
test eax, eax
jne 0x411d4a
mov ebx, 0x41e440
push ebx
push str.Failed_to_load_graphics_API:_CFFFF00_sc_f
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 0xc
jmp 0x411d79
mov ecx, dword [sym.imp.core.dll_class_gfxSubsystem_____stdcall___void__gfxCreateGfxSubsystem]
call dword [ecx]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00411b30
test al, al
jne 0x411d79
call dword [sym.imp.core.dll_bool___cdecl_UnloadGraphicsAPI_void_]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x411e28
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ebx, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push ebx
push str.gfx2d_dd7.dll
push str.GraphicsAPI_3
push ecx
call edi
test eax, eax
jne 0x411db3
mov ebx, 0x41e440
push ebx
call ebp
add esp, 4
test al, al
jne 0x411e07
mov esi, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ebx, [esi + 0x1004]
add esi, 4
push esi
push 0x1000
push ebx
push str.gfx2d_dd7.dll
push str.GraphicsAPI_3
push eax
call edi
test eax, eax
jne 0x411dec
mov ebx, 0x41e440
push ebx
push str.Failed_to_load_alt_graphics_API:_CFFFF00_sc_f
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [sym.imp.core.dll_class_gfxSubsystem_____stdcall___void__gfxCreateGfxSubsystem]
call dword [edx]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00411b30
test al, al
jne 0x411e23
call dword [sym.imp.core.dll_bool___cdecl_UnloadGraphicsAPI_void_]
mov eax, dword [esi + 0x14]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 8
ret