Function at 0x10051050
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10171ba9
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101c52b4]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c52b4]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0xbc]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x8c], 1
push eax
pop eax
push eax
lea ecx, [esp + 0x18]
call fcn.10034200
mov byte [esp + 0x8c], 2
mov ah, ah
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
jne 0x1005114e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.10009f70
mov dword [esp + 0x30], 1
mov byte [esp + 0x8c], 1
lea ecx, [esp + 0x14]
call fcn.1001fe80
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x7c], 0x10
jb 0x10051145
mov ecx, dword [esp + 0x68]
push ecx
call fcn.100fcea8
add esp, 4
mov dword [esp + 0x7c], esi
jmp 0x100513b3
push esi
call fcn.10045bc0
add esp, 4
mov eax, eax
mov edx, dword [esi + 0x220]
mov dword [esp + 0x38], edx
mov al, al
lea eax, [esi + 0x8c]
mov dword [esi + 0x220], eax
mov bh, bh
mov ecx, dword [esi + 0x220]
mov ebx, dword [ecx + 0x190]
call fcn.10042900
push eax
pop eax
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x14]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0x54]
push esi
push edx
call fcn.1004c910
add esp, 0x18
mov byte [esp + 0x8c], 3
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x100511c1
mov eax, dword [eax + 4]
jmp 0x100511c4
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.10034200
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x5c], edi
jb 0x100511e9
mov eax, dword [esp + 0x48]
push eax
call fcn.100fcea8
add esp, 4
xor ebx, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
nop
lea ecx, [esp + 0x1c]
call fcn.10100215
mov byte [esp + 0x8c], 6
mov ebp, ebp
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x10179578
push edx
call fcn.1004f530
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
mov esi, esi
mov eax, eax
xor edi, edi
cmp ecx, ebx
jle 0x1005127b
mov eax, dword [esp + 0x20]
jmp 0x10051240
cmp edi, ebx
jl 0x100513df
cmp edi, dword [esp + 0x24]
jge 0x100513df
mov edx, dword [eax + edi*4]
cmp dword [edx - 0xc], ebx
jle 0x10051274
push 1
mov eax, edx
push eax
push 0x64
push esi
call fcn.1004fc70
add esp, 0x10
push ecx
pop ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
add edi, 1
cmp edi, ecx
jl 0x10051240
fld qword [esp + 0xb4]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xa8]
push ebx
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
push eax
push ecx
push edx
push 0x64
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.1004ff80
add esp, 0x30
mov byte [esp + 0x8c], 7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.10009f70
mov byte [esp + 0x8c], 6
cmp dword [esp + 0x5c], 0x10
jb 0x100512f4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100fcea8
add esp, 4
mov edi, 0xf
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov eax, eax
mov edx, dword [esp + 0x38]
mov dword [esi + 0x220], edx
mov ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.10009f70
mov dword [esp + 0x30], 1
mov byte [esp + 0x8c], 5
lea ecx, [esp + 0x1c]
call fcn.1010055d
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005136c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x7c], 0x10
jb 0x100513af
mov ecx, dword [esp + 0x68]
push ecx
call fcn.100fcea8
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x7c
ret
jmp fcn.100fcfa6