Function at 0x1005b89a
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 + 8], edx
mov edi, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x68], eax
xor ebx, ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x26], bl
cmp dword [ecx + 0x3c], 0
je 0x1005ba97
mov dword [esp + 0xc], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push dword [eax + 0xc]
call fcn.1005bbaa
add esp, 4
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, eax
mov edx, eax
movzx ebx, bl
inc ebx
shr edx, 7
cmp ecx, 0x7f
mov ecx, edx
ja 0x1005b8fa
movzx edi, bl
add edi, eax
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.1004dc6a
test eax, eax
je 0x1005bb35
mov esi, eax
mov eax, dword [eax + 0x38]
sub eax, dword [esi + 4]
cmp edi, eax
jbe 0x1005ba27
mov dword [esp + 4], edi
mov byte [esp + 0x27], 1
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.1004dd5a
mov edi, ebx
test eax, eax
je 0x1005bb56
mov ebx, eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 4]
lea edx, [esp + 0x10]
mov ecx, esi
push eax
push edx
call fcn.1004dcfa
movsd xmm0, qword [edi + 0x50]
movsd qword [ebx + 0x40], xmm0
mov eax, dword [ebx + 0x38]
add dword [edi + 0x50], eax
adc dword [edi + 0x54], 0
mov edi, dword [esp + 4]
mov esi, edi
lea eax, [esp + 0x10]
sub esi, dword [eax]
mov dword [ebx], esi
mov dword [ebx + 4], esi
lea eax, [esp + 0x50]
push 1
push eax
call fcn.10021dea
add esp, 8
lea eax, [esp + 0x50]
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x18], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebx + 8], xmm0
cmp esi, 0xffffffff
je 0x1005bb7b
mov byte [esp + 0x26], 1
cmp byte [esp + 0x48], 0
jne 0x1005bb41
add ebx, 0x58
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
add eax, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
adc edx, 0
mov dword [esp + 0x44], edx
test ecx, ecx
jne 0x1005ba0b
test esi, esi
jne 0x1005bb66
mov byte [esp + 0x48], 1
mov eax, edi
mov edi, dword [esp + 0xc]
add dword [edi + 0x60], eax
adc dword [edi + 0x64], 0
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
jmp 0x1005ba97
sete byte [esp + 0x27]
lea eax, [esp + 0x50]
mov ecx, esi
push edi
push eax
call fcn.1004dcfa
cmp byte [esp + 0x48], 0
jne 0x1005bb41
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
add eax, edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
adc ecx, 0
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], 1
add dword [ebx + 0x60], edi
adc dword [ebx + 0x64], 0
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
mov edi, ebx
lea eax, [esp + 0x27]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
lea eax, [esp + 0x26]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x60], 1
cmp byte [esp + 0x48], 0
je 0x1005bad8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea edi, [esp + 0x28]
push edi
push dword [eax]
call fcn.1004e44a
add esp, 8
cmp byte [edi + 0x20], 0
jne 0x1005bb01
xor eax, eax
mov esi, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
lea ecx, [esp + 0x50]
call fcn.1004e62a
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.100375ba
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 4]
movups xmm0, xmmword [eax + 4]
mov edx, dword [eax]
sub esp, 0x10
movups xmmword [esp], xmm0
lea esi, [esp + 0x38]
mov ecx, esi
call fcn.1005bbfa
add esp, 0x10
cmp byte [esi + 0x20], 0
je 0x1005bb90
movsd xmm0, qword [esp + 0x38]
mov esi, dword [esp + 8]
movsd qword [esi], xmm0
jmp 0x1005bae3
add dword [ebx + 0x78], edi
adc dword [ebx + 0x7c], 0
jmp 0x1005ba95
mov dword [0x1008f8f4], str.__1LZ4FrameDecompressionContext_Compression_mozilla__QAE_XZ
int3
mov eax, dword [esp + 4]
add dword [edi + 0x78], eax
adc dword [edi + 0x7c], 0
jmp 0x1005ba97
mov dword [0x1008f8f4], 0x10083516
int3
mov dword [0x1008f8f4], 0x10082d42
int3
mov dword [0x1008f8f4], 0x1008371f
int3