Function at 0x5d9660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6df53b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [esi + 0x144]
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0x14c]
movss xmm3, dword [0x738ac0]
movss xmm4, dword [0x738a1c]
cvtsi2ss xmm0, dword [eax + 0xf4]
cvtsi2ss xmm2, dword [ecx + 0xf4]
cvtsi2ss xmm1, dword [edx + 0xf4]
mulss xmm1, xmm3
mulss xmm1, dword [0x738a5c]
mulss xmm0, xmm3
mulss xmm2, xmm3
mulss xmm0, xmm4
subss xmm0, dword [0x738a30]
addss xmm1, xmm4
addss xmm2, xmm4
push str.Window__FALSE_n
lea ecx, [esp + 0x10]
movss dword [esp + 8], xmm1
movss dword [esp + 0xc], xmm2
movss dword [esp + 4], xmm0
call fcn.00626ac0
mov dword [esp + 0x138], 0
mov eax, dword [esi + 0x17c]
mov ecx, dword [esi + 0x164]
mov edx, dword [ecx + eax*8]
push edx
lea eax, [esp + 0x34]
push str.ScreenWidth___d_n
push eax
call fcn.00628520
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.00627180
mov edx, dword [esi + 0x17c]
mov eax, dword [esi + 0x164]
mov ecx, dword [eax + edx*8 + 4]
push ecx
lea edx, [esp + 0x34]
push str.ScreenHeight___d_n
push edx
call fcn.00628520
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call fcn.00627180
mov eax, dword [esi + 0x180]
test eax, eax
mov eax, str.TRUE
jne 0x5d977d
mov eax, str.FALSE
push edi
push eax
lea ecx, [esp + 0x38]
push str.UseHiResTextures___s_n
push ecx
call fcn.00628520
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x14]
call fcn.00627180
fld dword [esp + 8]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x3c]
push str.Gamma___f_n
push eax
call fcn.00628520
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call fcn.00627180
fld dword [esp + 0xc]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x3c]
push str.Contrast___f_n
push edx
call fcn.00628520
add esp, 0x10
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00627180
fld dword [esp + 4]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x3c]
push str.Brightness___f_n
push ecx
call fcn.00628520
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x14]
call fcn.00627180
push 0x70c758
push str.UserVConfig.ini
call fcn.006860d4
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
push edi
push ecx
push 1
push eax
call fcn.006861ee
push edi
call fcn.00686286
mov eax, dword [esi + 0x1a0]
add esp, 0x1c
test eax, eax
jne 0x5d98bb
mov edx, dword [esi + 0x17c]
mov eax, dword [esi + 0x164]
mov ecx, dword [eax + edx*8]
lea eax, [eax + edx*8]
cmp ecx, dword [0x940b3c]
jne 0x5d9877
mov edx, dword [eax + 4]
cmp edx, dword [0x940b40]
je 0x5d98b0
mov eax, dword [esi + 0x17c]
mov ecx, dword [esi + 0x164]
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [0x94056c]
push edx
call fcn.00630bc0
mov edi, dword [0x80ed2c]
add esp, 4
mov eax, edi
call fcn.005c52a0
push edi
call fcn.005c5320
pop ebx
mov eax, dword [esi + 0x180]
mov dword [0x80ede0], eax
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
je 0x5d98db
lea ecx, [eax - 8]
lea edx, [esp + 0x10]
cmp ecx, edx
je 0x5d98db
add eax, 0xfffffff8
push eax
call fcn.0062a450
add esp, 4
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret