Function at 0x40a620
Capabilities:
Check os version
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4721dc
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x491050]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491050]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
xor ebx, ebx
push 0x31
lea eax, [esp + 0x2d]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
call fcn.00444930
add esp, 0xc
call fcn.0040ed10
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40a6b2
push str.__atl_condVal
push ebx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a6a8
int3
push 0x80004005
call fcn.0040d9e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], ebx
call fcn.0040ed10
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40a703
push str.__atl_condVal
push ebx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a6f9
int3
push 0x80004005
call fcn.0040d9e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push edi
lea ecx, [esp + 0x1c]
push 0x487b5c
push ecx
mov byte [esp + 0xa8], 1
call fcn.0040cd60
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x4892d4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.0040c3a0
mov byte [esp + 0x9c], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40a792
cmp dword [edi + 0xc], ebx
jl 0x40a780
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40a780
push eax
call fcn.0040d130
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.0040d540
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x40a792
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d7e0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x9c], 1
mov edi, dword [esp + 0x1c]
add edi, 0xfffffff0
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jne 0x40a7c6
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a7c6
int3
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40a7dd
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 0x486f97
push esi
call fcn.0043f8a0
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40a918
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 5
je 0x40a8e5
lea ecx, [esp + 0x20]
push ecx
push 0x4892d4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.0040c3a0
mov byte [esp + 0x9c], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40a8a1
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x40a88f
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40a88f
push eax
call fcn.0040d130
add esp, 4
mov ebp, eax
cmp dword [esi], ebx
jne 0x40a870
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a870
int3
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40a886
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x40a8a1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d7e0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x9c], 1
mov edi, dword [esp + 0x1c]
add edi, 0xfffffff0
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jne 0x40a8d5
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a8d5
int3
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jmp 0x40a7d1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x32
or eax, ecx
jge 0x40a906
push 0x32
lea ecx, [esp + 0x18]
call fcn.0040d6a0
mov esi, dword [esp + 0x14]
push 0x31
push esi
lea ecx, [esp + 0x30]
push 0x32
push ecx
call fcn.00440540
add esp, 0x10
push 0x495090
push 0x32
lea edx, [esp + 0x64]
push edx
push str.sam
lea eax, [esp + 0x38]
push eax
push str.data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x487798
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a9e9
add esi, 0xfffffff0
lea edi, [esi + 0xc]
mov byte [esp + 0x9c], bl
cmp dword [edi], ebx
jne 0x40a97f
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a97f
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40a995
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x9c], 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x40a9cc
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40a9cc
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a9e2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, 1
jmp 0x40aa96
push 0x495090
push 0x487798
lea ecx, [esp + 0x30]
push ecx
push str.data
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esi, 0xfffffff0
lea edi, [esi + 0xc]
mov byte [esp + 0x9c], bl
cmp dword [edi], ebx
jne 0x40aa31
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40aa31
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40aa47
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x9c], 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x40aa7e
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00439d00
add esp, 0x14
cmp eax, 1
jne 0x40aa7e
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40aa94
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor al, al
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00439cd0
add esp, 0x8c
ret