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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff328
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xcd4], edx
mov dword [ebp - 0xcd8], edx
mov dword [ebp - 0xbd0], edx
mov dword [ebp - 0xbcc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40abb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403778
call fcn.0040a58c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ab61
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x40a7b0]
call fcn.00404cbc
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, 0x108
mov dword [edx], eax
imul dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
call sub.rasapi32.dll_RasEnumEntriesA
test eax, eax
jne 0x40ab61
mov dword [ebp - 0xc4], 0x94
lea eax, [ebp - 0xc4]
push eax
call sub.kernel32.dll_GetVersionExA
lea eax, [ebp - 0x18]
mov edx, 0x105
call fcn.00403d44
lea eax, [ebp - 0x1c]
mov edx, 0x105
call fcn.00403d44
cmp dword [ebp - 0xb4], 2
jne 0x40a92d
cmp dword [ebp - 0xc0], 5
jb 0x40a92d
push 0
push 0x1a
lea eax, [ebp - 0x18]
call fcn.00403c6c
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x40a8f4
lea edx, [ebp - 0xbcc]
mov eax, dword [ebp - 0x18]
call fcn.0040a4e8
mov edx, dword [ebp - 0xbcc]
lea eax, [ebp - 0x18]
call fcn.00403810
push 0
push 0x23
lea eax, [ebp - 0x1c]
call fcn.00403c6c
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x40a928
lea edx, [ebp - 0xbd0]
mov eax, dword [ebp - 0x1c]
call fcn.0040a4e8
mov edx, dword [ebp - 0xbd0]
lea eax, [ebp - 0x1c]
call fcn.00403810
call fcn.0040a3dc
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x40ab61
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x4e0], 0x41c
mov ebx, esi
shl ebx, 5
add ebx, esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + ebx*8 + 4]
lea edx, [ebp - 0x4dc]
mov ecx, pe_nt_image_headers32
call fcn.00402964
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4e0]
push eax
push 0
call sub.rasapi32.dll_RasGetEntryDialParamsA
mov dword [ebp - 8], 0x6e8
lea eax, [ebp - 0xbc8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00402bd4
mov eax, dword [ebp - 8]
mov dword [ebp - 0xbc8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + ebx*8 + 4]
lea ecx, [ebp - 0xbc8]
xor eax, eax
call fcn.0040a758
cmp dword [ebp - 0xb4], 2
jne 0x40aaef
cmp dword [ebp - 0xc0], 5
jb 0x40aaef
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
jne 0x40a9ec
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x40aaef
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x4dc]
call fcn.00403970
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00405030
lea eax, [ebp - 0x18]
call fcn.00403c6c
push eax
push 0
push 0x40abc8
mov eax, dword [ebp - 0x24]
call fcn.00403c14
mov edi, eax
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x40aa43
lea eax, [ebp - 0x1c]
call fcn.00403c6c
push eax
push 0
push 0x40abc8
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x40aa67
lea eax, [ebp - 0x18]
call fcn.00403c6c
push eax
push 0
push 0x40abc8
mov eax, dword [ebp - 0x28]
call fcn.00403c14
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x40aa8b
lea eax, [ebp - 0x1c]
call fcn.00403c6c
push eax
push 0
push 0x40abc8
mov eax, dword [ebp - 0x28]
call fcn.00403c14
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jbe 0x40aaef
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcd0]
call fcn.004048a0
lea edx, [ebp - 0xcd0]
lea eax, [ebp - 0x2c]
call fcn.004039dc
mov edi, pe_nt_image_headers32
mov ebx, 0x4109a4
mov eax, dword [ebx]
mov edx, dword [ebp - 0x2c]
call fcn.00403b60
jne 0x40aae9
cmp dword [ebx + 4], 0
je 0x40aae9
mov eax, dword [ebx + 4]
call fcn.00403a14
push eax
mov eax, dword [ebx + 4]
call fcn.00403c14
mov edx, eax
lea eax, [ebp - 0x1d8]
pop ecx
call fcn.0040a5d4
add ebx, 8
dec edi
jne 0x40aab8
lea eax, [ebp - 0x2d9]
test eax, eax
je 0x40ab57
lea eax, [ebp - 0x1d8]
test eax, eax
je 0x40ab57
mov eax, dword [ebp - 4]
push dword [eax]
push 0x40abe0
lea eax, [ebp - 0xcd4]
lea edx, [ebp - 0x2d9]
call fcn.00403970
push dword [ebp - 0xcd4]
push 0x40abf8
lea eax, [ebp - 0xcd8]
lea edx, [ebp - 0x1d8]
call fcn.00403970
push dword [ebp - 0xcd8]
push 0x40abf8
push 0x40ac04
mov eax, dword [ebp - 4]
mov edx, 7
call fcn.00403ad4
inc esi
dec dword [ebp - 0x30]
jne 0x40a946
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abbe
lea eax, [ebp - 0xcd8]
mov edx, 2
call fcn.0040379c
lea eax, [ebp - 0xbd0]
mov edx, 2
call fcn.0040379c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040379c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040379c
lea eax, [ebp - 0x14]
mov edx, dword [0x40a7b0]
call fcn.00404cc8
ret