Function at 0x100097d0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1007a852
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x4c]
xor ebx, ebx
push eax
mov dword [0x100923d0], ebx
call fcn.1001d3c0
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0xa0], 1
mov edx, dword [0x10091644]
mov eax, dword [edx + 0xc]
mov ecx, 0x10091644
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xa0], 2
mov edx, dword [0x10091644]
mov eax, dword [edx + 0xc]
mov ecx, 0x10091644
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xa0], 3
mov edx, dword [0x10091644]
mov eax, dword [edx + 0xc]
mov ecx, 0x10091644
call eax
mov edx, dword [0x10091644]
add eax, 0x10
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x10091644
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
lea edi, [esp + 0x28]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa0], 4
call fcn.1001d690
test eax, eax
je 0x10009f05
lea esi, [ebp + 4]
mov dword [ebp], ebx
call fcn.10001400
lea esi, [ebp + 0xc]
mov dword [ebp + 8], ebx
call fcn.10001400
lea esi, [ebp + 0x10]
call fcn.10001400
lea esi, [ebp + 0x14]
call fcn.10001400
lea esi, [ebp + 0x18]
call fcn.10001400
lea esi, [ebp + 0x1c]
call fcn.10001400
mov dword [ebp + 0x20], ebx
xor esi, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
mov dword [esp + 0x1c], esi
je 0x10009c87
mov eax, dword [esp + 0x30]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x10009c87
mov ecx, dword [ecx + esi*4]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.1001d490
mov byte [esp + 0xa0], 5
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x10009986
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x10009975
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009975
call fcn.10004220
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1000996c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x10009982
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.10001dc0
mov edi, dword [esp + 0x18]
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100099ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
je 0x10009a8e
push 0x5c
push edi
call fcn.10057d38
add esp, 8
test eax, eax
je 0x10009a8e
sub eax, edi
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10009a8e
mov eax, dword [edi - 0xc]
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
sub eax, 1
lea ecx, [esp + 0x18]
call fcn.100088d0
lea edi, [esp + 0x24]
mov byte [esp + 0xa0], 6
call fcn.100041a0
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10009a29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10004220
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 7
lea edi, [esp + 0x20]
mov byte [esp + 0xa0], bl
call fcn.1000a250
call fcn.1000a2b0
lea ecx, [esp + 0x40]
push ecx
mov edx, edi
push edx
mov ecx, eax
call fcn.1000b850
test eax, eax
jne 0x10009a9c
mov byte [esp + 0xa0], 4
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 0x10009a8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
add esi, 1
xor ebx, ebx
jmp 0x100098f5
mov eax, dword [esp + 0x40]
cmp eax, 0x64
jle 0x10009aaa
mov eax, 0x13
mov dword [ebp], eax
lea eax, [esp + 0x44]
lea edi, [ebp + 4]
call fcn.100041a0
lea eax, [esp + 0x48]
lea edi, [ebp + 0x14]
call fcn.100041a0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10009adc
mov ecx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x1c], ecx
jb 0x10009ae5
call fcn.10055f58
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
lea eax, [esp + 0x18]
lea edi, [ebp + 0xc]
mov dword [ebp + 8], edx
call fcn.100041a0
lea eax, [esp + 0x24]
lea edi, [ebp + 0x10]
call fcn.100041a0
mov eax, dword [ebp + 0xc]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.10004220
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1000a1b0
lea edi, [ebp + 0x1c]
mov byte [esp + 0xa0], 8
call fcn.100041a0
mov byte [esp + 0xa0], bl
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 0x10009b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.10004220
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xa4], 9
mov eax, dword [ebp + 0x10]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10004220
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xa8], 0xa
mov eax, dword [ebp + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.10004220
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xac], 0xb
call fcn.1000a2b0
push eax
mov byte [esp + 0xb0], bl
call fcn.1000bac0
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
cmp dword [ecx - 4], 1
jle 0x10009bea
mov edx, ecx
mov eax, dword [edx - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10001e60
mov ebx, dword [esp + 0x18]
call fcn.10014e20
mov ebx, eax
test ebx, ebx
je 0x10009c55
lea esi, [esp + 0x7c]
mov ecx, ebx
call fcn.10014ee0
mov esi, 8
mov byte [esp + 0xa0], 0xc
cmp dword [eax + 0x18], esi
jb 0x10009c1b
mov eax, dword [eax + 4]
jmp 0x10009c1e
add eax, 4
mov edx, eax
lea edi, [ebp + 0x18]
call fcn.100013c0
cmp dword [esp + 0x94], esi
jb 0x10009c41
mov edx, dword [esp + 0x80]
push edx
call fcn.100549f0
add esp, 4
mov eax, dword [ebx]
push eax
call fcn.1005552d
add esp, 4
push ebx
call fcn.100549f0
add esp, 4
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [0x100923d0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009c87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xa8]
lea eax, [edi + 0x24]
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x3c], 1
mov byte [esp + 0xa0], 0xd
mov ecx, dword [ebp]
mov dword [edi], ecx
mov ecx, dword [ebp + 4]
mov esi, dword [edi + 4]
add edi, 4
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009d05
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009cfa
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009cfa
call fcn.10004220
mov dword [esp + 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009cef
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10009d05
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov edi, dword [esp + 0xa8]
mov edx, dword [ebp + 8]
mov dword [edi + 8], edx
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
add edi, 0xc
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009d69
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009d5e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009d5e
call fcn.10004220
mov dword [esp + 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009d53
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10009d69
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov edi, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi + 0x10]
add edi, 0x10
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009dc7
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009dbc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009dbc
call fcn.10004220
mov dword [esp + 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009db1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10009dc7
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov edi, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [edi + 0x14]
add edi, 0x14
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009e25
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009e1a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009e1a
call fcn.10004220
mov dword [esp + 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009e0f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10009e25
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov edi, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x18]
mov esi, dword [edi + 0x18]
add edi, 0x18
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009e84
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009e79
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009e79
call fcn.10004220
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009e6b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [edi], ebp
mov ebp, dword [esp + 0xac]
jmp 0x10009e84
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov edi, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [edi + 0x1c]
add edi, 0x1c
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10009ee3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009ed8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10009ed8
call fcn.10004220
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10009eca
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [edi], ebp
mov ebp, dword [esp + 0xac]
jmp 0x10009ee3
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.10001dc0
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0xa8]
push eax
mov dword [edx + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x100923cc], 1
mov ebx, dword [0x100923d0]
mov byte [esp + 0xa0], 3
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 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 0x10009fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
xor ebp, ebp
cmp eax, ebp
je 0x10009fb6
push eax
call fcn.100549f0
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
mov esi, dword [esp + 0x70]
cmp esi, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
je 0x1000a012
mov eax, dword [esp + 0x74]
cmp esi, eax
mov edi, eax
je 0x1000a009
nop
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x10009fe0
mov esi, dword [esp + 0x70]
push esi
call fcn.100549f0
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
je 0x1000a043
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
je 0x1000a043
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8