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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov dword [ecx + 0xbc], 0
mov dword [ecx + 0xb8], 0
mov dword [ecx + 0xac], 0
mov edi, ecx
lea eax, [ecx + 0x74]
mov esi, dword [ecx + 0x70]
mov dword [ecx + 0x70], 4
cmp esi, 3
je 0x665a19
mov bl, 1
cmp esi, 4
je 0x665e29
movsd xmm1, qword [eax + 8]
movsd xmm2, qword [edi + 0xa0]
mov ecx, dword [eax + 0x10]
movsd xmm0, qword [eax]
mov eax, dword [edi + 0x38]
movsd qword [esp + 0x20], xmm1
movsd xmm1, qword [edi + 0x98]
movsd qword [esp + 0x70], xmm2
movsd xmm2, qword [edi + 0x88]
cmp eax, 3
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x68], xmm1
movsd xmm1, qword [edi + 0x90]
movsd qword [esp + 0x58], xmm2
movsd qword [esp + 0x60], xmm1
je 0x665ddd
cmp eax, 1
je 0x665dc6
test eax, eax
jne 0x665ddd
mov ecx, dword [edi + 0x3c]
lea eax, [edi + 0x48]
push dword [edi + 0x44]
push dword [edi + 0x40]
push eax
call dword [ecx + 0xc]
add esp, 0xc
jmp 0x665ddd
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [edi + 0xc0]
mov edx, dword [edi + 0x84]
lea ecx, [edi + 0xa8]
mov word [esp + 0x88], 0x904
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x84]
add eax, 9
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], edx
lea edx, [esp + 0x50]
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x54], eax
call fcn.00499610
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
mov esi, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, esi
not eax
cmp eax, ecx
cmovae eax, ecx
cmp ebx, eax
mov dword [esp + 0x80], eax
jbe 0x665aee
test eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
je 0x665baf
mov ecx, dword [esp + 0x30]
mov esi, eax
lea eax, [esp + 0x3c]
lea edx, [esp + 0x58]
push ebx
push dword [esp + 0x38]
push eax
push edx
call dword [ecx]
add esp, 0x10
mov dword [esp + 0x60], esi
sub dword [esp + 0x38], esi
add dword [esp + 0x34], esi
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x20], xmm1
jmp 0x665bcf
test ebx, ebx
mov dword [esp + 0x10], 0
je 0x665ca1
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax + 8]
mov eax, edx
mov edx, esi
mov esi, ebx
nop
cmp ecx, edx
mov dword [esp + 0x14], esi
jne 0x665b42
mov ebx, dword [esp + 4]
mov edx, 0x40
mov esi, eax
mov ecx, ebx
call fcn.0042f3d0
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, esi
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
sub ecx, edx
mov dword [esp + 0xc], eax
add edx, dword [esi]
mov esi, dword [esp + 0x14]
cmp ecx, edi
cmovae ecx, edi
mov ebx, ecx
cmp esi, ecx
cmovb ebx, esi
push ebx
push eax
push edx
call fcn.007bd9b0
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, ecx
sub eax, edx
cmp eax, ebx
jb 0x665e62
mov eax, dword [esp + 4]
add edx, ebx
add dword [esp + 0xc], ebx
sub edi, ebx
sub esi, ebx
mov dword [esp + 8], edi
mov dword [eax + 4], edx
mov eax, dword [esp + 0xc]
jne 0x665b20
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x54], eax
jmp 0x665cde
mov dword [esp + 0x1c], 0x93d1f8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0x80b23c
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov edx, eax
not edx
cmp edx, esi
cmovae edx, esi
cmp edx, ecx
jb 0x665e95
mov edx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0xc], edx
je 0x665ca5
mov esi, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 8]
mov ecx, dword [esi + 8]
nop word cs:[eax + eax]
nop dword [eax]
cmp ecx, eax
jne 0x665c36
mov ecx, esi
mov edx, 0x40
call fcn.0042f3d0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x14]
sub ecx, eax
add eax, dword [esi]
mov dword [esp + 8], edi
cmp ecx, edi
cmovae ecx, edi
mov edi, esi
mov esi, ecx
cmp ebx, ecx
cmovb esi, ebx
push esi
push dword [esp + 0x10]
push eax
call fcn.007bd9b0
add esp, 0xc
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edx, ecx
sub edx, eax
cmp edx, esi
jb 0x665e6b
mov edx, dword [esp + 8]
add dword [esp + 0xc], esi
add eax, esi
mov dword [edi + 4], eax
sub edx, esi
sub ebx, esi
mov esi, edi
mov edi, edx
mov dword [esp + 0x14], ebx
jne 0x665c20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
jmp 0x665ca7
mov edx, esi
jmp 0x665ce6
xor eax, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push eax
push dword [esp + 0x10]
push edx
call dword [ecx + 0xc]
add esp, 0xc
mov edx, dword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], edx
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, edx
sub eax, esi
bswap eax
test al, 0xff
jne 0x665e72
cmp edx, 2
jbe 0x665e86
mov esi, edi
mov edi, dword [esp + 4]
shr eax, 8
mov ecx, dword [edi]
mov word [ecx], ax
shr eax, 0x10
cmp dword [esp + 0x10], 0
mov byte [ecx + 2], al
je 0x665d2a
mov edx, dword [edi + 4]
cmp edx, 5
jb 0x665e53
mov eax, dword [edi]
add byte [eax + 4], 0xfc
cmp ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x60]
movsd xmm0, qword [esp + 0x58]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
ja 0x665d5e
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
call dword [ecx + 0xc]
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x665dc2
mov eax, dword [esi + 0x70]
cmp eax, 4
je 0x665d95
cmp eax, 3
je 0x665d7f
cmp eax, 1
je 0x665e33
test eax, eax
jne 0x665d95
mov ecx, dword [esi + 0x74]
lea eax, [esi + 0x80]
push dword [esi + 0x7c]
push dword [esi + 0x78]
push eax
call dword [ecx + 0xc]
add esp, 0xc
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x70], 3
mov dword [esi + 0x74], eax
movsd qword [esi + 0x78], xmm0
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], ecx
xor ebx, ebx
jmp 0x665e29
cmp dword [edi + 0x44], 0
je 0x665ddd
push dword [edi + 0x40]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
movsd xmm1, qword [esp + 0x20]
mov dword [edi + 0x38], esi
movsd xmm0, qword [esp + 0x18]
mov eax, dword [esp + 0x28]
movsd xmm3, qword [esp + 0x58]
movsd xmm2, qword [esp + 0x68]
movsd qword [edi + 0x44], xmm1
movsd xmm1, qword [esp + 0x60]
movsd qword [edi + 0x3c], xmm0
mov dword [edi + 0x4c], eax
movsd qword [edi + 0x50], xmm3
movsd qword [edi + 0x60], xmm2
movsd qword [edi + 0x58], xmm1
movsd xmm1, qword [esp + 0x70]
movsd qword [edi + 0x68], xmm1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esi + 0x7c], 0
je 0x665d95
push dword [esi + 0x78]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x665d95
mov ecx, 4
push 0x828708
call fcn.007c1be0
mov ecx, ebx
mov edx, eax
call fcn.007c1920
mov ecx, esi
call fcn.007c1920
mov ecx, str.assertion_failed:_payload_len_be_0..5_.iter__.all_b_b__0_
mov edx, 0x3e
push 0x8286e8
call fcn.007c1ca0
mov ecx, 3
push 0x8286f8
call fcn.007c1c40
call fcn.007c1920
int3