Function at 0x40b520
Capabilities:
Check os version
Get common file path
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x69
push 0
push 0
dec ecx
jne 0x40b528
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b9a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46
lea eax, [ebp - 0xfe]
push eax
mov eax, dword [0x4129a0]
mov eax, dword [eax]
call eax
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x3e8
xor edx, edx
div ecx
mov ebx, eax
mov dword [ebp - 0xb8], 0x94
lea eax, [ebp - 0xb8]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
push 0x46
lea eax, [ebp - 0x144]
push eax
push 0x40b9b8
push 0
push 0
push 0x409
call sub.KERNEL32.DLL_GetDateFormatA
push 0x46
lea eax, [ebp - 0x18a]
push eax
push 0x40b9c4
push 0
push 0
push 0x409
call sub.KERNEL32.DLL_GetTimeFormatA
push pe_nt_image_headers32
lea eax, [ebp - 0x2d1]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
cmp dword [ebp - 0xb4], 4
jne 0x40b623
cmp dword [ebp - 0xb0], 0
jne 0x40b623
cmp dword [ebp - 0xa8], 1
jne 0x40b601
mov edx, 0x40b9d0
lea eax, [ebp - 0x1d1]
call fcn.00403c78
cmp dword [ebp - 0xa8], 2
jne 0x40b6c3
mov edx, 0x40b9d4
lea eax, [ebp - 0x1d1]
call fcn.00403c78
jmp 0x40b6c3
cmp dword [ebp - 0xb4], 4
jne 0x40b647
cmp dword [ebp - 0xb0], 0xa
jne 0x40b647
mov edx, 0x40b9d8
lea eax, [ebp - 0x1d1]
call fcn.00403c78
jmp 0x40b6c3
cmp dword [ebp - 0xb4], 4
jne 0x40b66b
cmp dword [ebp - 0xb0], 0x5a
jne 0x40b66b
mov edx, 0x40b9dc
lea eax, [ebp - 0x1d1]
call fcn.00403c78
jmp 0x40b6c3
cmp dword [ebp - 0xb4], 5
jne 0x40b68f
cmp dword [ebp - 0xb0], 0
jne 0x40b68f
mov edx, 0x40b9e0
lea eax, [ebp - 0x1d1]
call fcn.00403c78
jmp 0x40b6c3
cmp dword [ebp - 0xb4], 5
jne 0x40b6b3
cmp dword [ebp - 0xb0], 1
jne 0x40b6b3
mov edx, 0x40b9e8
lea eax, [ebp - 0x1d1]
call fcn.00403c78
jmp 0x40b6c3
mov edx, 0x40b9ec
lea eax, [ebp - 0x1d1]
call fcn.00403c78
lea edx, [ebp - 0x2d8]
mov ax, 0xe7
call fcn.00404cb0
push dword [ebp - 0x2d8]
mov eax, esi
call fcn.00409ea4
lea edx, [ebp - 0x2dc]
call fcn.00403d50
push dword [ebp - 0x2dc]
lea edx, [ebp - 0x2e0]
mov ax, 0xe6
call fcn.00404cb0
push dword [ebp - 0x2e0]
lea edx, [ebp - 0x2e4]
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
call fcn.00403d50
push dword [ebp - 0x2e4]
lea edx, [ebp - 0x2e8]
mov ax, 0xe8
call fcn.00404cb0
push dword [ebp - 0x2e8]
lea edx, [ebp - 0x2ec]
mov eax, dword [ebp - 0x18]
shr eax, 0x14
call fcn.00403d50
push dword [ebp - 0x2ec]
lea edx, [ebp - 0x2f0]
mov ax, 0xe9
call fcn.00404cb0
push dword [ebp - 0x2f0]
lea edx, [ebp - 0x2f4]
mov eax, dword [ebp - 0x20]
call fcn.00403d50
push dword [ebp - 0x2f4]
lea edx, [ebp - 0x2f8]
mov ax, 0xea
call fcn.00404cb0
push dword [ebp - 0x2f8]
lea edx, [ebp - 0x2fc]
mov eax, dword [ebp - 0xb4]
call fcn.00403d50
push dword [ebp - 0x2fc]
push 0x40b9f8
lea edx, [ebp - 0x300]
mov eax, dword [ebp - 0xb0]
call fcn.00403d50
push dword [ebp - 0x300]
lea edx, [ebp - 0x304]
mov ax, 0xf3
call fcn.00404cb0
push dword [ebp - 0x304]
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0xac]
call fcn.00403d50
push dword [ebp - 0x308]
lea edx, [ebp - 0x30c]
mov ax, 0xeb
call fcn.00404cb0
push dword [ebp - 0x30c]
mov eax, ebx
mov ecx, 0x15180
cdq
idiv ecx
lea edx, [ebp - 0x310]
call fcn.00403d50
push dword [ebp - 0x310]
push 0x40ba04
mov eax, ebx
mov ecx, 0x15180
cdq
idiv ecx
mov edi, edx
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
lea edx, [ebp - 0x314]
call fcn.00403d50
push dword [ebp - 0x314]
push 0x40ba10
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov eax, edx
mov ecx, 0x3c
cdq
idiv ecx
lea edx, [ebp - 0x318]
call fcn.00403d50
push dword [ebp - 0x318]
lea edx, [ebp - 0x31c]
mov ax, 0xf2
call fcn.00404cb0
push dword [ebp - 0x31c]
lea eax, [ebp - 0x320]
lea edx, [ebp - 0x144]
mov ecx, 0x46
call fcn.00402828
push dword [ebp - 0x320]
lea edx, [ebp - 0x324]
mov ax, 0xf4
call fcn.00404cb0
push dword [ebp - 0x324]
lea eax, [ebp - 0x328]
lea edx, [ebp - 0x18a]
mov ecx, 0x46
call fcn.00402828
push dword [ebp - 0x328]
lea edx, [ebp - 0x32c]
mov ax, 0xf5
call fcn.00404cb0
push dword [ebp - 0x32c]
lea edx, [ebp - 0x330]
xor eax, eax
call fcn.0040496c
push dword [ebp - 0x330]
lea edx, [ebp - 0x334]
mov ax, 0xf1
call fcn.00404cb0
push dword [ebp - 0x334]
lea eax, [ebp - 0x338]
lea edx, [ebp - 0xfe]
mov ecx, 0x46
call fcn.00402828
push dword [ebp - 0x338]
lea edx, [ebp - 0x33c]
mov ax, 0xef
call fcn.00404cb0
push dword [ebp - 0x33c]
lea eax, [ebp - 0x340]
call fcn.004078f4
push dword [ebp - 0x340]
lea edx, [ebp - 0x344]
mov ax, 0xf0
call fcn.00404cb0
push dword [ebp - 0x344]
lea eax, [ebp - 0x348]
lea edx, [ebp - 0x2d1]
mov ecx, pe_nt_image_headers32
call fcn.00402828
push dword [ebp - 0x348]
mov eax, dword [ebp - 4]
mov edx, 0x20
call fcn.00402924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9af
lea eax, [ebp - 0x348]
mov edx, 0x1d
call fcn.004025e8
ret