Function at 0x4a74f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5735e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004a8310
add esp, 8
xor ebx, ebx
cmp dword [esi + 0x140], ebx
mov dword [esp + 0x28], ebx
je 0x4a75a3
lea ecx, [esi + 0x44]
call fcn.0051816f
lea ecx, [esi + 0x1c]
call fcn.0051816f
lea ecx, [esi + 0x24]
call fcn.0051816f
lea ecx, [esi + 0x2c]
call fcn.0051816f
lea ecx, [esi + 0x34]
call fcn.0051816f
lea ecx, [esi + 0x80]
call fcn.0051816f
lea ecx, [esi + 0x90]
call fcn.0051816f
lea ecx, [esi + 0x78]
call fcn.0051816f
lea ecx, [esi + 0x88]
call fcn.0051816f
mov eax, 0xcfcfcf
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x140], ebx
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebp, esp
push eax
call fcn.004016a0
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebp], eax
call fcn.004a5800
cmp eax, ebx
jne 0x4a75fb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a75f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4a7a0b
push edi
mov ecx, esi
call fcn.004a4190
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebp, esp
push eax
call fcn.004016a0
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebp], eax
call fcn.004a5fa0
cmp eax, ebx
je 0x4a75cc
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push str.TextShift
push str.Personality
call ebp
mov dword [esi + 0x110], eax
mov eax, dword [edi]
push eax
push ebx
push str.TextShiftVert
push str.Personality
call ebp
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 9
mov dword [esi + 0x114], eax
call ebp
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x20], esp
push str.TitleText
mov byte [esp + 0x38], 1
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Colours
mov byte [esp + 0x3c], 2
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
push 9
mov dword [esi + 0x118], eax
call ebp
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov edx, dword [esp + 0x20]
add eax, 0x10
mov dword [edx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.InactiveTitleText
mov byte [esp + 0x38], 3
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 4
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
mov dword [esi + 0x11c], eax
mov eax, dword [edi]
push eax
push ebx
push str.UsesTran
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [esi + 0x13c], eax
je 0x4a779f
mov eax, dword [edi]
push 0xff00ff
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.TransColor
mov byte [esp + 0x38], 5
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 6
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
mov dword [esi + 0x120], eax
mov eax, dword [edi]
push 0xcfcfcf
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov edx, dword [esp + 0x20]
add eax, 0x10
mov dword [edx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.BarColor
mov byte [esp + 0x38], 7
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 8
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
mov dword [esi + 0x124], eax
mov eax, dword [edi]
push 0xcfcfcf
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.MenuColor
mov byte [esp + 0x38], 9
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 0xa
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
push 0xf
mov dword [esi + 0x128], eax
call ebp
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov edx, dword [esp + 0x20]
add eax, 0x10
mov dword [edx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ButtonFace
mov byte [esp + 0x38], 0xb
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov byte [esp + 0x38], 0xc
push str.Colours
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
push 0x12
mov dword [esi + 0x12c], eax
call ebp
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ButtonText
mov byte [esp + 0x38], 0xd
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 0xe
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
push 0xf
mov dword [esi + 0x130], eax
call ebp
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004016a0
mov edx, dword [esp + 0x20]
add eax, 0x10
mov dword [edx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ButtonHilight
mov byte [esp + 0x38], 0xf
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 0x10
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
add esp, 0x10
push 0xf
mov dword [esi + 0x134], eax
call ebp
mov edi, dword [edi]
push eax
push ecx
sub edi, 0x10
mov dword [esp + 0x24], esp
mov ebp, esp
push edi
call fcn.004016a0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x34], 0x11
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ButtonFocus
call fcn.004019c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Colours
mov byte [esp + 0x3c], 0x12
call fcn.004019c0
mov byte [esp + 0x38], bl
call fcn.004a55d0
mov dword [esi + 0x138], eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esi + 0x140], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7a06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4