Function at 0x10010240
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e7bf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x100b1040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x28]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x10]
push eax
movups xmmword [ebp - 0x44], xmm0
call fcn.10002750
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov eax, dword [ebx + 0x2c]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x48]
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x30]
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.10002750
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
mov eax, dword [ebx + 0x4c]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x68]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebx + 0x50]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.10002750
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
mov eax, dword [ebx + 0x6c]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x88]
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x94], eax
lea eax, [ebx + 0x70]
push eax
movups xmmword [ebp - 0x84], xmm0
call fcn.10002750
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x54], eax
je 0x1001038c
mov esi, dword [ebp - 0x94]
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x34], esi
je 0x1001038f
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push edi
cmova eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
push eax
call fcn.100023b0
test eax, eax
jne 0x1001038f
lea ecx, [ebp - 0x54]
call fcn.1000cd90
lea ecx, [ebp - 0x34]
call fcn.1000cd90
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x54], eax
jne 0x10010353
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
cmova ecx, dword [ebp - 0x30]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x64]
cmp edi, eax
ja 0x100103ca
cmp eax, 7
mov dword [ebx + 0x60], edi
lea eax, [edi + edi]
push eax
lea esi, [ebx + 0x50]
cmova esi, dword [ebx + 0x50]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100103da
push ecx
push dword [ebp - 0x98]
lea ecx, [ebx + 0x50]
push edi
call fcn.1000f2a0
cmp dword [ebp - 0x3c], 7
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x40]
cmova ecx, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x24]
cmp edi, eax
ja 0x10010418
cmp eax, 7
mov dword [ebx + 0x20], edi
lea eax, [edi + edi]
push eax
lea esi, [ebx + 0x10]
cmova esi, dword [ebx + 0x10]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10010428
push ecx
push dword [ebp - 0x98]
lea ecx, [ebx + 0x10]
push edi
call fcn.1000f2a0
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
lea ecx, [esi + 4]
lea eax, [ebx + 0x10]
push eax
call fcn.10002750
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 8
lea ecx, [esi + 0x24]
mov eax, dword [ebx + 0x4c]
mov dword [esi + 0x20], eax
lea eax, [ebx + 0x50]
push eax
call fcn.10002750
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebx + 0x68]
mov dword [esi + 0x3c], eax
cmp ecx, 7
jbe 0x1001049e
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010494
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x100104d8
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100104ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp ecx, 7
jbe 0x10010526
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001051c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x10010560
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010556
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebx + 0x24]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 7
jbe 0x100105ae
mov edx, dword [ebx + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100105a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebx + 0x44]
xor eax, eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 7
mov word [ebx + 0x10], ax
cmp ecx, 7
jbe 0x100105fc
mov edx, dword [ebx + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100105f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebx + 0x64]
xor eax, eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 7
mov word [ebx + 0x30], ax
cmp ecx, 7
jbe 0x10010646
mov edx, dword [ebx + 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001063c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010689
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov ecx, dword [ebx + 0x84]
xor eax, eax
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 7
mov word [ebx + 0x50], ax
cmp ecx, 7
jbe 0x10010699
mov edx, dword [ebx + 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001068f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001068f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007c4e8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007c18b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret