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

Disassembly:
sub esp, 0x844
lea eax, [esp + 0x20]
push ebx
push ebp
push esi
push edi
push 0x105
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
push 0x5c
push ecx
mov esi, 0x1000137c
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, 1
add esp, 8
sub edx, esi
lea ecx, [eax + edx]
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x100072ab
mov edi, dword [ebx + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 0x23
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, 0x10
mov esi, 0x10001338
lea eax, [esp + 0x240]
rep movsd dword es:[edi], dword [esi]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [0x10004240]
lea ecx, [esp + 0x238]
push 0x10001304
push ecx
lea edx, [esp + 0x240]
push 0x100012fc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x340]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x238]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x344], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x350], 2
jne 0x10007375
cmp dword [esp + 0x344], 5
jb 0x10007375
mov ecx, ebx
call fcn.10007190
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0
mov ecx, 0x400
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + eax*4 + 0x28]
push esi
push 0x1000
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp], 0
je 0x100075ad
jmp 0x100073c4
mov esi, dword [esp + 0x10]
push ebp
mov ecx, ebx
call fcn.10007990
mov dword [esp + 0x1c], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x754]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x454]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x554]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x654]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x13c]
push 0x100
push ecx
push eax
push 0x10001400
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x100074f6
mov eax, dword [ebx + 0x10]
xor edi, edi
test eax, eax
jle 0x100074f6
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x138]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10007482
test cl, cl
je 0x1000747e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10007482
add eax, 2
add esi, 2
test cl, cl
jne 0x1000745e
xor eax, eax
jmp 0x10007487
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100074a3
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
inc edi
add ecx, 0x301
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x10007453
jmp 0x100074f2
mov eax, dword [esp + 0x24]
lea ecx, [edi + edi*2]
shl ecx, 8
add eax, ecx
lea edx, [esp + 0x754]
lea esi, [edi + eax]
lea eax, [esi + 0x200]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100074c1
lea eax, [esi + 0x100]
lea edx, [esp + 0x454]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100074da
mov byte [esi + 0x300], 1
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea edx, [esp + 0x558]
push 0x100
push edx
push 0
push 0x100013f4
push ebp
call edi
push esi
lea eax, [esp + 0x658]
push 0x100
push eax
push 0
push 0x100013ec
push ebp
call edi
lea ecx, [esp + 0x654]
push ecx
mov ecx, ebx
call fcn.10007990
lea edx, [esp + 0x754]
mov ecx, ebx
push edx
mov esi, eax
call fcn.10007990
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x554]
push esi
lea ecx, [esp + 0x458]
push eax
push ecx
push edi
lea eax, [esp + 0x148]
push edx
push eax
mov ecx, ebx
call fcn.100075e0
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x100073c0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jb 0x10007390
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x844
ret