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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov ebx, edx
mov edi, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x60], eax
xor eax, eax
mov byte [esp + 0x20], al
mov byte [esp + 0x40], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x1e], al
cmp dword [ecx + 0x3c], 0
je 0x1004db70
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov esi, dword [esi]
mov dword [edx], esi
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov edx, ecx
mov esi, ecx
movzx eax, al
inc eax
shr esi, 7
cmp edx, 0x7f
mov edx, esi
ja 0x1004d9e9
movzx ebx, al
add ebx, ecx
mov ecx, edi
push dword [ebp + 0x10]
call fcn.1004dc6a
test eax, eax
je 0x1004dbfb
mov esi, eax
mov eax, dword [eax + 0x38]
sub eax, dword [esi + 4]
cmp ebx, eax
jbe 0x1004dafe
mov dword [esp], ebx
mov byte [esp + 0x1f], 1
mov ecx, edi
push dword [ebp + 0x10]
call fcn.1004dd5a
test eax, eax
je 0x1004dc1c
mov ebx, eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 4]
lea edx, [esp + 8]
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 esi, dword [esp]
lea eax, [esp + 8]
sub esi, dword [eax]
mov dword [ebx], esi
mov dword [ebx + 4], esi
lea eax, [esp + 0x48]
push 1
push eax
call fcn.10021dea
add esp, 8
lea eax, [esp + 0x48]
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x18], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebx + 8], xmm0
cmp esi, 0xffffffff
je 0x1004dc39
mov byte [esp + 0x1e], 1
cmp byte [esp + 0x40], 0
jne 0x1004dc07
add ebx, 0x58
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
add eax, dword [esp]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
adc edx, 0
mov dword [esp + 0x3c], edx
test ecx, ecx
jne 0x1004daf1
test esi, esi
jne 0x1004dc24
mov byte [esp + 0x40], 1
mov eax, dword [esp]
add dword [edi + 0x60], eax
jmp 0x1004db60
sete byte [esp + 0x1f]
lea eax, [esp + 0x48]
mov ecx, esi
push ebx
push eax
call fcn.1004dcfa
cmp byte [esp + 0x40], 0
jne 0x1004dc07
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], eax
add eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
adc ecx, 0
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x40], 1
add dword [edi + 0x60], ebx
adc dword [edi + 0x64], 0
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
mov ebx, dword [esp + 4]
lea eax, [esp + 0x1f]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x1e]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], 1
cmp byte [esp + 0x40], 0
je 0x1004dbb1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea edi, [esp + 0x20]
push edi
push dword [eax]
call fcn.1004e44a
add esp, 8
cmp byte [edi + 0x20], 0
jne 0x1004dbd6
invalid
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
lea ecx, [esp + 0x48]
call fcn.1004e62a
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + 4]
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.1004e55a
cmp byte [esi + 0x20], 0
je 0x1004dc4e
movsd xmm0, qword [esp + 0x30]
movsd qword [ebx], xmm0
jmp 0x1004dbb8
add dword [edi + 0x78], ebx
adc dword [edi + 0x7c], 0
jmp 0x1004db6c
mov dword [0x1008f8f4], str.__1LZ4FrameDecompressionContext_Compression_mozilla__QAE_XZ
int3
mov eax, dword [esp]
add dword [edi + 0x78], eax
jmp 0x1004dbfe
mov dword [0x1008f8f4], 0x10083516
int3
mov dword [0x1008f8f4], 0x10082d42
int3
mov dword [0x1008f8f4], 0x1008371f
int3