Function at 0x408e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45df42
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x478a70]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], ecx
push 8
lea eax, [ebp - 0x114]
push eax
push 0x419
mov ecx, dword [ebp - 0x1c4]
call fcn.0042bf4c
mov ecx, eax
call fcn.0042c71b
push 4
lea ecx, [ebp - 0x114]
push ecx
call fcn.004048e0
add esp, 8
mov word [ebp - 0x10], ax
push 8
lea edx, [ebp - 0x114]
push edx
push 0x41a
mov ecx, dword [ebp - 0x1c4]
call fcn.0042bf4c
mov ecx, eax
call fcn.0042c71b
push 4
lea eax, [ebp - 0x114]
push eax
call fcn.004048e0
add esp, 8
mov word [ebp - 0x118], ax
movzx ecx, word [ebp - 0x118]
push ecx
movzx edx, word [ebp - 0x10]
push edx
call dword [0x47a580]
test eax, eax
je 0x40958a
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x4637c4
call fcn.00401340
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
call dword [0x47a588]
push eax
push 0x4637e0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea edx, [ebp - 0x114]
push edx
call fcn.00401340
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
call dword [0x47a590]
push eax
push 0x4637ec
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp - 0x114]
push edx
call fcn.00401340
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x46307f
call fcn.00401340
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x1a4
call fcn.0042c19e
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x2a0
call fcn.0042c19e
push 0
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x1f8
call fcn.0042c19e
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x348
call fcn.0042c19e
mov ecx, dword [ebp - 0x1c4]
call fcn.00419ca0
push eax
call dword [0x47a584]
push 0x464
call dword [0x47a59c]
mov eax, dword [ebp - 0x1c4]
mov dword [eax + 0x5f4], 1
push 0x87
mov ecx, dword [ebp - 0x1c4]
call fcn.0040cbb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x154], esp
push 0x47a5f0
call fcn.0041b0f0
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.0040dc20
mov byte [ebp - 0x1d9], al
movzx ecx, byte [ebp - 0x1d9]
test ecx, ecx
jne 0x4090da
push 0x4637f8
mov ecx, dword [ebp - 0x1c4]
call fcn.00416850
jmp 0x4095f4
cmp dword [0x4659dc], 0
jne 0x4090ee
mov ecx, dword [ebp - 0x1c4]
call fcn.00407e30
lea edx, [ebp - 0x170]
push edx
mov ecx, dword [ebp - 0x1c4]
call fcn.00413560
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
call fcn.0041b220
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x698
call fcn.00401400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.0041b130
lea ecx, [ebp - 0x174]
push ecx
mov ecx, dword [ebp - 0x1c4]
call fcn.00413370
mov dword [ebp - 0x1e8], eax
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x4ec
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.004013c0
lea ecx, [ebp - 0x190]
push ecx
mov ecx, dword [ebp - 0x1c4]
call fcn.004157f0
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1f4]
call fcn.0041b220
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x644
call fcn.00401400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.0041b130
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00415bf0
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x1fc]
push edx
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x710
call fcn.0041b150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.0041b130
cmp dword [0x4659dc], 0
jne 0x409280
push 0xa
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x4ec
call fcn.0041af90
movsx eax, al
cmp eax, 0x47
je 0x409280
push 0x463810
mov ecx, dword [ebp - 0x1c4]
call fcn.00416850
cmp dword [0x4659dc], 0
jne 0x409294
mov ecx, dword [ebp - 0x1c4]
call fcn.0040ba80
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx + 0x734], 0
je 0x4092a8
jmp 0x4095f4
mov edx, dword [ebp - 0x1c4]
cmp dword [edx + 0x730], 0xffffffff
jne 0x4092bc
jmp 0x4095f4
mov eax, dword [ebp - 0x1c4]
add eax, 0x644
push eax
push 0x463828
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.0041adf0
add esp, 0xc
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x204]
call fcn.004015f0
push eax
lea ecx, [ebp - 0x134]
call fcn.0041b0b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b0]
call fcn.004013c0
lea ecx, [ebp - 0x140]
call fcn.00402a90
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c4]
add eax, 0x4ec
push eax
push 0x463834
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.0041adf0
add esp, 0xc
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x20c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x140]
call fcn.004013e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1b4]
call fcn.004013c0
lea ecx, [ebp - 0x140]
call fcn.004015f0
push eax
push 0x49b
mov ecx, dword [ebp - 0x1c4]
call fcn.00418140
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx + 0x730], 1
jne 0x4093e1
lea ecx, [ebp - 0x134]
call fcn.0041b220
push eax
push 0x49d
mov ecx, dword [ebp - 0x1c4]
call fcn.00418140
cmp dword [0x4659dc], 0
je 0x4093e1
push 0x463840
mov ecx, dword [ebp - 0x1c4]
call fcn.00416850
cmp dword [0x4659dc], 0
jne 0x4093f5
mov ecx, dword [ebp - 0x1c4]
call fcn.00415cf0
mov ecx, dword [ebp - 0x1c4]
call fcn.00409630
sub esp, 0x10
mov edx, esp
mov eax, dword [0x463048]
mov dword [edx], eax
mov ecx, dword [0x46304c]
mov dword [edx + 4], ecx
mov eax, dword [0x463050]
mov dword [edx + 8], eax
mov ecx, dword [str.Z5CtlPalUpgradeProgma]
mov dword [edx + 0xc], ecx
lea edx, [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0x1c4]
call fcn.00416ad0
lea ecx, [ebp - 0x1b8]
call fcn.004013c0
lea ecx, [ebp - 0x13c]
call fcn.00402a90
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x13c
call fcn.004015f0
push eax
push 0x80
push 0x80
lea ecx, [ebp - 0x13c]
call fcn.00401970
push eax
push 0
push 0x46384c
push 0x463858
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call fcn.0041b030
push 0x222004
push 0x2b
push 0
lea ecx, [ebp - 0x13c]
call fcn.00401970
push eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00416950
mov ecx, dword [ebp - 0x1c4]
call fcn.004137c0
mov dword [ebp - 0x138], eax
push 0x222008
push 4
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00416950
mov ecx, dword [ebp - 0x1c4]
call fcn.00417120
push 1
push 0x4a8
mov ecx, dword [ebp - 0x1c4]
call fcn.0042bf4c
mov ecx, eax
call fcn.0042c19e
push 1
push 0x44b
mov ecx, dword [ebp - 0x1c4]
call fcn.0042bf4c
mov ecx, eax
call fcn.0042c19e
push 0x4ab
mov ecx, dword [ebp - 0x1c4]
call fcn.0042bf4c
mov ecx, eax
call fcn.0042c183
test eax, eax
je 0x409553
mov ecx, dword [ebp - 0x1c4]
mov byte [ecx + 0x9b4], 1
mov ecx, dword [ebp - 0x1c4]
call fcn.00417570
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x13c]
call fcn.004013c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.004013c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.0041b130
jmp 0x40960e
mov edx, dword [ebp - 0x1c4]
mov dword [edx + 0x5f4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x463860
call fcn.00401340
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
push ecx
mov ecx, esp
mov dword [ebp - 0x1c0], esp
push 0x463086
call fcn.00401340
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.00409b40
push 0x86
mov ecx, dword [ebp - 0x1c4]
call fcn.0040cbb0
jmp 0x40960e
mov eax, dword [ebp - 0x1c4]
cmp dword [eax + 0x5f4], 0
je 0x40960e
mov ecx, dword [ebp - 0x1c4]
call fcn.00409980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044240e
mov esp, ebp
pop ebp
ret