Function at 0x40b034
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 0x40b03c
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b4bc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46
lea eax, [ebp - 0xfe]
push eax
mov eax, dword [0x4112c8]
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 0x40b4cc
push 0
push 0
push 0x409
call sub.KERNEL32.DLL_GetDateFormatA
push 0x46
lea eax, [ebp - 0x18a]
push eax
push 0x40b4d8
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 0x40b137
cmp dword [ebp - 0xb0], 0
jne 0x40b137
cmp dword [ebp - 0xa8], 1
jne 0x40b115
mov edx, 0x40b4e4
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
cmp dword [ebp - 0xa8], 2
jne 0x40b1d7
mov edx, 0x40b4e8
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
jmp 0x40b1d7
cmp dword [ebp - 0xb4], 4
jne 0x40b15b
cmp dword [ebp - 0xb0], 0xa
jne 0x40b15b
mov edx, 0x40b4ec
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
jmp 0x40b1d7
cmp dword [ebp - 0xb4], 4
jne 0x40b17f
cmp dword [ebp - 0xb0], 0x5a
jne 0x40b17f
mov edx, 0x40b4f0
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
jmp 0x40b1d7
cmp dword [ebp - 0xb4], 5
jne 0x40b1a3
cmp dword [ebp - 0xb0], 0
jne 0x40b1a3
mov edx, 0x40b4f4
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
jmp 0x40b1d7
cmp dword [ebp - 0xb4], 5
jne 0x40b1c7
cmp dword [ebp - 0xb0], 1
jne 0x40b1c7
mov edx, 0x40b4fc
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
jmp 0x40b1d7
mov edx, 0x40b500
lea eax, [ebp - 0x1d1]
call fcn.00403cc8
lea edx, [ebp - 0x2d8]
mov ax, 0xe7
call fcn.00404d00
push dword [ebp - 0x2d8]
mov eax, esi
call fcn.004099b8
lea edx, [ebp - 0x2dc]
call fcn.00403da0
push dword [ebp - 0x2dc]
lea edx, [ebp - 0x2e0]
mov ax, 0xe6
call fcn.00404d00
push dword [ebp - 0x2e0]
lea edx, [ebp - 0x2e4]
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
call fcn.00403da0
push dword [ebp - 0x2e4]
lea edx, [ebp - 0x2e8]
mov ax, 0xe8
call fcn.00404d00
push dword [ebp - 0x2e8]
lea edx, [ebp - 0x2ec]
mov eax, dword [ebp - 0x18]
shr eax, 0x14
call fcn.00403da0
push dword [ebp - 0x2ec]
lea edx, [ebp - 0x2f0]
mov ax, 0xe9
call fcn.00404d00
push dword [ebp - 0x2f0]
lea edx, [ebp - 0x2f4]
mov eax, dword [ebp - 0x20]
call fcn.00403da0
push dword [ebp - 0x2f4]
lea edx, [ebp - 0x2f8]
mov ax, 0xea
call fcn.00404d00
push dword [ebp - 0x2f8]
lea edx, [ebp - 0x2fc]
mov eax, dword [ebp - 0xb4]
call fcn.00403da0
push dword [ebp - 0x2fc]
push 0x40b50c
lea edx, [ebp - 0x300]
mov eax, dword [ebp - 0xb0]
call fcn.00403da0
push dword [ebp - 0x300]
lea edx, [ebp - 0x304]
mov ax, 0xf3
call fcn.00404d00
push dword [ebp - 0x304]
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0xac]
call fcn.00403da0
push dword [ebp - 0x308]
lea edx, [ebp - 0x30c]
mov ax, 0xeb
call fcn.00404d00
push dword [ebp - 0x30c]
mov eax, ebx
mov ecx, 0x15180
cdq
idiv ecx
lea edx, [ebp - 0x310]
call fcn.00403da0
push dword [ebp - 0x310]
push 0x40b518
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.00403da0
push dword [ebp - 0x314]
push 0x40b524
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov eax, edx
mov ecx, 0x3c
cdq
idiv ecx
lea edx, [ebp - 0x318]
call fcn.00403da0
push dword [ebp - 0x318]
lea edx, [ebp - 0x31c]
mov ax, 0xf2
call fcn.00404d00
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.00404d00
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.00404d00
push dword [ebp - 0x32c]
lea edx, [ebp - 0x330]
xor eax, eax
call fcn.004049bc
push dword [ebp - 0x330]
lea edx, [ebp - 0x334]
mov ax, 0xf1
call fcn.00404d00
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.00404d00
push dword [ebp - 0x33c]
lea eax, [ebp - 0x340]
call fcn.0040740c
push dword [ebp - 0x340]
lea edx, [ebp - 0x344]
mov ax, 0xf0
call fcn.00404d00
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 0x40b4c3
lea eax, [ebp - 0x348]
mov edx, 0x1d
call fcn.004025e8
ret