Function at 0x4105b0
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 0x4992bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d8
mov ecx, dword [0x4b4248]
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x244]
push eax
call fcn.00402f50
lea edi, [esp + 0x240]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4105f4
mov ecx, dword [str.save_]
mov dx, word [0x49c1bc]
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 0x410614
lea edi, [esp + 0x240]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410625
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 0x49b380
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0047736a
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x24], esi
je 0x410985
lea ecx, [esp + 0x348]
call fcn.004609d0
push 0x18
push 1
push 0x60
push 0x80
lea ecx, [esp + 0x358]
mov dword [esp + 0x5fc], 0
call fcn.0045f890
mov ecx, dword [esp + 0x378]
push esi
push 0x9000
push 1
push ecx
call fcn.00477961
add esp, 0x10
lea ecx, [esp + 0x348]
call fcn.0045cfc0
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.00477961
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.00477961
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.00477961
push esi
push 0x40
lea ecx, [esp + 0xa8]
push 1
push ecx
call fcn.00477961
mov eax, dword [0x4b4248]
mov edx, dword [eax + 0xb04]
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.00451da0
push 0
mov ecx, ebx
call fcn.0045d550
mov ecx, eax
call fcn.00457e60
mov eax, dword [ebp + 0x14]
xor edi, edi
xor esi, esi
add eax, 0x30
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
lea eax, [esp + edi + 0xb0]
push eax
call fcn.00401e10
cmp eax, 1
jne 0x410821
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 0x18
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*2]
lea eax, [edx + ecx*4]
push eax
push ebx
push 0x18
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00423740
add esi, 2
inc edi
jmp 0x410891
mov al, byte [esp + edi + 0xb0]
cmp al, 0xd
jne 0x410854
cmp byte [esp + edi + 0xb1], 0xa
jne 0x410854
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
xor esi, esi
inc eax
add ecx, 0x18
inc edi
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jge 0x41089e
jmp 0x410891
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
push 0xff
push 0xff
push 0xff
push 0x18
push edx
mov word [esp + 0x28], 0
mov byte [esp + 0x28], al
lea eax, [esi + esi*2]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
push edx
push ebx
push 0x18
lea eax, [esp + 0x34]
push eax
call fcn.00423740
inc esi
inc edi
cmp edi, 0x190
jb 0x4107b3
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.00423740
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 [0x49b254]
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.00423740
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004771ea
add esp, 4
lea ecx, [esp + 0x348]
mov dword [esp + 0x5ec], 0xffffffff
call fcn.00460820
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