Function at 0x40bfe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10914
call fcn.004609c0
mov eax, dword [0x4b1570]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10914], ecx
mov dword [ebp - 0x94], 0
push 0x10830
push 0
lea eax, [ebp - 0x108c8]
push eax
call fcn.004602b0
add esp, 0xc
push 0x480bc8
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
call fcn.00460890
add esp, 8
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x40c057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
jmp 0x40c477
mov edx, dword [ebp - 0x90]
push edx
call fcn.00460750
add esp, 4
push 0x10830
push 0
lea eax, [ebp - 0x108c8]
push eax
call fcn.004602b0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
push 0
push str.RebuildFS
push 0x480374
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x108b4], eax
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
push 0x104
lea eax, [ebp - 0x3a4]
push eax
push 0x47f760
push str.USPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x3a4]
test ecx, ecx
je 0x40c0d8
mov dword [ebp - 0x108bc], 1
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
push 0x104
lea eax, [ebp - 0x2a0]
push eax
push 0x47f760
push str.UAPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x2a0]
test ecx, ecx
je 0x40c115
mov dword [ebp - 0x108b8], 1
cmp dword [ebp - 0x108b4], 0
jne 0x40c130
cmp dword [ebp - 0x108bc], 0
jne 0x40c130
cmp dword [ebp - 0x108b8], 0
je 0x40c167
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108c8]
push eax
mov ecx, dword [ebp - 0x10914]
call fcn.0040c490
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x40c15d
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x40c167
jmp 0x40c471
mov dword [ebp - 0x8c], 0
jmp 0x40c182
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x19
jge 0x40c388
push 0x10830
push 0
lea eax, [ebp - 0x108c8]
push eax
call fcn.004602b0
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
add ecx, 1
push ecx
push str.APP_d
lea edx, [ebp - 0x10908]
push edx
call fcn.004600f6
add esp, 0xc
push 0x480348
lea eax, [ebp - 0x48]
push eax
call fcn.004600f6
add esp, 8
push str.AppName
lea ecx, [ebp - 0x88]
push ecx
call fcn.004600f6
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
push 0x104
lea eax, [ebp - 0x108a8]
push eax
push 0x47f760
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x10908]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
push 0x104
lea ecx, [ebp - 0x19c]
push ecx
push 0x47f760
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x10908]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x108a8]
test ecx, ecx
jne 0x40c258
movsx edx, byte [ebp - 0x19c]
test edx, edx
jne 0x40c258
jmp 0x40c173
movsx eax, byte [ebp - 0x108a8]
test eax, eax
je 0x40c273
movsx ecx, byte [ebp - 0x19c]
test ecx, ecx
je 0x40c273
jmp 0x40c173
mov dword [ebp - 0x108c8], 1
mov dword [ebp - 0x1090c], 0
mov dword [ebp - 0x10910], 0
jmp 0x40c2a2
mov edx, dword [ebp - 0x10910]
add edx, 1
mov dword [ebp - 0x10910], edx
cmp dword [ebp - 0x10910], 0xff
jge 0x40c32d
mov eax, dword [ebp - 0x10910]
add eax, 1
push eax
push str.Parafile_d
lea ecx, [ebp - 0x48]
push ecx
call fcn.004600f6
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
push 0x104
mov eax, dword [ebp - 0x1090c]
imul eax, eax, 0x104
lea ecx, [ebp + eax - 0x106a0]
push ecx
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x10908]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x1090c]
imul ecx, ecx, 0x104
movsx edx, byte [ebp + ecx - 0x106a0]
test edx, edx
jne 0x40c319
jmp 0x40c293
mov eax, dword [ebp - 0x1090c]
add eax, 1
mov dword [ebp - 0x1090c], eax
jmp 0x40c293
cmp dword [ebp - 0x1090c], 0
jle 0x40c34c
mov ecx, dword [ebp - 0x1090c]
mov dword [ebp - 0x108ac], ecx
mov dword [ebp - 0x108c0], 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108c8]
push eax
mov ecx, dword [ebp - 0x10914]
call fcn.0040c490
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x40c379
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x40c383
jmp 0x40c471
jmp 0x40c173
push 0x10830
push 0
lea edx, [ebp - 0x108c8]
push edx
call fcn.004602b0
add esp, 0xc
mov dword [ebp - 0x8c], 0
jmp 0x40c3b9
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0xff
jge 0x40c471
push str.FONT
lea ecx, [ebp - 0x10908]
push ecx
call fcn.004600f6
add esp, 8
mov edx, dword [ebp - 0x8c]
add edx, 1
push edx
push str.Fontlib_d
lea eax, [ebp - 0x48]
push eax
call fcn.004600f6
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
push 0x104
lea edx, [ebp - 0x107a4]
push edx
push 0x47f760
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10908]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x107a4]
test edx, edx
jne 0x40c431
jmp 0x40c3aa
mov dword [ebp - 0x108c4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x108c8]
push ecx
mov ecx, dword [ebp - 0x10914]
call fcn.0040c490
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x40c468
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x40c46c
jmp 0x40c471
jmp 0x40c3aa
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004600a2
mov esp, ebp
pop ebp
ret 8