Function at 0x4b6990
Capabilities:
Access peb ldr_data
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x515c86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x5594e8]
xor eax, dword [esp + 0x128]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x60]
push 0x5245f0
mov dword [esp + 0x12c], eax
mov dword [esp + 0x28], esi
mov dword [esi], fcn.004abd30
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov byte [esi + 0x28], 0
mov byte [esi + 0x29], 0
mov byte [esi + 0x2b], 0
mov byte [esi + 0x2d], 0
mov byte [esi + 0x2e], 0
mov byte [esi + 0x2f], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov dword [esi + 0x58], edi
mov byte [esi + 0x5c], 0
call fcn.00402110
lea ecx, [esi + 0x64]
push 0x5245f0
mov dword [esp + 0x138], edi
call fcn.00402110
push str.Starting...
push str.UveGraphics::UveGraphics
push ecx
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov eax, dword [0x55cd0c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
mov byte [esp + 0x144], 1
mov dword [eax + 0x868], esi
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
lea eax, [esp + 0x24]
push eax
mov dword [esi + 0x38], 0x320
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x154], 2
call fcn.0041b800
mov edx, dword [eax]
add esp, 0x20
mov ecx, esi
call fcn.004abd30
push edx
mov edx, dword [esi + 0x38]
lea edi, [eax + 4]
mov eax, dword [edi]
push edx
push str.fovWidth
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6aef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 3
call fcn.00401f80
lea edx, [esp + 0x1c]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x150], 4
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x1c
push eax
push ebp
push str.fovWidth
push ecx
call ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x134], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6bc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6be7
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x3c], 0x258
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 5
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x3c]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.fovHeight
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6c49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6c6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 6
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 7
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push str.fovHeight
push ecx
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6d18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6d3b
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x40], 0x320
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 8
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x40]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.screenWidth
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x40]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 9
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 0xa
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push str.screenWidth
push ecx
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6e46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6e6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6e8f
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x44], 0x258
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0xb
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x44]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.screenHeight
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6ef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6f17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x44]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 0xc
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 0xd
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push str.screenHeight
push ecx
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b6fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b6fe3
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x48], 0x20
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0xe
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x48]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push 0x53c678
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b706b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x48]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 0xf
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 0x10
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push 0x53c678
push ecx
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b70ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b7137
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x4c], 0x20
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x11
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x4c]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.textureBPP
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b71bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x4c]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
push ecx
mov byte [esp + 0x140], 0x12
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 0x13
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push str.textureBPP
push ecx
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b728b
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov dword [esp + 0x18], 0x3f000000
mov ecx, dword [esp + 0x18]
lea ebp, [esi + 0x1c]
mov dword [esp + 0x1c], 0xbf000000
mov edx, dword [esp + 0x1c]
mov eax, ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov dword [eax + 8], ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x144], 0x14
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.texelAlignment.x
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
jle 0x4b7369
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push 0x538958
push ecx
call fcn.004edd07
fld qword [esp + 0x24]
fstp dword [ebp]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x144], 0x15
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.texelAlignment.y
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b73ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b73f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
jle 0x4b7416
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push 0x538958
push ecx
call fcn.004edd07
fld qword [esp + 0x24]
fstp dword [esi + 0x20]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x144], 0x16
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.texelAlignment.z
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b747b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b74a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
jle 0x4b74c3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push 0x538958
push ecx
call fcn.004edd07
fld qword [esp + 0x24]
fstp dword [esi + 0x24]
add esp, 0xc
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
fld dword [ebp]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x20]
push str._.8lf
mov bl, 0x17
push eax
mov byte [esp + 0x144], bl
call fcn.00401f80
lea ecx, [esp + 0x24]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x154], 0x18
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
push str.texelAlignment.x
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
fld dword [esi + 0x20]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x20]
push str._.8lf
push eax
call fcn.00401f80
lea ecx, [esp + 0x24]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x154], 0x19
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
push str.texelAlignment.y
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b75e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b760b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
fld dword [esi + 0x24]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x20]
push str._.8lf
push eax
call fcn.00401f80
lea ecx, [esp + 0x24]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x154], 0x1a
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x38]
mov ecx, dword [edi]
add esp, 0x20
push eax
push ebp
push str.texelAlignment.z
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b767c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b76a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b76c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x28], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x1b
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bFullScreen
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b772e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7763
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x28], al
mov al, byte [esi + 0x28]
test al, al
mov ebp, 0x5247d4
jne 0x4b7774
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x1c
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bFullScreen
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b77c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b77ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x29], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x1d
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bBackfaceClip
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b787a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7889
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x29], al
mov al, byte [esi + 0x29]
test al, al
mov ebp, 0x5247d4
jne 0x4b789a
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x1e
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bBackfaceClip
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b78ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2a], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x1f
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bAlphaBlend
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b797a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b79a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b79af
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2a], al
mov al, byte [esi + 0x2a]
test al, al
mov ebp, 0x5247d4
jne 0x4b79c0
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x20
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bAlphaBlend
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7a15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7a3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2c], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x21
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bAlphaTest
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7ad5
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2c], al
mov al, byte [esi + 0x2c]
test al, al
mov ebp, 0x5247d4
jne 0x4b7ae6
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x22
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bAlphaTest
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7b61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2b], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x23
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bBilinearFilter
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7bec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7bfb
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2b], al
mov al, byte [esi + 0x2b]
test al, al
mov ebp, 0x5247d4
jne 0x4b7c0c
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x24
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bBilinearFilter
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x25
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bUseReferenceDevice
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7ce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7d0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7d23
cmp byte [esp + 0x28], 0x59
sete al
test al, al
mov ebp, 0x5247d4
jne 0x4b7d28
mov ebp, 0x5247d0
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x26
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bUseReferenceDevice
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b7d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x27
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bUseHardwareTL
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7e3a
cmp byte [esp + 0x28], 0x59
sete al
test al, al
je 0x4b7e41
mov ebp, 0x5247d4
jmp 0x4b7e46
mov ebp, 0x5247d0
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x28
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bUseHardwareTL
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b7e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7ec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2d], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x29
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bUseVSync
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7f4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b7f5b
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2d], al
mov al, byte [esi + 0x2d]
test al, al
mov ebp, 0x5247d4
jne 0x4b7f6c
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x2a
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bUseVSync
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7fc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2e], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x2b
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bDither
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b804c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b8081
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2e], al
mov al, byte [esi + 0x2e]
test al, al
mov ebp, 0x5247d4
jne 0x4b8092
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x2c
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bDither
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b80e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b810d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x2f], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x2d
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bEnableFontCache
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8172
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8198
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b81a7
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x2f], al
mov al, byte [esi + 0x2f]
test al, al
mov ebp, 0x5247d4
jne 0x4b81b8
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x2e
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bEnableFontCache
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b820d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x54], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x2f
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bBrokenAlphaOp
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b82be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b82cd
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x54], al
mov al, byte [esi + 0x54]
test al, al
mov ebp, 0x5247d4
jne 0x4b82de
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x30
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bBrokenAlphaOp
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x55], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x31
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bTFACTORSupport
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b83be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b83e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b83f3
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x55], al
mov al, byte [esi + 0x55]
test al, al
mov ebp, 0x5247d4
jne 0x4b8404
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x32
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bTFACTORSupport
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b847f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov byte [esi + 0x30], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x33
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push 0x100
lea edx, [esp + 0x30]
push edx
push 0x5245f0
push str.bSimulate256x256TextureHW
push ecx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b84e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b850a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jle 0x4b8519
cmp byte [esp + 0x28], 0x59
sete al
mov byte [esi + 0x30], al
mov al, byte [esi + 0x30]
test al, al
mov ebp, 0x5247d4
jne 0x4b852a
mov ebp, 0x5247d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x144], 0x34
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x10
push eax
push ebp
push str.bSimulate256x256TextureHW
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b857f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b85a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x34], 1
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x35
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x34]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.backBufferCount
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b8607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b862d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x34]
push eax
lea ecx, [esp + 0x1c]
push 0x525028
mov bl, 0x36
push ecx
mov byte [esp + 0x140], bl
call fcn.00401f80
lea edx, [esp + 0x20]
push edx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x150], 0x37
call fcn.0041b800
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
mov ecx, dword [edi]
add esp, 0x1c
push eax
push ebp
push str.backBufferCount
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b86b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b86da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x134], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b86fd
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x58], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 0x38
call fcn.0041b800
mov eax, dword [eax]
mov edx, dword [esi + 0x58]
mov ecx, dword [edi]
add esp, 0x10
push eax
push edx
push str.preferredDeviceType
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b875f