Function at 0x411970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
push 0
call fcn.004695bc
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x10], eax
push 0xa
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x20], edx
call fcn.004808d6
add esp, 0xc
push str.param.ini
lea edx, [esp + 0x10]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
push str.HomePage
push str.PARAM
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4119f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0046b1e6
add esp, 8
test eax, eax
jne 0x411a18
mov eax, dword [esp + 0x2c]
add eax, 0x76c
jmp 0x411a1a
xor eax, eax
push 0xa
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.004808d6
add esp, 0xc
push str.param.ini
lea edx, [esp + 0x10]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
push str.year
push str.HOMEURL
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411a75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0046b1e6
add esp, 8
test eax, eax
jne 0x411a94
mov eax, dword [esp + 0x28]
add eax, 1
jmp 0x411a96
xor eax, eax
push 0xa
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.004808d6
add esp, 0xc
push str.param.ini
lea edx, [esp + 0x10]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
push 0x496798
push str.HOMEURL
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411af1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0046b1e6
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x2c]
push 0xa
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004808d6
add esp, 0x14
push str.param.ini
lea edx, [esp + 0x10]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
push 0x49679c
push str.HOMEURL
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.param.ini
lea ecx, [esp + 0x10]
push 0x4b90c8
push ecx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
push 0
push str.times
push str.HOMEURL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411bb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
lea ecx, [esp + 0x40]
push ecx
add edi, 1
push edi
call fcn.004808d6
add esp, 0xc
push str.param.ini
lea edx, [esp + 0x10]
push 0x4b90c8
push edx
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
push str.times
push str.HOMEURL
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.00468ce5
add esp, 0x40
ret 4