Function at 0x40b6b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x54d330
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
cmp edi, eax
jae 0x40b790
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [eax + 0x34]
mov eax, dword [esp + 0x14]
mov di, ax
and eax, 0x3f
mov ebp, eax
shr di, 6
cmp ebp, 0x3f
mov dword [esp + 0x18], ebp
jne 0x40b74d
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [edx + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ebp, ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edx
add eax, ecx
cmp di, bx
mov dword [esp + 0x20], eax
je 0x40b790
cmp di, 0xc
je 0x40b7a7
mov edx, dword [esi]
push 1
push ebx
push ebp
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x30]
cmp edi, eax
jb 0x40b6f5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 4
lea ecx, [esp + 0x24]
call fcn.004562e0
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x10], ecx
ja 0x40b910
mov edi, dword [esp + 0x18]
cmp edi, ebx
jbe 0x40b801
mov eax, dword [esi]
push 1
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [eax + 0x34]
movzx edx, byte [esp + 0x84]
push edx
lea ecx, [esp + 0x28]
call fcn.004565e0
dec edi
jne 0x40b7d4
lea ecx, [esp + 0x4c]
call fcn.004562e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
call fcn.00455db0
push eax
push 0xc
lea ecx, [esp + 0x58]
call fcn.00456700
lea ecx, [esp + 0x4c]
call fcn.00455db0
push eax
mov dword [esp + 0x88], eax
call fcn.004661ba
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40ba88
call fcn.00528076
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov dword [esp + 0x70], ebx
je 0x40b885
nop
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x70]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40b870
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x6c], ebx
je 0x40b8a3
push eax
call fcn.005253e2
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x44]
cmp eax, ecx
mov dword [esp + 0x48], ebx
je 0x40b8e5
lea ebx, [ebx]
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x48]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40b8d0
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x40b790
push eax
call fcn.005253e2
add esp, 4
jmp 0x40b790
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jl 0x40ba83
cmp ecx, eax
jge 0x40ba83
mov eax, dword [ebp + 4]
lea edi, [ecx*4]
add eax, edi
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041e730
add esp, 8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebx
mov byte [esp + 0x7c], 1
jl 0x40ba83
cmp eax, dword [ebp + 8]
jge 0x40ba83
mov ecx, dword [ebp + 4]
lea eax, [edi + ecx + 4]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x88]
push edx
call fcn.0041e730
add esp, 8
push 0x96
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 2
call fcn.004565e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax - 0xc]
lea edx, [ecx + eax + 4]
push edx
lea ecx, [esp + 0x28]
call fcn.004565b0
push ebx
lea ecx, [esp + 0x28]
call fcn.004565e0
mov eax, dword [esp + 0x14]
mov edi, eax
mov al, byte [eax]
cmp al, bl
je 0x40b9d5
lea esp, [esp]
movsx eax, al
push eax
lea ecx, [esp + 0x28]
call fcn.004565e0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b9c0
push ebx
lea ecx, [esp + 0x28]
call fcn.004565e0
push ebx
lea ecx, [esp + 0x28]
call fcn.004565e0
mov edi, dword [esp + 0x84]
mov al, byte [edi]
cmp al, bl
je 0x40ba0b
movsx ecx, al
push ecx
lea ecx, [esp + 0x28]
call fcn.004565e0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b9f6
push ebx
lea ecx, [esp + 0x28]
call fcn.004565e0
push 0x1d
lea ecx, [esp + 0x28]
call fcn.004565e0
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x7c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
add ecx, 2
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0x40b90c
jmp 0x40b7cc
call fcn.0051c508
push edi
lea ecx, [esp + 0x50]
call fcn.00455e00
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00408bc0
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ebp, dword [esp + 0x84]
push ebp
push edi
mov ecx, esi
call fcn.00408af0
push edi
call fcn.004660a2
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
add esp, 4
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x88]
push eax
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [edx + 0x34]
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x20]
mov edx, dword [esi]
add ecx, ebp
push 4
lea eax, [esp + 0x88]
mov dword [esp + 0x88], ecx
push eax
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [edx + 0x38]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov dword [esp + 0x70], ebx
je 0x40bb65
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x70]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40bb50
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x6c], ebx
je 0x40bb83
push eax
call fcn.005253e2
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x44]
cmp eax, ecx
mov dword [esp + 0x48], ebx
je 0x40bbc5
lea ebx, [ebx]
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x48]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40bbb0
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x40bbe3
push eax
call fcn.005253e2
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4