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

Disassembly:
push 0xffffffffffffffff
push 0x42a4a1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
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 + 0x1c], ebx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x2c], ebx
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, 0x44130c
mov dword [esp + 0x1c], 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.00416c70
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x40a4c2
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x40a4b5
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40a4b5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40a459
cmp eax, dword [esi]
jne 0x40a459
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a495
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 0x40a472
call fcn.004015e0
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.00419425
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40a4ac
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 0x40a4c2
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00401470
mov byte [esp + 0x2c], 1
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 0x40a4e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x42cf90
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403ef0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x40a504
xor eax, eax
jmp 0x40a51f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a510
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00403ef0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040a0b0
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 0x40a5fe
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40a5f1
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40a5f1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a594
cmp eax, dword [esi]
jne 0x40a594
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a5cf
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 0x40a46d
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.00419425
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40a5e6
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 0x40a5fe
mov ebx, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
call fcn.00401470
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a623
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 0x40a649
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x40a537
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jg 0x40a894
mov edx, 0x437310
lea ecx, [esp + 0x20]
call fcn.00416e50
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 0x40a719
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x40a70c
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40a70c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a6b0
cmp eax, dword [esi]
jne 0x40a6b0
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a6ec
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 0x40a6c9
call fcn.004015e0
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.00419425
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40a703
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 0x40a719
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00401470
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x42cf90
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403ef0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x40a75b
xor eax, eax
jmp 0x40a76f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a760
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00403ef0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040a0b0
add esp, 8
mov byte [esp + 0x2c], 5
mov ebp, dword [esp + 0x34]
mov eax, dword [eax]
mov edi, dword [ebp]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x40a849
cmp dword [edi + 0xc], 0
jl 0x40a83e
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40a83e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a7e2
cmp eax, dword [esi]
jne 0x40a7e2
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a81d
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 0x40a46d
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.00419425
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a836
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x40a849
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00401470
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a86e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jg 0x40a891
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x40a783
mov edx, dword [ebp]
mov byte [esp + 0x2c], 0
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 0x40a8b9
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