Function at 0x40d5b0
Capabilities:
Check os version
Get number of processors
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4869bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d8
mov ecx, dword [0x49d228]
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x244]
push eax
call fcn.00402680
lea edi, [esp + 0x240]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d5f4
mov ecx, dword [str.save_]
mov dx, word [0x489b08]
mov eax, dword [ebp + 8]
mov dword [edi], ecx
mov word [edi + 4], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d614
lea edi, [esp + 0x240]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d625
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x240]
and ecx, 3
push 0x489360
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0046570a
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x24], esi
je 0x40d985
lea ecx, [esp + 0x348]
call fcn.0045d450
push 0x18
push 1
push 0x60
push 0x80
lea ecx, [esp + 0x358]
mov dword [esp + 0x5fc], 0
call fcn.0045cbf0
mov ecx, dword [esp + 0x378]
push esi
push 0x9000
push 1
push ecx
call fcn.00465d6a
add esp, 0x10
lea ecx, [esp + 0x348]
call fcn.00459ee0
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push esi
mov dword [esp + 0x44], edx
push 0x24
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x34]
mov dword [esp + 0x50], edx
push 1
push eax
mov dword [esp + 0x5c], edx
call fcn.00465d6a
push esi
xor eax, eax
mov ecx, 0x64
lea edi, [esp + 0xc4]
push 0x190
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc8]
push 1
push ecx
call fcn.00465d6a
xor edx, edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
push esi
mov dword [esp + 0x84], edx
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x94]
push 0x20
mov dword [esp + 0x8c], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x90], edx
push 1
push eax
mov dword [esp + 0x9c], edx
call fcn.00465d6a
push esi
push 0x40
lea ecx, [esp + 0xa8]
push 1
push ecx
call fcn.00465d6a
mov eax, dword [0x49d228]
mov edx, dword [eax + 0xad8]
mov ebx, dword [ebp + 0xc]
add esp, 0x40
push 0
push 0
push 0
mov ecx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
call fcn.0044ff70
push 0
mov ecx, ebx
call fcn.004474f0
mov ecx, eax
call fcn.004547b0
mov eax, dword [ebp + 0x14]
xor edi, edi
xor esi, esi
add eax, 0x1c
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
lea eax, [esp + edi + 0xb0]
push eax
call fcn.00401a70
cmp eax, 1
jne 0x40d821
mov cl, byte [esp + edi + 0xb0]
mov dl, byte [esp + edi + 0xb1]
push 0xff
push 0xff
xor eax, eax
mov word [esp + 0x18], ax
push 0xff
push 0x14
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], cl
push eax
mov byte [esp + 0x25], dl
mov edx, dword [ebp + 0x10]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*2]
push eax
push ebx
push 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0041f0f0
add esi, 2
inc edi
jmp 0x40d891
mov al, byte [esp + edi + 0xb0]
cmp al, 0xd
jne 0x40d854
cmp byte [esp + edi + 0xb1], 0xa
jne 0x40d854
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
xor esi, esi
inc eax
add ecx, 0x14
inc edi
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jge 0x40d89e
jmp 0x40d891
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
push 0xff
push 0xff
push 0xff
push 0x14
push edx
mov word [esp + 0x28], 0
mov byte [esp + 0x28], al
lea eax, [esi + esi*4]
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x30]
push edx
push ebx
push 0x14
lea eax, [esp + 0x34]
push eax
call fcn.0041f0f0
inc esi
inc edi
cmp edi, 0x190
jb 0x40d7b3
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push 0xff
push 0xff
push 0xff
push 0x18
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0xfa]
push edx
push ebx
push 0x18
lea eax, [esp + 0x90]
push eax
call fcn.0041f0f0
mov edx, dword [esp + 0x30]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4d8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x4f0]
push str._d__02d__02d__02d:_02d:_02d
push ecx
call dword [0x489264]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x3c]
add esp, 0x20
push 0xff
push 0xff
push 0xff
push 0x18
push edx
push esi
push ebx
push 0x18
lea eax, [esp + 0x4f8]
push eax
call fcn.0041f0f0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0046558c
add esp, 4
lea ecx, [esp + 0x348]
mov dword [esp + 0x5ec], 0xffffffff
call fcn.0045d2a0
mov eax, 1
mov ecx, dword [esp + 0x5e4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x5e4]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10