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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff320
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xcdc], edx
mov dword [ebp - 0xce0], edx
mov dword [ebp - 0xbd4], edx
mov dword [ebp - 0xbd0], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45fae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00405428
call fcn.0045f4c0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x45fa9d
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x45f6e4]
call fcn.004069f0
add esp, 4
mov edx, dword [ebp - 4]
mov eax, 0x108
mov dword [edx], eax
imul dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call sub.rasapi32.dll_RasEnumEntriesA
test eax, eax
jne 0x45fa9d
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA
lea eax, [ebp - 8]
mov edx, 0x105
call fcn.00405b48
lea eax, [ebp - 0xc]
mov edx, 0x105
call fcn.00405b48
cmp dword [ebp - 0xb8], 2
jne 0x45f861
cmp dword [ebp - 0xc4], 5
jb 0x45f861
push 0
push 0x1a
lea eax, [ebp - 8]
call fcn.00405918
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x45f828
lea edx, [ebp - 0xbd0]
mov eax, dword [ebp - 8]
call fcn.0045f410
mov edx, dword [ebp - 0xbd0]
lea eax, [ebp - 8]
call fcn.004054c0
push 0
push 0x23
lea eax, [ebp - 0xc]
call fcn.00405918
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x45f85c
lea edx, [ebp - 0xbd4]
mov eax, dword [ebp - 0xc]
call fcn.0045f410
mov edx, dword [ebp - 0xbd4]
lea eax, [ebp - 0xc]
call fcn.004054c0
call fcn.0045f304
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x45fa9d
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x4e4], 0x41c
mov ebx, esi
shl ebx, 5
add ebx, esi
mov eax, dword [ebp - 4]
lea eax, [eax + ebx*8 + 4]
lea edx, [ebp - 0x4e0]
mov ecx, pe_nt_image_headers32
call fcn.004030ec
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4e4]
push eax
push 0
call sub.rasapi32.dll_RasGetEntryDialParamsA
mov dword [ebp - 0x20], 0x6e8
lea eax, [ebp - 0xbcc]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00403a84
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xbcc], eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
lea edx, [eax + ebx*8 + 4]
lea ecx, [ebp - 0xbcc]
xor eax, eax
call fcn.0045f68c
cmp dword [ebp - 0xb8], 2
jne 0x45fa3f
cmp dword [ebp - 0xc4], 5
jb 0x45fa3f
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x45f920
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
je 0x45fa3f
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x4e0]
call fcn.00405620
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00407580
lea eax, [ebp - 8]
call fcn.00405918
push eax
push 0
push 0x45faf4
mov eax, dword [ebp - 0x10]
call fcn.004058b8
mov edi, eax
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x45f977
lea eax, [ebp - 0xc]
call fcn.00405918
push eax
push 0
push 0x45faf4
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x45f99b
lea eax, [ebp - 8]
call fcn.00405918
push eax
push 0
push 0x45faf4
mov eax, dword [ebp - 0x14]
call fcn.004058b8
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jne 0x45f9bf
lea eax, [ebp - 0xc]
call fcn.00405918
push eax
push 0
push 0x45faf4
mov eax, dword [ebp - 0x14]
call fcn.004058b8
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
test ebx, ebx
jbe 0x45fa3f
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcd4]
call fcn.00406600
lea edx, [ebp - 0xcd4]
lea eax, [ebp - 0x18]
call fcn.0040568c
mov edi, pe_nt_image_headers32
mov ebx, 0x4a7ce8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x18]
call fcn.00405850
jne 0x45fa39
cmp dword [ebx + 4], 0
je 0x45fa39
mov eax, dword [ebx + 4]
mov dword [ebp - 0xcd8], eax
mov eax, dword [ebp - 0xcd8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x45fa21
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 4]
call fcn.004058b8
mov edx, eax
lea eax, [ebp - 0x1dc]
mov ecx, dword [ebp - 0x34]
call fcn.0045f508
add ebx, 8
dec edi
jne 0x45f9ec
mov eax, dword [ebp - 0x1c]
push dword [eax]
push 0x45fb0c
lea eax, [ebp - 0xcdc]
lea edx, [ebp - 0x2dd]
call fcn.00405620
push dword [ebp - 0xcdc]
push 0x45fb1c
lea eax, [ebp - 0xce0]
lea edx, [ebp - 0x1dc]
call fcn.00405620
push dword [ebp - 0xce0]
push 0x45fb28
push 0x45fb34
mov eax, dword [ebp - 0x1c]
mov edx, 7
call fcn.004057bc
inc esi
dec dword [ebp - 0x30]
jne 0x45f87a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45faed
lea eax, [ebp - 0xce0]
mov edx, 2
call fcn.0040544c
lea eax, [ebp - 0xbd4]
mov edx, 2
call fcn.0040544c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.0040544c
lea eax, [ebp - 4]
mov edx, dword [0x45f6e4]
call fcn.004069fc
ret