Function at 0x10005a62
Capabilities:
Check os version
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c4
push ebx
push esi
push edi
push 0x100015ec
mov edi, ecx
push 0x100014f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1bc]
push 0x105
push ecx
call eax
push 0x100015d4
lea eax, [ebp - 0x1bc]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1bc]
push eax
call esi
lea eax, [ebp - 0x1bc]
push 0x10001590
push eax
call esi
push 0
lea eax, [ebp - 0x3c4]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x3c4]
push 0x10001560
push eax
lea eax, [ebp - 0x3c4]
push 0x10001558
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x1bc]
add esp, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 2
pop esi
cmp dword [ebp - 0xa4], esi
jne 0x10005b4b
cmp dword [ebp - 0xb0], 5
jb 0x10005b4b
mov ecx, edi
call fcn.1000592e
mov ebx, 0x1000
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
pop ecx
mov dword [ebp - 8], eax
mov esi, 0x100
jmp 0x10005b6f
mov ebx, 0x1000
push ebx
push 0
push dword [ebp - 0x10]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [eax]
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov eax, ebx
cmp byte [eax], 0
je 0x10005d49
push ebx
mov ecx, edi
call fcn.10005f43
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x2bc]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x5c4]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x6c4]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x4c4]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x7c4]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 8]
add esp, 0x3c
push dword [eax]
lea eax, [ebp - 0x2bc]
push esi
push eax
push 0
push 0x10001640
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x10005c9d
xor eax, eax
cmp dword [edi + 0x10], eax
mov dword [ebp - 0xc], eax
jle 0x10005c9d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005c4d
inc dword [ebp - 0xc]
add dword [ebp - 4], 0x301
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x10]
jl 0x10005c21
jmp 0x10005c9d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x1c]
imul eax, eax, 0x301
mov dword [ebp - 4], eax
lea eax, [eax + ecx + 0x200]
push eax
lea eax, [ebp - 0x5c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x100]
push eax
lea eax, [ebp - 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
mov byte [ecx + eax + 0x300], 1
inc dword [edi + 8]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x4c4]
push esi
push eax
push 0
push 0x10001634
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x7c4]
push esi
push eax
push 0
push 0x1000162c
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x7c4]
mov ecx, edi
push eax
call fcn.10005f43
mov dword [ebp - 4], eax
lea eax, [ebp - 0x5c4]
push eax
mov ecx, edi
call fcn.10005f43
push dword [ebp - 4]
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0x6c4]
push ecx
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x2bc]
mov ecx, edi
push eax
call fcn.10005d66
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x10005b98
add dword [ebp - 8], 4
dec dword [ebp - 0x18]
jne 0x10005b6a
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret