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

Disassembly:
push 0xffffffffffffffff
push 0x4c7c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
lea eax, [edi + 0xc]
push 4
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebp
call dword [edx + 8]
mov eax, dword [esi]
push 1
lea ecx, [edi + 0x10]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
lea eax, [edi + 0x11]
push 1
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [edi + 0x1c]
push 1
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 4
lea ecx, [edi + 0x14]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x18]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [edi + 0x20]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [edi + 0x24]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 4
lea ebx, [edi + 0x30]
push ebx
mov ecx, esi
call dword [eax + 8]
cmp dword [ebx], ebp
mov dword [esp + 0x14], ebp
jle 0x4a84f2
lea ebx, [edi + 0x34]
lea esp, [esp]
push 0x28
call fcn.004ad909
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x4a8414
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], ebp
mov ebp, eax
mov edx, dword [esi]
push 4
push ebp
mov ecx, esi
mov dword [esp + 0x18], ebp
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 4]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 8]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0xc]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x10]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
mov dword [ebp + 0x20], 0
je 0x4a8484
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 4], edx
jne 0x4a8484
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4a848f
xor ecx, ecx
jmp 0x4a8497
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x4a84c8
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4a84c8
mov ecx, dword [esp + 0x2c]
mov ebp, dword [ebx + 8]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push 1
push ebp
call fcn.0047b030
add esp, 0x14
add ebp, 4
mov dword [ebx + 8], ebp
jmp 0x4a84de
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, ebx
call fcn.004a6e60
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a83f0
mov edx, dword [esi]
push 4
lea ebx, [edi + 0x44]
push ebx
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 4
lea ecx, [edi + 0x48]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x4c]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x50]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x54]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x58]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 1
lea eax, [edi + 0x60]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x64]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [edi + 0x68]
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4a86ce
mov eax, dword [edi + 0x38]
mov ecx, dword [eax]
mov al, byte [ecx + 0x14]
test al, al
jne 0x4a86ce
call fcn.0043f0a0
mov ecx, eax
call fcn.00481fe0
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
mov eax, dword [edi + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [ecx], eax
mov edx, dword [edi + 0x24]
mov dword [ecx + 4], edx
xor eax, eax
lea edx, [edi + 0x28]
lea esp, [esp]
mov ebx, dword [edx]
mov dword [ecx + eax*4 + 8], ebx
inc eax
add edx, 4
cmp eax, 2
jl 0x4a85b0
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004a79c0
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov eax, dword [eax]
add edx, 0x20
test eax, eax
mov byte [esp + 0x24], 1
je 0x4a85e1
inc dword [eax + 4]
mov ecx, dword [edx]
test ecx, ecx
mov dword [edx], eax
je 0x4a85fc
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 4], edx
jne 0x4a85fc
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x24], 0
je 0x4a8622
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x10], eax
jne 0x4a8622
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [edi + 0x38]
mov edx, dword [eax]
mov ecx, dword [eax]
mov edx, dword [edx + 4]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
push 0xc4164000
push edx
mov edx, dword [eax]
push edx
call fcn.00424870
mov ebx, dword [edi + 0x38]
mov ecx, dword [ebx]
add ecx, 8
call fcn.00465170
fsub dword [0x4f7c34]
fst dword [esp + 0x10]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x4a8673
fld dword [0x4f7c34]
fadd st(0), st(0)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [ebx]
push ecx
add eax, 0x20
mov eax, dword [eax]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [ecx], eax
je 0x4a8693
inc dword [eax + 4]
mov ecx, edi
call fcn.004a6ad0
mov eax, dword [edi + 0x38]
mov eax, dword [eax]
push 1
push 1
add eax, 0x20
mov eax, dword [eax]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [ecx], eax
je 0x4a86b8
inc dword [eax + 4]
mov byte [esp + 0x30], 2
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x30], 0
call dword [edx + 0x10]
cmp dword [edi + 0x20], 2
jne 0x4a8915
mov eax, dword [edi + 0x30]
xor ebx, ebx
test eax, eax
mov byte [edi + 0x11], 1
mov byte [edi + 0x1c], 1
jle 0x4a8828
lea ecx, [ecx]
mov eax, dword [edi + 0x38]
mov eax, dword [eax + ebx*4]
mov cl, byte [eax + 0x14]
test cl, cl
jne 0x4a881c
mov ecx, dword [edi + 0x20]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov eax, dword [edi + 0x24]
mov dword [edx + 4], eax
mov dword [esp + 0x28], esp
xor eax, eax
lea ecx, [edi + 0x28]
lea ebx, [ebx]
mov ebp, dword [ecx]
mov dword [edx + eax*4 + 8], ebp
inc eax
add ecx, 4
cmp eax, 2
jl 0x4a8720
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004a79c0
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax]
add edx, 0x20
test eax, eax
mov byte [esp + 0x24], 3
je 0x4a8752
inc dword [eax + 4]
mov ecx, dword [edx]
test ecx, ecx
mov dword [edx], eax
je 0x4a876d
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 4], edx
jne 0x4a876d
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x24], 0
je 0x4a8793
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x18], eax
jne 0x4a8793
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [edi + 0x38]
mov edx, dword [eax + ebx*4]
mov ecx, dword [eax + ebx*4]
mov edx, dword [edx + 4]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x20]
push 0xc4164000
push edx
mov edx, dword [eax]
push edx
call fcn.00424870
mov ebp, dword [edi + 0x38]
mov ecx, dword [ebp + ebx*4]
add ecx, 8
call fcn.00465170
fld dword [0x4f7c34]
fmul dword [0x4f2588]
push 1
lea edx, [esp + 0x14]
push edx
fsubp st(1)
fstp dword [esp + 0x18]
mov eax, dword [ebp + ebx*4]
mov ecx, dword [eax + 0x20]
call fcn.00424750
mov eax, dword [edi + 0x38]
mov eax, dword [eax + ebx*4]
push 1
push 1
add eax, 0x20
mov eax, dword [eax]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [ecx], eax
je 0x4a8806
inc dword [eax + 4]
mov byte [esp + 0x30], 4
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x30], 0
call dword [edx + 0x10]
mov eax, dword [edi + 0x30]
inc ebx
cmp ebx, eax
jl 0x4a86f0
mov eax, dword [edi + 0x24]
cmp eax, 1
je 0x4a8839
cmp eax, 2
jne 0x4a8915
mov ebx, dword [edi + 0x38]
mov ecx, dword [ebx + 4]
add ecx, 8
call fcn.00465170
mov eax, dword [ebx]
mov cl, byte [eax + 0x14]
test cl, cl
fadd dword [0x4f7c34]
fstp dword [esp + 0x10]
jne 0x4a88af
fld dword [esp + 0x10]
add eax, 8
fadd dword [0x4f7cf8]
push 1
lea edx, [esp + 0x18]
push edx
fld st(0)
fcos
fstp dword [eax]
mov eax, dword [edi + 0x38]
fsin
mov eax, dword [eax]
add eax, 0xc
fstp dword [eax]
fld dword [esp + 0x18]
mov eax, dword [edi + 0x38]
fsub dword [0x4f7c34]
fadd dword [0x4f7cf8]
fld dword [0x4f7c34]
fmul dword [0x4f2588]
fsubp st(1)
fstp dword [esp + 0x1c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x20]
call fcn.00424750
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 8]
mov dl, byte [ecx + 0x14]
test dl, dl
jne 0x4a8915
fld dword [esp + 0x10]
mov eax, ecx
fsub dword [0x4f7cf8]
add eax, 8
push 1
fld st(0)
fcos
fstp dword [eax]
mov eax, dword [edi + 0x38]
fsin
mov eax, dword [eax + 8]
add eax, 0xc
fstp dword [eax]
fld dword [esp + 0x14]
mov edi, dword [edi + 0x38]
fsub dword [0x4f7c34]
lea eax, [esp + 0x18]
push eax
fsub dword [0x4f7cf8]
fld dword [0x4f7c34]
fmul dword [0x4f2588]
fsubp st(1)
fstp dword [esp + 0x1c]
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x20]
call fcn.00424750
mov eax, dword [esi + 4]
dec eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esi + 4], eax
jne 0x4a892e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4