Function at 0x5f0ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x725810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov dword [esp + 0xc], ecx
push edi
lea ecx, [esp + 0x18]
call fcn.005b3190
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0
call fcn.005e6750
mov bl, 1
push str.Width
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], bl
call fcn.005e5a90
push str.Graphics_Options
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 2
call fcn.005e5a90
push str.._swkotor.ini
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 3
call fcn.005e5a90
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 4
call fcn.005e67c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 3
call fcn.005e5c20
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 2
call fcn.005e5c20
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], bl
call fcn.005e5c20
lea ecx, [esp + 0x18]
call fcn.005e5630
mov edi, dword [ebp + 8]
push str.Height
lea ecx, [esp + 0x24]
mov dword [edi], eax
call fcn.005e5a90
push str.Graphics_Options
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 5
call fcn.005e5a90
push str.._swkotor.ini
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 6
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 7
call fcn.005e67c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call fcn.005e5c20
mov byte [esp + 0x44], 5
lea ecx, [esp + 0x28]
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call fcn.005e5c20
lea ecx, [esp + 0x18]
call fcn.005e5630
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
push str.AllowHighMonitorFrequency
lea ecx, [esp + 0x24]
mov byte [eax], 0x20
call fcn.005e5a90
push str.Graphics_Options
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 8
call fcn.005e5a90
push str.._swkotor.ini
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 9
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xa
call fcn.005e67c0
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x44], 9
call fcn.005e5c20
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 8
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call fcn.005e5c20
test esi, esi
je 0x5f0ee9
lea ecx, [esp + 0x18]
call fcn.005e5630
mov edx, dword [esp + 0x10]
neg eax
sbb eax, eax
neg eax
mov dword [edx + 0x4c0], eax
jmp 0x5f0ef7
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c0], 0
push str.RefreshRate
lea ecx, [esp + 0x24]
call fcn.005e5a90
push str.Graphics_Options
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0xb
call fcn.005e5a90
push str.._swkotor.ini
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0xc
call fcn.005e5a90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xd
call fcn.005e67c0
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x44], 0xc
call fcn.005e5c20
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0xb
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call fcn.005e5c20
test esi, esi
je 0x5f0f91
lea ecx, [esp + 0x18]
call fcn.005e5630
mov esi, dword [ebp + 0x14]
mov dword [0x78d1dc], eax
mov dword [esi], eax
jmp 0x5f0f9c
mov esi, dword [ebp + 0x14]
mov edx, dword [0x78d1dc]
mov dword [esi], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edi]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005f0c60
test eax, eax
jne 0x5f0fbe
mov dword [edi], 0x320
mov dword [edx], 0x258
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x20
je 0x5f0fc9
mov byte [eax], 0x20
cmp dword [esi], 0x3c
jae 0x5f0fd4
mov dword [esi], 0x3c
mov eax, dword [ecx + 0x4c0]
test eax, eax
jne 0x5f0fe9
cmp dword [esi], 0x55
jbe 0x5f0fe9
mov dword [esi], 0x3c
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.005e67e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10