Function at 0x1006f0d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x70]
mov ecx, dword [ebx + 0x3bb8]
push esi
mov esi, dword [esp + 0x78]
push edi
cmp byte [ecx + 0x4d], al
lea edi, [ebx + 0x3730]
mov dword [esp + 0x18], esi
sete al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebp
movq qword [esp + 0x48], xmm0
movq qword [esp + 0x5c], xmm0
lea eax, [eax*2 + 1]
mov dword [esp + 0x64], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x1e4]
add eax, 0xf
movq qword [esp + 0x40], xmm0
cdq
and edx, 0xf
movq qword [esp + 0x50], xmm0
add edx, eax
mov dword [esp + 0x58], 0
mov eax, dword [edi + 0xc8]
sar edx, 4
cmp byte [ecx + 0x43], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
je 0x1006f18e
cmp dword [ebx + 0x3e08], 0
jne 0x1006f18e
mov ecx, 1
jmp 0x1006f190
xor ecx, ecx
cmp esi, 1
mov dword [esp + 0x20], ecx
mov eax, 3
cmovg eax, edx
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x1006f227
mov eax, dword [ebx + 0x1e8]
xor edx, edx
mov ebp, dword [esp + 0x34]
mov ebx, dword [ebx + 0x3bb8]
mov dword [esp + 0x10], 0x9480
lea edi, [eax*4 + 0xc]
and edi, 0xfffffff0
nop
test edx, edx
jne 0x1006f1d8
xor esi, esi
jmp 0x1006f1db
mov esi, dword [ebx + 0x60]
mov ecx, esi
mov eax, edi
sar eax, cl
mov ecx, 2
imul eax, ebp
sub ecx, esi
shl eax, 4
mov dword [esp + edx*4 + 0x5c], eax
mov eax, 0x40
shl eax, cl
shl eax, 6
mov dword [esp + edx*4 + 0x50], eax
inc edx
cmp edx, dword [esp + 0x1c]
jl 0x1006f1d0
movq xmm0, qword [esp + 0x5c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x40], xmm0
xor edi, edi
lea esi, [ebx + 0x373c]
nop
mov eax, dword [esp + edi*4 + 0x5c]
cmp eax, dword [esi + 0x1c]
je 0x1006f249
push dword [esi]
call fcn.1006eaa0
add esp, 4
mov dword [esi], 0
inc edi
add esi, 4
cmp edi, 3
jl 0x1006f230
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push dword [esp + 0x10]
push ecx
lea eax, [esi + 0x18]
push eax
push esi
push ebx
call fcn.1006fda0
mov ecx, dword [esp + 0x28]
add esp, 0x14
cmp dword [ecx], 0
je 0x1006f360
cmp dword [esp + 0x80], 0
je 0x1006f360
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x28], eax
je 0x1006f317
mov eax, dword [esi + 0xc8]
dec eax
cmp eax, 1
jl 0x1006f301
lea ebx, [eax + eax*4]
mov ebp, eax
shl ebx, 6
nop word [eax + eax]
mov esi, dword [ecx]
push dword [esi + ebx + 0x14]
lea edi, [esi + ebx]
call fcn.1006eaa0
add esp, 4
mov dword [esi + ebx + 0x14], 0
xor esi, esi
nop dword [eax + eax]
push dword [edi + esi*4 + 8]
call fcn.1006eaa0
mov dword [edi + esi*4 + 8], 0
add esp, 4
inc esi
cmp esi, 3
jl 0x1006f2d0
mov ecx, dword [esp + 0x14]
sub ebx, 0x140
sub ebp, 1
jne 0x1006f2b0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
push dword [ecx]
call fcn.1006eaa0
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax], 0
jmp 0x1006f360
cmp eax, 1
jle 0x1006f360
lea edi, [eax - 1]
cmp edi, 1
jl 0x1006f360
mov ebp, dword [esp + 0x10]
lea esi, [edi + edi*4]
shl esi, 6
nop
mov ecx, dword [ecx]
lea eax, [esp + 0x50]
push ebp
push eax
lea eax, [esi + 0x14]
add eax, ecx
push eax
lea eax, [ecx + 8]
add eax, esi
push eax
push ebx
call fcn.1006fda0
mov ecx, dword [esp + 0x28]
add esp, 0x14
add esi, 0xfffffec0
sub edi, 1
jne 0x1006f330
mov ebp, dword [esp + 0x24]
mov eax, dword [ebx + 0x37f4]
lea edx, [ebx + 0x3730]
mov esi, dword [esp + 0x2c]
cmp eax, esi
je 0x1006f387
push eax
lea eax, [ebp + 4]
push eax
call fcn.1006fe10
add esp, 8
lea edx, [ebx + 0x3730]
cmp dword [esp + 0x20], 0
lea edi, [edx + 0x28]
mov eax, dword [esp + 0x10]
movq xmm0, qword [esp + 0x40]
mov ecx, dword [esp + 0x58]
mov dword [edx + 0x34], eax
lea eax, [edx + 0x1c]
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x64]
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 0xc4], esi
mov dword [edx + 0xc8], eax
je 0x1006f602
push dword [esp + 0x1c]
lea eax, [edx + 0x18]
push eax
push edx
push ebx
call fcn.1006ef20
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor esi, esi
nop dword [eax]
cmp dword [ebx + esi*4 + 0x373c], 0
jne 0x1006f425
push dword [edi]
call fcn.1006eac0
add esp, 4
mov dword [ebx + esi*4 + 0x373c], eax
test eax, eax
jne 0x1006f421
push str.Failed_to_allocate_linebuf_plane_
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc esi
add edi, 4
cmp esi, eax
jl 0x1006f3f0
mov esi, dword [esp + 0x18]
cmp esi, 2
jl 0x1006f602
cmp dword [esp + 0x80], 0
je 0x1006f534
mov edi, dword [esp + 0x14]
cmp dword [edi], 0
jne 0x1006f477
push 0x140
push esi
call fcn.1006ea30
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x1006f477
push str.Failed_to_allocate_cdef_worker
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov ebp, dword [esp + 0x2c]
lea edx, [esi - 1]
lea ecx, [edx + edx*4]
mov dword [esp + 0x10], edx
shl ecx, 6
mov dword [esp + 0x20], ecx
nop dword [eax]
mov esi, dword [edi]
add esi, ecx
cmp dword [esi + 0x14], 0
lea eax, [esi + 8]
mov dword [esp + 0x18], eax
jne 0x1006f4ce
push dword [ebx + 0x3764]
push 0x10
call fcn.1006eaf0
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1006f4ca
push str.Failed_to_allocate_srcbuf
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov edi, ebp
cmp dword [eax + esi*4], 0
jne 0x1006f50b
push dword [edi]
call fcn.1006eac0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx + esi*4], eax
test eax, eax
jne 0x1006f503
push str.Failed_to_allocate_colbuf_plane_
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc esi
add edi, 4
cmp esi, ecx
jl 0x1006f4d6
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
sub ecx, 0x140
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], ecx
jne 0x1006f490
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 4], 0
jne 0x1006f602
mov edi, dword [ebx + 0x37f4]
lea eax, [edi + edi*2]
shl eax, 2
push eax
call fcn.1006eac0
add esp, 4
mov dword [ebp + 4], eax
test eax, eax
jne 0x1006f56c
push str.Failed_to_allocate_cdef_row_mt
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
test edi, edi
jle 0x1006f602
xor esi, esi
push 0x18
call fcn.1006eac0
mov ecx, dword [ebp + 4]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebp + 4]
cmp dword [esi + eax], 0
jne 0x1006f5a1
push str.Failed_to_allocate__cdef_row_mt__row_idx_.row_mutex_
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [ebp + 4]
push 0
push 0
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
push 4
call fcn.1006eac0
mov ecx, dword [ebp + 4]
add esp, 4
mov dword [ecx + esi + 4], eax
mov eax, dword [ebp + 4]
cmp dword [eax + esi + 4], 0
jne 0x1006f5de
push str.Failed_to_allocate__cdef_row_mt__row_idx_.row_cond_
push 2
push dword [ebx + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [ebp + 4]
push dword [eax + esi + 4]
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov eax, dword [ebp + 4]
mov dword [eax + esi + 8], 0
add esi, 0xc
sub edi, 1
jne 0x1006f576
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x5c
ret