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

Disassembly:
push 0xffffffffffffffff
push 0x10029ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003b030]
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 [0x1004130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004130c
call edx
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x2c], ebx
mov edx, dword [0x1004130c]
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, 0x1004130c
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.10016490
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x1000a302
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x1000a2f5
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1000a2f5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x1000a299
cmp eax, dword [esi]
jne 0x1000a299
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000a2d5
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 0x1000a2b2
call fcn.100015c0
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.10018a75
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x1000a2ec
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 0x1000a302
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.10001450
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 0x1000a327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x1002cf60
lea ecx, [esp + 0x1c]
push ecx
call fcn.10003da0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x1000a344
xor eax, eax
jmp 0x1000a35f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a350
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
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.10009ef0
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 0x1000a43e
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x1000a431
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1000a431
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1000a3d4
cmp eax, dword [esi]
jne 0x1000a3d4
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000a40f
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 0x1000a2ad
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.10018a75
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x1000a426
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 0x1000a43e
mov ebx, dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x38]
call fcn.10001450
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 0x1000a463
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 0x1000a489
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 0x1000a377
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jg 0x1000a6d4
mov edx, str.d94236b44e637d51c48394d33b3f5049
lea ecx, [esp + 0x20]
call fcn.10016670
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 0x1000a559
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x1000a54c
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x1000a54c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1000a4f0
cmp eax, dword [esi]
jne 0x1000a4f0
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000a52c
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 0x1000a509
call fcn.100015c0
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.10018a75
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x1000a543
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 0x1000a559
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.10001450
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 0x1000a57e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x1002cf60
lea ecx, [esp + 0x1c]
push ecx
call fcn.10003da0
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x1000a59b
xor eax, eax
jmp 0x1000a5af
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a5a0
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10009ef0
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 0x1000a689
cmp dword [edi + 0xc], 0
jl 0x1000a67e
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1000a67e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1000a622
cmp eax, dword [esi]
jne 0x1000a622
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000a65d
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 0x1000a2ad
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.10018a75
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000a676
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 0x1000a689
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.10001450
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 0x1000a6ae
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 0x1000a6d1
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 0x1000a5c3
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 0x1000a6f9
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