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

Disassembly:
push 0xffffffffffffffff
push 0x4294d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43a14c]
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 [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x2c], ebx
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, 0x44030c
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.00415d90
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x40ada2
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x40ad95
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40ad95
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40ad39
cmp eax, dword [esi]
jne 0x40ad39
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ad75
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 0x40ad52
call fcn.00403f80
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.00418525
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40ad8c
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 0x40ada2
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00401450
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 0x40adc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x42bf98
lea ecx, [esp + 0x1c]
push ecx
call fcn.004045b0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x40ade4
xor eax, eax
jmp 0x40adff
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40adf0
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.004045b0
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.0040a990
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 0x40aede
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40aed1
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40aed1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40ae74
cmp eax, dword [esi]
jne 0x40ae74
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40aeaf
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 0x40ad4d
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.00418525
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40aec6
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 0x40aede
mov ebx, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
call fcn.00401450
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 0x40af03
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 0x40af29
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 0x40ae17
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jg 0x40b174
mov edx, 0x4307c8
lea ecx, [esp + 0x20]
call fcn.00415f70
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 0x40aff9
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x40afec
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40afec
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40af90
cmp eax, dword [esi]
jne 0x40af90
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40afcc
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 0x40afa9
call fcn.00403f80
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.00418525
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40afe3
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 0x40aff9
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00401450
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 0x40b01e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x42bf98
lea ecx, [esp + 0x1c]
push ecx
call fcn.004045b0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x40b03b
xor eax, eax
jmp 0x40b04f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b040
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.004045b0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040a990
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 0x40b129
cmp dword [edi + 0xc], 0
jl 0x40b11e
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40b11e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b0c2
cmp eax, dword [esi]
jne 0x40b0c2
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b0fd
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 0x40ad4d
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.00418525
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b116
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 0x40b129
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00401450
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 0x40b14e
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 0x40b171
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 0x40b063
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 0x40b199
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