Function at 0x409010
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9757
push eax
mov eax, 0x21c4
mov dword fs:[0], esp
call fcn.004a0d60
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00408ff0
test eax, eax
je 0x40987e
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 0x4c0f40
push eax
lea ecx, [esp + 0x20]
call fcn.004098e0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x409096
mov esi, dword [esp + 0x10]
test esi, esi
je 0x409096
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409096
mov edx, dword [esp + 0x1c]
cmp edx, 0x80
jg 0x40909d
xor eax, eax
jmp 0x40987e
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 0x40914c
test eax, eax
mov esi, eax
je 0x40914c
lea ecx, [esp + 0x30]
call fcn.00435240
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x21dc], 0
call fcn.00435260
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
test eax, eax
je 0x409134
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.004074a0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x409134
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x21d8], 0xffffffff
call fcn.004046f0
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.004346e0
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, 0x108
and esi, eax
test esi, esi
jne 0x4091c2
xor eax, eax
jmp 0x4091c9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00404780
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, 0x10c
and esi, eax
test esi, esi
jne 0x409211
xor eax, eax
jmp 0x409218
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00404780
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, 0x110
and esi, eax
test esi, esi
jne 0x409260
xor eax, eax
jmp 0x409267
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00404780
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 edi
mov eax, dword [esp + 0x1c]
mov si, word [eax]
neg si
sbb esi, esi
and esi, eax
mov eax, dword [0x4c0080]
test esi, esi
mov dword [esp + 0x2c], eax
je 0x4092f6
mov ecx, esi
shr ecx, 0x10
jne 0x4092c4
and esi, 0xffff
lea ecx, [esp + 0x2c]
push esi
call fcn.00404350
jmp 0x4092f6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x4092f6
push ebx
lea ecx, [esp + 0x30]
call fcn.00404720
test eax, eax
je 0x4092f6
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + ebx]
push edx
lea eax, [ebx + ebx + 2]
push esi
push eax
push ecx
call fcn.004039f0
add esp, 0x10
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x21dc], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x409327
lea eax, [esp + 0x2c]
push 0xffffff
push eax
call fcn.00433520
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 + 0x178], eax
mov eax, dword [ebp + 0x1c]
add eax, 0x178
mov ecx, dword [eax]
cmp ecx, 0x2710
jle 0x409364
mov dword [eax], 0x2710
jmp 0x40936f
cmp ecx, 1
jge 0x40936f
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, 0x90
call fcn.00434c30
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 0x409439
test eax, eax
je 0x409439
mov ecx, dword [ebp + 0x1c]
push eax
add ecx, 0x17c
call fcn.00434f80
mov eax, dword [ebp + 0x1c]
add eax, 0x17c
mov ecx, dword [eax]
cmp ecx, 0x400
jle 0x409403
mov dword [eax], 0x400
jmp 0x409411
cmp ecx, 0x190
jge 0x409411
mov dword [eax], 0x190
mov eax, dword [ebp + 0x1c]
add eax, 0x180
mov ecx, dword [eax]
cmp ecx, 0x300
jle 0x40942b
mov dword [eax], 0x300
jmp 0x409439
cmp ecx, 0x12c
jge 0x409439
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, 0x184
call fcn.00414660
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 0x4094da
test eax, eax
je 0x4094da
push eax
call fcn.004331a0
mov cx, word [0x4cf81c]
lea edx, [esp + 0x1d8]
push ecx
push 0x2c
push edx
mov esi, eax
call fcn.00433090
add esp, 0x10
lea eax, [esp + 0x1d4]
mov ecx, ebp
push esi
push eax
call fcn.00409a20
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 0x40957f
test eax, eax
mov esi, eax
je 0x40957f
lea ecx, [esp + 0x3c]
call fcn.00435240
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x21e0], 2
call fcn.00435260
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40956a
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.004074a0
lea ecx, [esp + 0x30]
call fcn.0040cf10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x21dc], 1
call fcn.004046f0
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, 0x118
and esi, eax
test esi, esi
jne 0x4095ba
xor eax, eax
jmp 0x4095c1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00404780
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, 0x11c
and esi, eax
test esi, esi
jne 0x409609
xor eax, eax
jmp 0x409610
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00404780
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 [0x4c0080]
test esi, esi
mov dword [esp + 0x24], eax
je 0x40969f
mov ecx, esi
shr ecx, 0x10
jne 0x40966d
and esi, 0xffff
lea ecx, [esp + 0x24]
push esi
call fcn.00404350
jmp 0x40969f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40969f
push edi
lea ecx, [esp + 0x28]
call fcn.00404720
test eax, eax
je 0x40969f
mov ecx, dword [esp + 0x24]
lea edx, [edi + edi]
push edx
lea eax, [edi + edi + 2]
push esi
push eax
push ecx
call fcn.004039f0
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x21dc], 3
call fcn.00404970
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 0x4096dd
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 0x4096c7
mov eax, dword [esp + 0x24]
mov edx, esi
sub edx, eax
mov edi, dword [eax - 8]
sar edx, 1
sub edi, edx
mov edx, dword [eax - 4]
lea ecx, [edi + edi + 2]
push ecx
lea ecx, [edx + edx + 2]
push esi
push ecx
push eax
call fcn.0040cc60
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [edx - 8], edi
call fcn.00404970
mov edi, dword [esp + 0x24]
xor esi, esi
cmp word [edi], si
je 0x409758
mov ax, word [edi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x409733
test esi, esi
jne 0x409735
mov esi, edi
jmp 0x409735
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], 0
jne 0x40971e
test esi, esi
je 0x409758
mov word [esi], 0
mov eax, dword [esp + 0x24]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409772
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x4cf6f0
call fcn.004036e0
mov edx, dword [0x4c0080]
mov dword [esp + 0x28], edx
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
mov byte [esp + 0x21dc], 4
mov edi, 1
push edi
lea eax, [esp + 0x48]
push str.BoldDes_d
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.004098a0
mov esi, eax
test esi, esi
je 0x4097ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.00404780
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
test eax, eax
je 0x4097ed
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x28]
add ecx, 0x130
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0040cd30
inc edi
cmp edi, 5
jl 0x40978f
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.004098a0
push eax
lea ecx, [esp + 0x2c]
call fcn.00403cc0
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
test eax, eax
je 0x409842
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x28]
add ecx, 0x120
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0040cd30
inc esi
cmp esi, 5
jl 0x4097f2
lea ecx, [esp + 0x28]
mov byte [esp + 0x21dc], 3
call fcn.004046f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x21dc], 1
call fcn.004046f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x21dc], 0xffffffff
call fcn.004046f0
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