Function at 0x409e40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b024c
push eax
mov eax, 0x21c0
mov dword fs:[0], esp
call fcn.004a7630
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00409e20
test eax, eax
je 0x40a5be
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1cc]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x1d0]
push 0x1000
push ecx
push 0x4c9200
push eax
lea ecx, [esp + 0x20]
call fcn.0040a5e0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x409ec6
mov esi, dword [esp + 0x10]
test esi, esi
je 0x409ec6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409ec6
mov edx, dword [esp + 0x1c]
cmp edx, 0x80
jg 0x409ecd
xor eax, eax
jmp 0x40a5be
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
push edx
push str.Logo
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x409f7d
test eax, eax
mov esi, eax
je 0x409f7d
lea ecx, [esp + 0x30]
call fcn.004364e0
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x21dc], 0
call fcn.00436500
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
test eax, eax
je 0x409f65
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.004082d0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x409f65
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x21d8], 0xffffffff
call fcn.00405a40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Title
push eax
call ebx
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.00435980
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 ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add edi, 0x108
and esi, eax
test esi, esi
jne 0x409ff2
xor eax, eax
jmp 0x409ff9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, edi
call fcn.00405ad0
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 ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add edi, 0x10c
and esi, eax
test esi, esi
jne 0x40a041
xor eax, eax
jmp 0x40a048
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, edi
call fcn.00405ad0
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 ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add edi, 0x110
and esi, eax
test esi, esi
jne 0x40a090
xor eax, eax
jmp 0x40a097
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, edi
call fcn.00405ad0
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.TitleBkColor
push edx
call ebx
mov eax, dword [esp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
and esi, eax
mov eax, dword [0x4c8080]
test esi, esi
mov dword [esp + 0x28], eax
je 0x40a126
mov ecx, esi
shr ecx, 0x10
jne 0x40a0f4
and esi, 0xffff
lea ecx, [esp + 0x28]
push esi
call fcn.004056a0
jmp 0x40a126
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40a126
push edi
lea ecx, [esp + 0x2c]
call fcn.00405a70
test eax, eax
je 0x40a126
mov ecx, dword [esp + 0x28]
lea edx, [edi + edi]
push edx
lea eax, [edi + edi + 2]
push esi
push eax
push ecx
call fcn.00404530
add esp, 0x10
mov edx, dword [esp + 0x28]
mov dword [esp + 0x21d8], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x40a157
lea eax, [esp + 0x28]
push 0xffffff
push eax
call fcn.004346e0
mov ecx, dword [ebp + 0x1c]
add esp, 8
mov dword [ecx + 0x8c], 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 + 0x17c], eax
mov eax, dword [ebp + 0x1c]
add eax, 0x17c
mov ecx, dword [eax]
cmp ecx, 0x2710
jle 0x40a194
mov dword [eax], 0x2710
jmp 0x40a19f
cmp ecx, 1
jge 0x40a19f
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 ebx
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, 0x90
call fcn.00435ed0
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 ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40a269
test eax, eax
je 0x40a269
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x180
call fcn.00436220
mov eax, dword [ebp + 0x1c]
add eax, 0x180
mov ecx, dword [eax]
cmp ecx, 0x400
jle 0x40a233
mov dword [eax], 0x400
jmp 0x40a241
cmp ecx, 0x190
jge 0x40a241
mov dword [eax], 0x190
mov eax, dword [ebp + 0x1c]
add eax, 0x184
mov ecx, dword [eax]
cmp ecx, 0x300
jle 0x40a25b
mov dword [eax], 0x300
jmp 0x40a269
cmp ecx, 0x12c
jge 0x40a269
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 ebx
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, 0x188
call fcn.00415120
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 ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40a30a
test eax, eax
je 0x40a30a
push eax
call fcn.00434360
mov cx, word [0x4d758c]
lea edx, [esp + 0x1d4]
push ecx
push 0x2c
push edx
mov esi, eax
call fcn.00434250
add esp, 0x10
lea eax, [esp + 0x1d0]
mov ecx, ebp
push esi
push eax
call fcn.0040a720
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 ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40a3af
test eax, eax
mov esi, eax
je 0x40a3af
lea ecx, [esp + 0x38]
call fcn.004364e0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x21dc], 2
call fcn.00436500
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a39a
mov eax, dword [ebp + 4]
push ecx
lea edx, [esp + 0x1d4]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1d0]
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x34]
push 0x1f4
push edx
add ecx, 0x28
call fcn.004082d0
lea ecx, [esp + 0x2c]
call fcn.0040db30
lea ecx, [esp + 0x38]
mov byte [esp + 0x21d8], 1
call fcn.00405a40
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 ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add edi, 0x118
and esi, eax
test esi, esi
jne 0x40a3ea
xor eax, eax
jmp 0x40a3f1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, edi
call fcn.00405ad0
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 ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
add edi, 0x11c
and esi, eax
test esi, esi
jne 0x40a439
xor eax, eax
jmp 0x40a440
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, edi
call fcn.00405ad0
mov ecx, dword [0x4c8080]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x21d8], 3
mov esi, 1
push esi
lea edx, [esp + 0x44]
push str.BoldDes_d
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0xc
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
jne 0x40a4a4
xor edi, edi
xor eax, eax
jmp 0x40a4b1
test eax, eax
mov edi, eax
je 0x40a4b1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00405ad0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a4e8
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x24]
add ecx, 0x130
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0040d950
inc esi
cmp esi, 5
jl 0x40a460
mov esi, 1
push esi
lea eax, [esp + 0x44]
push str.Descrip_d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
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 + 0x4c]
push ecx
push edx
push eax
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
jne 0x40a531
xor edi, edi
xor eax, eax
jmp 0x40a53e
test eax, eax
mov edi, eax
je 0x40a53e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00405ad0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a579
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x24]
add ecx, 0x120
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0040d950
inc esi
cmp esi, 5
jl 0x40a4ed
mov eax, dword [esp + 0x24]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
pop ebx
je 0x40a5a5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40a5a5
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.0043b3d0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x21d4], 0xffffffff
call fcn.00405a40
mov eax, 1
mov ecx, dword [esp + 0x21cc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x21cc
ret