Function at 0x100cba70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a09f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebx + 4], 1
mov dword [ebx + 8], eax
mov dword [ebx], vtable.MNN::CPUScale.0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov edx, dword [ebp + 8]
mov eax, 6
mov ecx, edx
mov dword [ebp - 4], 0
sub ecx, dword [edx]
lea edi, [eax + 2]
movzx esi, word [ecx]
cmp ax, si
jae 0x100cbaff
movzx eax, word [ecx + 6]
test ax, ax
je 0x100cbaff
cmp byte [eax + edx], 0x3a
jne 0x100cbaff
cmp di, si
jae 0x100cbaff
movzx eax, word [ecx + 8]
lea ecx, [edx + eax]
test ax, ax
je 0x100cbaff
mov edi, dword [ecx]
add edi, ecx
jmp 0x100cbb01
xor edi, edi
mov ecx, edi
mov edx, 6
sub ecx, dword [edi]
movzx eax, word [ecx]
cmp dx, ax
jae 0x100cbb24
movzx eax, word [ecx + 6]
lea ecx, [edi + eax]
test ax, ax
je 0x100cbb24
mov eax, dword [ecx]
add eax, ecx
jmp 0x100cbb26
xor eax, eax
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [eax + 0xec]
lea esi, [ecx - 1]
add esi, edx
mov eax, esi
cdq
idiv ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
sub esi, edx
imul esi, dword [eax + 0xe8]
lea eax, [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x18], eax
sar eax, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
test eax, eax
je 0x100cbbc2
cmp eax, 0x3fffffff
ja 0x100cbe0e
push eax
lea ecx, [ebp - 0x30]
call fcn.10003730
push dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
lea ecx, [esi + eax*4]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x2c], eax
push 0
mov dword [ebp - 0x14], 0x10801
lea eax, [ebp - 0x30]
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call sym.MNN.dll_public:_static_class_MNN::Tensor____cdecl_MNN::Tensor::createDevice_class_std::vector_int__class_std::allocator_int___const___struct_halide_type_t__enum_MNN::Tensor::DimensionType_
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x10
mov byte [ebp - 4], 2
call fcn.10196241
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100cbc1c
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::Tensor_.0
mov dword [eax + 0xc], esi
jmp 0x100cbc1e
xor eax, eax
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xc], esi
or esi, 0xffffffff
mov dword [ebp - 0x18], ecx
mov dword [ebx + 0x10], eax
test ecx, ecx
je 0x100cbc4f
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100cbc4f
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100cbc4f
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
test edx, edx
je 0x100cbc8c
mov ecx, dword [ebp - 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100cbc82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cbc82
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10196271
add esp, 8
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebx + 0xc]
call sym.MNN.dll_public:_bool___thiscall_MNN::Backend::onAcquireBuffer_class_MNN::Tensor_const___enum_MNN::Backend::StorageType_
test al, al
jne 0x100cbce9
push str.Error_for_alloc_buffer_for_CPUScale_n
call fcn.10001230
mov esi, dword [ebx + 0x10]
add esp, 4
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test esi, esi
je 0x100cbce0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100cbce0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100cbce0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebx + 4], 0
jmp 0x100cbdf8
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + 0xc]
call sym.MNN.dll_public:_int___thiscall_MNN::Tensor::size_void_const
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, 6
cmp dword [edx + 0xe8], 4
jge 0x100cbd46
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0xc]
mov eax, edi
sub eax, dword [edi]
cmp cx, word [eax]
jae 0x100cbd32
movzx eax, word [eax + 6]
lea ecx, [edi + eax]
test ax, ax
je 0x100cbd32
mov eax, dword [ecx]
add eax, ecx
jmp 0x100cbd34
xor eax, eax
push dword [ebp - 0x10]
add eax, 4
push esi
push eax
mov eax, dword [edx + 0xe0]
call eax
jmp 0x100cbd79
mov eax, edi
sub eax, dword [edi]
cmp cx, word [eax]
jae 0x100cbd61
movzx eax, word [eax + 6]
lea edx, [edi + eax]
test ax, ax
je 0x100cbd61
mov ecx, dword [edx]
add ecx, edx
jmp 0x100cbd63
xor ecx, ecx
mov eax, dword [ebp - 0x10]
shl eax, 2
push eax
lea eax, [ecx + 4]
push eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, edi
mov eax, 8
sub ecx, dword [edi]
add esp, 0xc
cmp ax, word [ecx]
jae 0x100cbdf8
movzx eax, word [ecx + 8]
lea edx, [edi + eax]
test ax, ax
je 0x100cbdf8
mov eax, dword [edx]
add eax, edx
je 0x100cbdf8
movzx ecx, word [ecx + 8]
add ecx, edi
mov eax, dword [ecx]
add eax, 4
add eax, ecx
je 0x100cbdf8
mov edx, dword [ebx + 0xc]
mov ecx, edi
mov eax, dword [edx + 0x18]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
add esi, dword [edx + 0xc]
cmp dword [eax + 0xe8], 4
jge 0x100cbddf
call fcn.10006650
push dword [ebp - 0x10]
add eax, 4
push esi
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xe0]
call eax
jmp 0x100cbdf5
mov eax, dword [ebp - 0x10]
shl eax, 2
push eax
call fcn.10006650
add eax, 4
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10003720
int3