Function at 0x49f45c
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f772
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x2c], eax
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x30], eax
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x34], eax
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x38], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3c], eax
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x10]
mov ecx, 0x18
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 9]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 9]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 1]
mov ecx, 1
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
xor eax, eax
mov al, byte [ebp - 1]
cmp eax, 0xb
ja case.0x49f570.0
jmp dword [eax*4 + 0x49f577]
mov byte [ebx + 0x28], 0
jmp case.0x49f570.0
mov byte [ebx + 0x28], 1
jmp case.0x49f570.0
mov byte [ebx + 0x28], 2
jmp case.0x49f570.0
mov byte [ebx + 0x28], 3
jmp case.0x49f570.0
mov byte [ebx + 0x28], 5
jmp case.0x49f570.0
mov byte [ebx + 0x28], 6
jmp case.0x49f570.0
mov byte [ebx + 0x28], 7
jmp case.0x49f570.0
mov byte [ebx + 0x28], 8
jmp case.0x49f570.0
mov byte [ebx + 0x28], 9
jmp case.0x49f570.0
mov byte [ebx + 0x28], 0xa
jmp case.0x49f570.0
mov byte [ebx + 0x28], 0xb
mov eax, ebx
call fcn.0049ce28
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.0049dc40
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0049d8d4
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 4]
mov ecx, dword [0x474870]
call fcn.00405c6c
lea ecx, [ebp - 0x44]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 4]
call fcn.00490abc
mov ecx, dword [ebp - 0x40]
neg ecx
mov edx, dword [ebp - 0x44]
neg edx
mov eax, dword [ebx + 4]
call fcn.0049727c
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x44]
xor edx, edx
call fcn.00475298
mov ebx, dword [ebx + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebx + 0xb4], eax
mov eax, ebx
call fcn.0049f8e0
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x34]
call fcn.004750fc
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xa0], eax
mov eax, dword [0x50d134]
mov esi, eax
lea edi, [ebx + 0x64]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x50d134]
mov esi, eax
lea edi, [ebx + 0x38]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
fild dword [ebx + 0xb0]
fdiv dword [0x49f780]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebx + 0xb4]
fdiv dword [0x49f780]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea eax, [ebp - 0x54]
call fcn.004750e8
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x94], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x98], eax
push 0x3f800000
push 0x3f800000
lea eax, [ebp - 0x54]
call fcn.004750e8
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xac], eax
push 0
push 0
lea eax, [ebp - 0x54]
call fcn.004750e8
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0xb8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xbc], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x94]
mov byte [ebx + 0x89], 0xb
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f779
lea eax, [ebp - 0x4c]
mov edx, dword [0x495b20]
call fcn.00405c30
lea eax, [ebp - 0x48]
mov edx, dword [0x474870]
call fcn.00405c30
ret