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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov dword [esp + 0x80], edx
mov ebx, dword [ebp + 0xc]
mov edx, ecx
mov eax, dword [0x94bccc]
test eax, eax
je 0x661daa
mov eax, dword [edx + 0x3c]
mov esi, dword [ebx + 0x20]
mov edi, dword [ebx + 0x24]
mov dword [edx + 0x3c], 0
cmp eax, 1
je 0x661c1e
cmp eax, 2
jne 0x6621d1
mov eax, dword [0x94bccc]
test eax, eax
je 0x661f01
mov eax, dword [ebx]
cmp eax, 1
je 0x6620aa
test eax, eax
jne 0x6620cb
mov ecx, dword [ebx + 4]
lea eax, [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call dword [ecx + 0xc]
add esp, 0xc
jmp 0x6620cb
mov dword [esp + 0x24], edx
movsd xmm0, qword [ebx + 0x10]
movsd xmm2, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ecx, dword [ebx + 0x30]
movzx eax, byte [ebx + 0x36]
movzx edx, word [ebx + 0x34]
mov ah, byte [ebx + 0x28]
movsd qword [esp + 0x10], xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm2
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1e], al
mov word [esp + 0x1c], dx
mov ebx, dword [esp]
test ebx, ebx
je 0x66207d
cmp ebx, 1
jne 0x6620cb
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], edi
mov edi, 0
mov edx, ecx
sub edx, dword [esp + 0x10]
cmovb edx, edi
mov edi, dword [esp + 0x7c]
cmp dword [esp + 0x14], 0
jne 0x6620b5
test edx, edx
je 0x66208b
mov ecx, dword [ebp + 8]
test ah, ah
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], ecx
je 0x661cb6
or al, 1
mov byte [esp + 0x1e], al
movsd xmm1, qword [esp + 0x10]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp]
cmp dword [ecx + 0x38], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 8]
movsd qword [esp + 0xb8], xmm0
movsd qword [esp + 0xa0], xmm2
movsd qword [esp + 0xa8], xmm1
mov byte [esp + 0x98], 0
jbe 0x6621e5
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x6621e5
imul ebx, esi, 0xf0
mov eax, dword [ecx + ebx]
xor eax, 3
or eax, dword [ecx + ebx + 4]
je 0x6621e5
add ecx, ebx
cmp dword [ecx + 0xcc], edi
jne 0x6621e5
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x98]
add ecx, 0x64
push eax
call fcn.00661260
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 0x38], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
jbe 0x66220c
mov eax, dword [eax + 0x34]
test eax, eax
je 0x66220c
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x66220c
add eax, ebx
cmp dword [eax + 0xcc], edi
jne 0x66220c
cmp dword [eax + 0x3c], 0
jle 0x661da3
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x54]
call fcn.00661390
mov al, 1
jmp 0x6620cd
movzx eax, byte [0x94ab58]
test al, al
je 0x661bc8
movzx eax, al
cmp eax, 1
je 0x661de4
cmp eax, 2
je 0x661e2c
mov ecx, 0x94ab50
mov esi, edx
call fcn.007d3740
mov edx, esi
test al, al
je 0x661bc8
movzx eax, al
cmp eax, 2
je 0x661e2c
mov eax, dword [0x94ab50]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x661bc8
mov edi, edx
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x661e1a
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
mov edx, edi
je 0x661bc8
mov eax, dword [0x94ab50]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x662252
mov edi, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
cmp ecx, 1
mov dword [esp + 0x28], 0x8aa394
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x93d1f8
mov dword [esp + 0x34], 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0
je 0x662252
cmp ecx, 2
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x84], ebx
jbe 0x662252
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov esi, dword [ebx]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x64], 2
test esi, esi
je 0x6620d5
xor edx, edx
cmp esi, 1
jne 0x6620d8
mov edx, dword [ebx + 0xc]
xor esi, esi
sub edx, dword [ebx + 0x10]
cmovb edx, esi
cmp dword [ebx + 0x14], 0
cmovne edx, esi
jmp 0x6620d8
movzx eax, byte [0x94ab64]
test al, al
je 0x661bf3
movzx eax, al
cmp eax, 1
je 0x661f37
cmp eax, 2
je 0x661f7b
mov ecx, 0x94ab5c
call fcn.007d3740
test al, al
je 0x661bf3
movzx eax, al
cmp eax, 2
je 0x661f7b
mov eax, dword [0x94ab5c]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x661bf3
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x661f6b
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x661bf3
mov eax, dword [0x94ab5c]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x662266
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esp], str.not_reclaiming_frame_for_cancelled_stream
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x93d1f8
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
movlps qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], edx
mov edx, esp
mov dword [esp + 0x44], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x48], 0x8a682c
mov dword [esp + 0x54], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x661bf3
cmp dword [0x94bcc0], 0
mov edi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x662052
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea edi, [eax + edi + 8]
lea eax, [esp + 0x98]
push eax
push edi
call dword [esi + 0x28]
add esp, 8
test al, al
je 0x661bf3
lea eax, [esp + 0x98]
push eax
push edi
call dword [esi + 0x2c]
add esp, 8
jmp 0x661bf3
mov ecx, dword [esp + 0xc]
mov edx, ecx
test edx, edx
jne 0x661c9d
cmp ebx, 1
je 0x6620b5
test ebx, ebx
jne 0x6620cb
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push ecx
push dword [esp + 0xc]
push eax
call dword [edx + 0xc]
add esp, 0xc
jmp 0x6620cb
cmp dword [ebx + 0xc], 0
je 0x6620cb
push dword [ebx + 8]
jmp 0x6620bd
test ecx, ecx
je 0x6620cb
push dword [esp + 8]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x88], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x98], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x40]
mov dword [esp + 0xa0], 0x8a682c
mov dword [esp + 0xa4], edx
lea edx, [esp + 0x84]
mov dword [esp + 0xa8], edx
lea edx, [esp + 0x54]
mov dword [esp + 0xac], 0x8aa39c
mov dword [esp + 0xb0], edx
lea edx, [esp + 0x88]
mov dword [esp + 0xb4], edx
lea edx, [esp + 0x98]
mov dword [esp + 0xb8], 0x8a9914
mov dword [esp + 0x8c], edx
lea edx, [esp + 0x8c]
mov dword [esp + 0x90], 3
mov dword [esp + 0x94], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x6621c8
cmp dword [0x94bcc0], 0
mov edi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x6621b0
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea edi, [eax + edi + 8]
mov eax, esp
push eax
push edi
call dword [esi + 0x28]
add esp, 8
test al, al
je 0x6621c8
mov eax, esp
push eax
push edi
call dword [esi + 0x2c]
add esp, 8
mov edx, dword [esp + 0x24]
jmp 0x661bc8
mov ecx, str.wasnt_expecting_a_frame_to_reclaim
mov edx, 0x23
push 0x8aa3d0
call fcn.007ccbe0
lea ecx, [esp + 0x40]
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], 0x828150
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov edx, 0x828168
jmp 0x662231
lea ecx, [esp + 0x40]
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], 0x828150
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov edx, 0x828158
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x47c5e0
mov dword [esp + 0x34], 1
call fcn.007c1b50
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aa378
call fcn.007c2000
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aa3e0
call fcn.007c2000
int3