Function at 0x10228210
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102a3d33
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xb30
mov eax, dword [0x103fb8f8]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xa78], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call dword [0x102ab758]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov eax, dword [ebx + 8]
push esi
push 0
push 0
mov dword [ebp - 0xa74], 0
mov dword [ebp - 0xa64], 0
mov dword [esi + 8], eax
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push 0x470
lea eax, [ebp - 0xa50]
push 0
push eax
call fcn.10257422
mov ecx, dword [esi + 8]
add esp, 0xc
add ecx, 8
mov byte [ebp - 4], 0xb
push dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ebx + 0xc]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x102283d0
lea ecx, [ebp - 0xaf8]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xaf8]
push eax
call fcn.10257328
lea esp, [esp]
mov ecx, dword [esi + 8]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
test al, al
jne 0x102289eb
mov eax, dword [ebx + 0x18]
cmp dword [esi + 0x8c], eax
ja 0x102289eb
jb 0x10228405
mov eax, dword [ebx + 0x14]
cmp dword [esi + 0x88], eax
jae 0x102289eb
mov ecx, dword [esi + 8]
add ecx, 8
call dword [0x102ab2a8]
test al, al
jne 0x10228432
lea ecx, [ebp - 0xac8]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xac8]
push eax
call fcn.10257328
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xa5a]
mov edi, dword [0x102ab2a4]
add ecx, 8
push 0
push 1
push eax
call edi
cmp byte [ebp - 0xa5a], 0
jne 0x102289af
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xa58]
push 0
push 3
push eax
add ecx, 8
call edi
cmp eax, 3
jne 0x10228992
test edx, edx
jne 0x10228992
test byte [ebp - 0xa56], 0x80
je 0x10228497
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xa74]
push edx
push 4
push eax
add ecx, 8
call edi
lea eax, [ebp - 0xa74]
push eax
lea ecx, [esi + 0x7c]
call fcn.100f7480
mov al, byte [ebp - 0xa56]
and al, 0xf
jbe 0x10228975
mov ecx, dword [esi + 8]
movzx eax, al
add ecx, 8
cdq
push edx
push eax
lea eax, [ebp - 0xa68]
push eax
call dword [0x102ab2a0]
mov eax, dword [ebp - 0xa68]
mov byte [ebp - 4], 0xc
cmp dword [eax + 4], 0
jne 0x102284fa
lea ecx, [ebp - 0xae0]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xae0]
push eax
call fcn.10257328
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0xa6c]
push eax
call fcn.1022c720
mov eax, dword [ebp - 0xa68]
lea ecx, [esi + 0x28]
mov eax, dword [eax + 4]
mov byte [ebp - 0xa51], al
lea eax, [ebp - 0xa51]
push eax
call fcn.1022c6c0
lea eax, [ebp - 0xa68]
push eax
lea ecx, [esi + 0x18]
call dword [0x102ab518]
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 0xb
call dword [0x102aba30]
mov al, byte [ebp - 0xa58]
test al, al
je 0x10228659
or edi, 0xffffffff
cmp al, 0xd8
jbe 0x10228585
lea ecx, [ebp - 0xa98]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xa98]
push eax
call fcn.10257328
mov ecx, dword [esi + 8]
movzx eax, al
add ecx, 8
cdq
push edx
push eax
lea eax, [ebp - 0x100]
push eax
call dword [0x102ab2a4]
movzx ecx, byte [ebp - 0xa58]
mov dword [ebp - 0xa6c], eax
mov eax, ecx
mov dword [ebp - 0xa70], edx
cdq
cmp dword [ebp - 0xa6c], eax
jne 0x102286d7
cmp dword [ebp - 0xa70], edx
jne 0x102286d7
lea eax, [ecx*4]
mov ecx, dword [esi + 8]
push 0
push eax
lea eax, [ebp - 0x5e0]
add ecx, 8
push eax
call dword [0x102ab2a4]
mov ecx, edx
mov dword [ebp - 0xa70], eax
movzx edx, byte [ebp - 0xa58]
lea eax, [edx*4]
cmp dword [ebp - 0xa70], eax
jne 0x102286ba
test ecx, ecx
jne 0x102286ba
xor eax, eax
test edx, edx
jle 0x1022864a
lea esp, [esp]
movzx ecx, byte [ebp + eax - 0x100]
inc edi
add edi, ecx
cmp edi, 0xd8
jae 0x1022869d
test edi, edi
js 0x1022869d
mov ecx, dword [ebp + eax*4 - 0x5e0]
inc eax
mov dword [ebp + edi*4 - 0xa50], ecx
cmp eax, edx
jl 0x10228620
lea eax, [ebp - 0xa50]
push eax
lea ecx, [esi + 0xc]
call fcn.1022c8b0
cmp byte [ebp - 0xa57], 0
jbe 0x10228953
lea ecx, [ebp - 0xa60]
call dword [0x102ab758]
mov al, byte [ebp - 0xa57]
mov byte [ebp - 4], 0xd
cmp al, 0x20
jbe 0x102286f4
lea ecx, [ebp - 0xb1c]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb1c]
push eax
call fcn.10257328
lea ecx, [ebp - 0xb10]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb10]
push eax
call fcn.10257328
lea ecx, [ebp - 0xb28]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb28]
push eax
call fcn.10257328
lea ecx, [ebp - 0xb40]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb40]
push eax
call fcn.10257328
mov ecx, dword [esi + 8]
movzx eax, al
add ecx, 8
cdq
push edx
push eax
lea eax, [ebp - 0xa7c]
push eax
call dword [0x102ab2a0]
push eax
lea ecx, [ebp - 0xa60]
call dword [0x102aba2c]
lea ecx, [ebp - 0xa7c]
call dword [0x102aba30]
mov eax, dword [ebp - 0xa60]
mov ecx, dword [eax + 4]
movzx eax, byte [ebp - 0xa57]
cmp ecx, eax
jge 0x10228757
lea ecx, [ebp - 0xabc]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xabc]
push eax
call fcn.10257328
lea eax, [ebp - 0xa64]
push eax
lea ecx, [esi + 0x40]
call fcn.1022c790
movzx eax, byte [ebp - 0xa57]
add dword [ebp - 0xa64], eax
mov ecx, dword [esi + 8]
mov edi, dword [0x102ab2a4]
add ecx, 8
shl eax, 2
push 0
push eax
lea eax, [ebp - 0x280]
push eax
call edi
mov ecx, eax
movzx eax, byte [ebp - 0xa57]
shl eax, 2
cmp ecx, eax
jne 0x10228936
test edx, edx
jne 0x10228936
mov ecx, dword [esi + 8]
push edx
push eax
lea eax, [ebp - 0x180]
add ecx, 8
push eax
call edi
mov cl, byte [ebp - 0xa57]
mov edi, eax
movzx eax, cl
shl eax, 2
cmp edi, eax
jne 0x10228919
test edx, edx
jne 0x10228919
xor al, al
mov byte [ebp - 0xa51], al
cmp al, cl
jae 0x10228871
lea ecx, [ebp - 0xa60]
movzx edi, al
mov dword [ebp - 0xa84], ecx
lea ecx, [ebp - 0xa84]
mov dword [ebp - 0xa80], edi
call dword [0x102ab4d8]
test al, 1
jne 0x10228850
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x200]
push 0
lea eax, [eax + edi*4]
add ecx, 8
mov edi, dword [0x102ab2a4]
push 4
push eax
call edi
cmp eax, 4
jne 0x10228833
test edx, edx
je 0x1022885e
lea ecx, [ebp - 0xb04]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb04]
push eax
call fcn.10257328
mov eax, dword [ebp + edi*4 - 0x180]
mov dword [ebp + edi*4 - 0x200], eax
mov al, byte [ebp - 0xa51]
mov cl, byte [ebp - 0xa57]
add al, 1
jmp 0x102287db
xor al, al
cmp al, cl
mov byte [ebp - 0xa51], al
lea ecx, [ebp - 0xa60]
jae 0x102288fc
mov dword [ebp - 0xa8c], ecx
lea ecx, [ebp - 0xa8c]
movzx edi, al
mov dword [ebp - 0xa88], edi
call dword [0x102ab4d8]
mov byte [ebp - 0xa59], al
lea ecx, [esi + 0x4c]
lea eax, [ebp - 0xa59]
push eax
call fcn.1022c660
lea eax, [ebp - 0x280]
lea eax, [eax + edi*4]
push eax
lea ecx, [esi + 0x58]
call fcn.100f7480
lea eax, [ebp - 0x180]
lea eax, [eax + edi*4]
push eax
lea ecx, [esi + 0x64]
call fcn.100f7480
lea eax, [ebp - 0x200]
lea eax, [eax + edi*4]
push eax
lea ecx, [esi + 0x70]
call fcn.100f7480
mov al, byte [ebp - 0xa51]
mov cl, byte [ebp - 0xa57]
add al, 1
jmp 0x10228873
mov byte [ebp - 4], 0xb
call dword [0x102aba30]
add dword [esi + 0x88], 1
adc dword [esi + 0x8c], 0
jmp 0x102283d0
lea ecx, [ebp - 0xad4]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xad4]
push eax
call fcn.10257328
lea ecx, [ebp - 0xb34]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xb34]
push eax
call fcn.10257328
lea eax, [ebp - 0xa64]
push eax
lea ecx, [esi + 0x40]
call fcn.1022c790
add dword [esi + 0x88], 1
adc dword [esi + 0x8c], 0
jmp 0x102283d0
lea ecx, [ebp - 0xaec]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xaec]
push eax
call fcn.10257328
lea ecx, [ebp - 0xaa4]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xaa4]
push eax
call fcn.10257328
lea ecx, [ebp - 0xab0]
call dword [0x102ab1c0]
push 0x103dd694
lea eax, [ebp - 0xab0]
push eax
call fcn.10257328
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 8]
mov byte [eax + 0x30], 1
mov eax, 0x102289e2
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10257318
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14