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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov dword [esp + 0x14], edx
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [0xa70a24]
test eax, eax
je 0x4cac8c
and dword [esp + 0x54], 0
and dword [esp + 0x50], 0
and dword [esp + 0x60], 0
mov eax, dword [esi + 0x4c]
mov edi, dword [edi]
lea ebx, [esp + 8]
add eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esi + 0x4c], eax
cmp dword [esp + 4], 0
jle 0x4cac72
cmp dword [esi + 0x14], 0
je 0x4cac72
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
cmp edx, dword [esi + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
jne 0x4cab70
cmp eax, ecx
jne 0x4cab70
lea ecx, [esp + 0x18]
call fcn.004c92a1
cmp dword [eax + 0x70], 0
jne 0x4cad56
and dword [esi + 0x14], 0
lea ecx, [esp + 0x18]
jmp 0x4cabad
lea ebx, [esp + 0x18]
mov ecx, ebx
call fcn.004c9289
movsd xmm0, qword [eax + 0x70]
movsd qword [esp + 0x30], xmm0
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x38], ecx
and dword [eax + 0x70], 0
lea ecx, [esp + 0x30]
call fcn.004ca1f4
mov ecx, ebx
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], eax
lea ebx, [esp + 8]
mov dword [esi + 0x1c], edx
call fcn.004c9289
mov byte [eax + 0xe2], 0
test edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
je 0x4cac72
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov dword [esp + 0xc], eax
call fcn.004c92a1
lea ecx, [eax + 0x20]
call fcn.004cb30c
test al, al
jne 0x4cac0c
mov ecx, ebx
call fcn.004c92a1
cmp dword [eax + 0xd8], 0
je 0x4cab20
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
call fcn.004c92a1
xor ebx, ebx
cmp dword [eax + 0x18], 0x3b9aca00
mov ecx, esi
lea edx, [esp + 0x18]
setne bl
call fcn.004cb333
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x30]
mov dword [esp + 0x38], eax
movsd qword [esp + 0x30], xmm0
push ebx
lea ebx, [esp + 0xc]
call fcn.004c9830
pop eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
jmp 0x4cab20
lea esi, [esp + 0x50]
mov ecx, esi
call fcn.0058bfa1
mov ecx, esi
call fcn.004cb2d7
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xa6f7c4
call fcn.0040e00b
test al, al
je 0x4caafd
mov ecx, dword [0xa6f7c4]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x4caafd
mov edi, dword [0xa6f7c4]
mov ecx, dword [edi + 0x20]
lea eax, [edi + 0x1c]
mov dword [esp + 4], eax
test ecx, ecx
je 0x4cace4
mov edx, dword [edi + 0x24]
mov ebx, dword [edi + 0x28]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
and dword [esp + 0x40], 0
jmp 0x4cace6
xor eax, eax
lea ebx, [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [ebx], eax
mov edx, ebx
push 0x9c4cc4
call fcn.0057917a
pop eax
lea eax, [esp + 0x18]
mov ecx, dword [esp + 4]
mov edx, edi
mov dword [ebx], eax
lea eax, [esp + 0x14]
mov dword [ebx + 4], eax
lea eax, [esp + 8]
mov dword [ebx + 8], 0x9c4c54
mov dword [eax], ebx
lea ebx, [esp + 0x50]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov ecx, ebx
push eax
call fcn.00605c1b
pop eax
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
or eax, dword [ebx + 4]
je 0x4cab0c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push ebx
call fcn.00606ebe
pop eax
jmp 0x4cab0c
push 0x2c
pop edx
mov ecx, str.assertion_failed:_N::next_stream_.is_none__
push 0x9c5f94
call fcn.0063cd70
pop eax
ud2