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

Disassembly:
push 0xffffffffffffffff
push 0x4402f1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x2c], ebx
mov edx, dword [0x45a98c]
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, 0x45a98c
mov dword [esp + 0x20], esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x38]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], esi
call fcn.00422160
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x40b4e4
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x40b4d5
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40b4d5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40b479
cmp eax, dword [esi]
jne 0x40b479
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b4b5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x40b492
call fcn.00403d90
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004279ef
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40b4cc
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40b4e2
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.004016b0
xor ebx, ebx
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x40b547
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x40b521
cmp dword [ecx - 8], ebx
jge 0x40b50f
push 0x80070057
call fcn.00401960
mov dword [ecx - 0xc], ebx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [esp + 0x18]
jmp 0x40b547
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b537
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b563
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x44dee8
lea ecx, [esp + 0x1c]
push ecx
call fcn.004041d0
mov esi, dword [esp + 0x3c]
cmp esi, ebx
jne 0x40b580
xor eax, eax
jmp 0x40b594
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b585
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.004041d0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
lea esp, [esp]
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0040af20
add esp, 8
mov byte [esp + 0x2c], 3
mov eax, dword [eax]
mov edi, dword [edi]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x40b677
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40b666
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40b666
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b609
cmp eax, dword [esi]
jne 0x40b609
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b644
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40b48d
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004279ef
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40b65b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x34]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x40b673
mov ebx, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
call fcn.004016b0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40b6db
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40b6b5
cmp dword [ecx - 8], 0
jl 0x40b505
mov dword [ecx - 0xc], 0
mov eax, dword [esp + 0x18]
xor edx, edx
mov word [eax], dx
mov ecx, dword [esp + 0x18]
jmp 0x40b6db
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jg 0x40b71d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 3
mov dword [esp + 0x1c], eax
jl 0x40b5b0
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jle 0x40b790
lea eax, [ebx - 0x10]
mov byte [esp + 0x2c], 0
cmp dword [eax + 4], 0
mov esi, dword [eax]
je 0x40bb0f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40b763
cmp dword [ebx - 8], 0
jge 0x40b752
push 0x80070057
call fcn.00401960
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
jmp 0x40bb0f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b779
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, eax
jmp 0x40bb0f
mov edx, str.d94236b44e637d51c48394d33b3f5049
lea ecx, [esp + 0x18]
call fcn.00422350
mov byte [esp + 0x2c], 4
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x40b854
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x40b847
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40b847
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b7eb
cmp eax, dword [esi]
jne 0x40b7eb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b827
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40b804
call fcn.00403d90
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004279ef
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40b83e
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40b854
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.004016b0
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
xor ebp, ebp
cmp dword [eax + 4], ebp
je 0x40b8b9
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x40b893
cmp dword [ecx - 8], ebp
jge 0x40b881
push 0x80070057
call fcn.00401960
mov dword [ecx - 0xc], ebp
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [esp + 0x18]
jmp 0x40b8b9
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x44dee8
lea ecx, [esp + 0x1c]
push ecx
call fcn.004041d0
mov esi, dword [esp + 0x3c]
cmp esi, ebp
jne 0x40b8f2
xor eax, eax
jmp 0x40b906
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40b8f7
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.004041d0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
lea ebx, [ebx]
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0040af20
add esp, 8
mov byte [esp + 0x2c], 5
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
mov edi, dword [ecx]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x40b9f1
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40b9de
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40b9de
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b981
cmp eax, dword [esi]
jne 0x40b981
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b9bc
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40b48d
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004279ef
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40b9d3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x34]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x40b9eb
mov ebx, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
call fcn.004016b0
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebp
lea eax, [ecx - 0x10]
je 0x40ba4e
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x40ba28
cmp dword [ecx - 8], ebp
jl 0x40b505
mov dword [ecx - 0xc], ebp
mov eax, dword [esp + 0x18]
xor edx, edx
mov word [eax], dx
mov ecx, dword [esp + 0x18]
jmp 0x40ba4e
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebp
jg 0x40ba8f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 3
mov dword [esp + 0x1c], eax
jl 0x40b920
mov edx, dword [esi]
mov byte [esp + 0x2c], 0
cmp dword [edx - 0xc], ebp
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
jle 0x40bac7
cmp dword [eax + 4], ebp
je 0x40bb0f
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x40baed
cmp dword [ebx - 8], ebp
jge 0x40babd
push 0x80070057
call fcn.00401960
xor eax, eax
mov dword [ebx - 0xc], ebp
mov word [ebx], ax
jmp 0x40bb0f
cmp dword [eax + 4], ebp
je 0x40bb0f
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x40baed
cmp dword [ebx - 8], ebp
jge 0x40bae3
push 0x80070057
call fcn.00401960
xor ecx, ecx
mov dword [ebx - 0xc], ebp
mov word [ebx], cx
jmp 0x40bb0f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret