Function at 0x10022740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199f9e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x101df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x1c
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10196241
xorps xmm0, xmm0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
movq qword [ebx + 8], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
lea eax, [ebx + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea esi, [ebx + 0x1c]
mov dword [esi], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea edi, [ebx + 0x28]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x20], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10196241
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea edi, [ebx + 0x30]
mov byte [ebp - 4], 3
push 0x2c
mov dword [ebp - 0x24], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10196241
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea edi, [ebx + 0x40]
mov word [ebx + 0x38], 0x101
mov byte [ebx + 0x3a], 1
push 0x20
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10196241
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp ebx, edi
je 0x100228bb
mov esi, dword [ebx]
mov ecx, ebx
push dword [esi + 4]
push ebx
call fcn.1000a500
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov esi, dword [ebp - 0x14]
mov dword [ebx + 4], 0
mov ecx, dword [ebx]
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [ebx + 4], eax
mov dword [edi + 4], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov edi, dword [ebx + 0xc]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
or ebx, 0xffffffff
test edi, edi
je 0x100228fe
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x100228fe
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x100228fe
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x10022914
mov esi, dword [ebp - 0x10]
mov byte [esi + 0x39], 0
jmp 0x10022e3a
lea ecx, [edx + 0x1c]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
je 0x100229de
mov edi, dword [esi]
test edi, edi
je 0x100229ba
mov eax, dword [esi + 4]
mov dword [ebp + 0x10], eax
cmp edi, eax
je 0x10022967
mov esi, dword [edi + 4]
test esi, esi
je 0x1002295c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002295c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002295c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 8
cmp edi, dword [ebp + 0x10]
jne 0x10022936
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x10022996
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10022a31
mov ecx, edi
push edx
push ecx
call fcn.10196271
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], eax
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov byte [ebp - 4], 6
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x40], eax
cmp edi, eax
je 0x10022d91
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10022a41
mov edx, dword [edi]
cmp dword [eax + 0x10], edx
jge 0x10022a37
mov eax, dword [eax + 8]
jmp 0x10022a3b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10022a27
cmp byte [ecx + 0xd], 0
jne 0x10022a4e
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x10022a50
mov ecx, esi
mov eax, dword [ebx + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x30], edx
test eax, eax
je 0x10022a61
lock inc dword [eax + 4]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x68], eax
mov ecx, dword [edi + 8]
xor bl, bl
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10022a87
cmp dword [ecx + 0xc], 0
seta bl
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 8]
mov esi, eax
mov dword [ebp - 0x28], esi
push 0x10
mov byte [ebp - 4], 8
call fcn.10196241
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10022ad2
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_class_MNN::Backend_.0
mov dword [edi + 0xc], esi
jmp 0x10022ad4
xor edi, edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
cmp dword [esi + 4], 0
mov byte [ebp - 4], 0xa
jne 0x10022b10
test bl, bl
jne 0x10022b10
test edi, edi
je 0x10022afe
lock inc dword [edi + 4]
mov eax, esi
mov ebx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ebx
jmp 0x10022b92
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 4
mov eax, dword [ecx]
push edx
call dword [eax + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10015420
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [eax], 0
mov dword [ebp - 0x4c], ecx
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x10022b92
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10022b92
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10022b92
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
push 0x90
cmp dword [ecx + 0xc], 9
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x58], eax
sete byte [ebp - 0x5c]
call fcn.10196241
mov edx, eax
add esp, 4
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0xb
test edx, edx
je 0x10022c62
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x18]
push dword [ebp - 0x30]
cmp dword [ecx + 8], 5
push eax
sete al
cmp dword [ecx + 4], 2
mov ecx, dword [ebp - 0x14]
movzx eax, al
push eax
sete al
movzx eax, al
push eax
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test ecx, ecx
je 0x10022c04
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x34]
sub esp, 8
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test ebx, ebx
je 0x10022c29
lock inc dword [ebx + 4]
mov ecx, dword [ebp - 0x1c]
sub esp, 8
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x10022c4b
lock inc dword [edi + 4]
mov dword [eax], esi
mov ecx, edx
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
add eax, 0x10
push eax
call fcn.10016c90
mov esi, eax
jmp 0x10022c64
xor esi, esi
mov dword [ebp - 0x30], esi
push 0x10
mov byte [ebp - 4], 0xc
call fcn.10196241
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10022ca3
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_MNN::Pipeline_.0
mov dword [eax + 0xc], esi
jmp 0x10022ca5
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xd
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x10022cd3
mov dword [ecx], esi
mov dword [ecx + 4], eax
add dword [edx + 4], 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
jmp 0x10022d07
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, edx
call fcn.10022550
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x10022d07
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10022d07
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10022d07
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x10022d2c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10022d2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10022d2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
test edi, edi
je 0x10022d52
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10022d52
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10022d52
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
test esi, esi
je 0x10022d7c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10022d7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10022d7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp + 0x10]
add edi, 0x1c
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0x40]
jne 0x10022a15
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
lea edi, [edx + 0xc]
cmp ecx, edi
je 0x10022dcf
mov esi, dword [ecx]
push dword [esi + 4]
push ecx
call fcn.1000a470
mov edx, dword [ebp - 0x20]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edx + 4], 0
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebp + 8]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x24]
lea edi, [edx + 0x14]
cmp ecx, edi
je 0x10022e0a
mov esi, dword [ecx]
push dword [esi + 4]
push ecx
call fcn.1000a470
mov edx, dword [ebp - 0x24]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edx + 4], 0
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [edi + 4], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi + 0x3c], eax
test edi, edi
je 0x10022e3a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10022e3a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10022e3a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc