Function at 0x40bf40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a99f7
push eax
mov eax, 0x21c4
mov dword fs:[0], esp
call fcn.004a2ae0
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040bf20
test eax, eax
je 0x40c7cb
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1d0]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x1d4]
push 0x1000
push ecx
push 0x4c35f8
push eax
lea ecx, [esp + 0x20]
call fcn.0040c830
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40bfc6
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40bfc6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bfc6
mov edx, dword [esp + 0x1c]
cmp edx, 0x80
jg 0x40bfcd
xor eax, eax
jmp 0x40c7cb
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
push edx
push str.Logo
push esi
call edi
mov eax, dword [esp + 0x18]
cmp word [eax], 0
je 0x40c07c
test eax, eax
mov esi, eax
je 0x40c07c
lea ecx, [esp + 0x30]
call fcn.0043bf30
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x21dc], 0
call fcn.0043bf50
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c064
mov eax, dword [ebp + 4]
push ecx
push eax
lea eax, [esp + 0x1d8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x1d0]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
lea eax, [esp + 0x34]
push 0
push eax
add ecx, 0x28
call fcn.0040ae50
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40c064
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x21d8], 0xffffffff
call fcn.004056c0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push ebx
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Title
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x7c
call fcn.0043b3d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.TopTitle
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x140
and esi, eax
test esi, esi
jne 0x40c0f2
xor eax, eax
jmp 0x40c0f9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.Company
push ecx
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x144
and esi, eax
test esi, esi
jne 0x40c141
xor eax, eax
jmp 0x40c148
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.LicenseURL
push eax
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x148
and esi, eax
test esi, esi
jne 0x40c190
xor eax, eax
jmp 0x40c197
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.SlideShowResourceURL
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x1cc
and esi, eax
test esi, esi
jne 0x40c1df
xor eax, eax
jmp 0x40c1e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.TitleBkColor
push ecx
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4c2080]
mov si, word [eax]
mov dword [esp + 0x2c], edx
neg si
sbb esi, esi
and esi, eax
test esi, esi
je 0x40c276
mov eax, esi
shr eax, 0x10
jne 0x40c244
and esi, 0xffff
lea ecx, [esp + 0x2c]
push esi
call fcn.00405320
jmp 0x40c276
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x40c276
push ebx
lea ecx, [esp + 0x30]
call fcn.004056f0
test eax, eax
je 0x40c276
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + ebx]
push ecx
lea edx, [ebx + ebx + 2]
push esi
push edx
push eax
call fcn.00404a40
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x21dc], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c2a7
lea edx, [esp + 0x2c]
push 0xffffff
push edx
call fcn.004384e0
mov ecx, dword [ebp + 0x1c]
add esp, 8
mov dword [ecx + 0x94], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push 0x3e8
push str.GermTime
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1b0], eax
mov eax, dword [ebp + 0x1c]
add eax, 0x1b0
mov ecx, dword [eax]
cmp ecx, 0x2710
jle 0x40c2e4
mov dword [eax], 0x2710
jmp 0x40c2ef
cmp ecx, 1
jge 0x40c2ef
mov dword [eax], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.Margin
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x98
call fcn.0043b920
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.MainWindowSize
push edx
call edi
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40c3b9
test eax, eax
je 0x40c3b9
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x1b4
call fcn.0043bc70
mov eax, dword [ebp + 0x1c]
add eax, 0x1b4
mov ecx, dword [eax]
cmp ecx, 0x400
jle 0x40c383
mov dword [eax], 0x400
jmp 0x40c391
cmp ecx, 0x190
jge 0x40c391
mov dword [eax], 0x190
mov eax, dword [ebp + 0x1c]
add eax, 0x1b8
mov ecx, dword [eax]
cmp ecx, 0x300
jle 0x40c3ab
mov dword [eax], 0x300
jmp 0x40c3b9
cmp ecx, 0x12c
jge 0x40c3b9
mov dword [eax], 0x12c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.GameList
push ecx
call edi
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x1bc
call fcn.00419000
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.WizardPage
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40c45a
test eax, eax
je 0x40c45a
push eax
call fcn.00438160
mov cx, word [0x4d1c0c]
lea edx, [esp + 0x1d8]
push ecx
push 0x2c
push edx
mov esi, eax
call fcn.00438050
add esp, 0x10
lea eax, [esp + 0x1d4]
mov ecx, ebp
push esi
push eax
call fcn.0040c940
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push str.PRLogo
push ecx
call edi
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40c4ff
test eax, eax
mov esi, eax
je 0x40c4ff
lea ecx, [esp + 0x3c]
call fcn.0043bf30
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x21e0], 2
call fcn.0043bf50
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c4ea
mov eax, dword [ebp + 4]
push ecx
lea edx, [esp + 0x1d8]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1d4]
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x38]
push 0x1f4
push edx
add ecx, 0x28
call fcn.0040ae50
lea ecx, [esp + 0x30]
call fcn.00404b50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x21dc], 1
call fcn.004056c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push str.Caption
push ecx
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x150
and esi, eax
test esi, esi
jne 0x40c53a
xor eax, eax
jmp 0x40c541
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.CheckBoxName
push eax
call edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add ebx, 0x154
and esi, eax
test esi, esi
jne 0x40c589
xor eax, eax
jmp 0x40c590
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00405750
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.From
push edx
call edi
mov eax, dword [esp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
and esi, eax
mov eax, dword [0x4c2080]
test esi, esi
mov dword [esp + 0x24], eax
je 0x40c61f
mov ecx, esi
shr ecx, 0x10
jne 0x40c5ed
and esi, 0xffff
lea ecx, [esp + 0x24]
push esi
call fcn.00405320
jmp 0x40c61f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x40c61f
push ebx
lea ecx, [esp + 0x28]
call fcn.004056f0
test eax, eax
je 0x40c61f
mov ecx, dword [esp + 0x24]
lea edx, [ebx + ebx]
push edx
lea eax, [ebx + ebx + 2]
push esi
push eax
push ecx
call fcn.00404a40
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x21dc], 3
call fcn.00405940
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_iswspace]
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x40c65d
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
jne 0x40c647
mov eax, dword [esp + 0x24]
mov edx, esi
sub edx, eax
mov ebx, dword [eax - 8]
sar edx, 1
sub ebx, edx
mov edx, dword [eax - 4]
lea ecx, [ebx + ebx + 2]
push ecx
lea ecx, [edx + edx + 2]
push esi
push ecx
push eax
call fcn.00410080
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [edx - 8], ebx
call fcn.0040a380
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c6ad
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x4d1ad0
call fcn.00403a20
mov edx, dword [0x4c2080]
mov dword [esp + 0x28], edx
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
mov byte [esp + 0x21dc], 4
mov esi, 1
push esi
lea eax, [esp + 0x48]
push str.BoldDes_d
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
neg ax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x28]
push eax
call fcn.00404c50
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c73a
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x28]
add ecx, 0x168
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00410150
inc esi
cmp esi, 5
jl 0x40c6ca
mov esi, 1
push esi
lea eax, [esp + 0x48]
push str.Descrip_d
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c7f0
push eax
lea ecx, [esp + 0x2c]
call fcn.00404c50
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
test eax, eax
je 0x40c78f
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x28]
add ecx, 0x158
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00410150
inc esi
cmp esi, 5
jl 0x40c73f
lea ecx, [esp + 0x28]
mov byte [esp + 0x21dc], 3
call fcn.004056c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x21dc], 1
call fcn.004056c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x21dc], 0xffffffff
call fcn.004056c0
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x21d0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x21d0
ret