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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x8b1a10
mov eax, dword [ebp + 0x39b0]
mov eax, dword [eax]
test eax, eax
je 0x8b1ad4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x9210]
add eax, 0x54
mov dword [esp], eax
call dword [sym.imp.pthreadGC2.dll_pthread_mutex_lock]
mov eax, dword [ebp + 0x9210]
mov ebx, dword [eax + 0x50]
mov edx, eax
test ebx, ebx
jne 0x8b1a67
cmp byte [eax + 1], 0
je 0x8b1abf
mov ebx, dword [sym.imp.pthreadGC2.dll_pthread_cond_wait]
jmp 0x8b1a49
cmp byte [eax + 1], 0
je 0x8b1abf
lea edx, [eax + 0x54]
add eax, 0x58
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 0x9210]
mov ecx, dword [eax + 0x50]
mov edx, eax
test ecx, ecx
je 0x8b1a43
mov edx, dword [eax + 0x48]
lea edi, [ebp + 0x39b0]
lea esi, [ebp + 0x9210]
mov edx, dword [edx]
movzx ebx, byte [edx + 0x82]
nop
mov eax, dword [eax + 0x48]
sub ebx, 1
mov dword [esp], eax
call fcn.008274d0
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00827410
mov eax, dword [esi]
sub dword [eax + 0x50], 1
cmp ebx, 0xffffffff
jne 0x8b1a80
mov eax, dword [ebp + 0x9210]
add eax, 0x5c
mov dword [esp], eax
call dword [sym.imp.pthreadGC2.dll_pthread_cond_broadcast]
mov edx, dword [ebp + 0x9210]
add edx, 0x54
mov eax, dword [sym.imp.pthreadGC2.dll_pthread_mutex_unlock]
mov dword [esp + 0x40], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov eax, dword [ebp + 0x9210]
mov edi, dword [eax + 0x38]
test edi, edi
je 0x8b1a02
mov dword [esp + 4], ebp
mov dword [esp], 0x88b8d0
call fcn.0083df60
mov eax, dword [ebp + 0x9210]
mov edx, eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x30]
test edx, edx
mov ebx, dword [eax]
je 0x8b1b26
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.00827530
mov eax, dword [ebp + 0x9210]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov dword [ecx + 0xc], ebx
mov eax, dword [eax]
add dword [ebx + 0x2ea0], 1
add edx, 0x30
add edi, 0x48
movzx ecx, byte [eax + 0x82]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x50]
cmp ebx, dword [eax + 0x4c]
jge 0x8b1c89
mov esi, dword [eax + 0x38]
test esi, esi
je 0x8b1ca5
mov dword [esp + 0x1c], ebp
movzx ecx, cl
mov ebp, edx
jmp 0x8b1b88
mov ebx, dword [edi + 8]
cmp ebx, dword [edi + 4]
jge 0x8b1c89
sub ecx, 1
test eax, eax
je 0x8b1ca5
mov eax, dword [ebp]
lea esi, [ebx*4]
add ebx, 1
add esi, dword [edi]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.008274d0
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [edi + 8], ebx
mov eax, dword [ebp + 8]
sub eax, 1
test ecx, ecx
mov dword [ebp + 8], eax
jne 0x8b1b71
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.pthreadGC2.dll_pthread_cond_broadcast]
mov ebp, dword [esp + 0x1c]
add eax, 0x58
mov dword [esp], eax
call edi
mov eax, dword [esp + 0x18]
add eax, 0x44
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x9210]
cmp byte [eax + 2], 0
je 0x8b1bf5
mov edx, dword [eax + 0xc]
mov edx, dword [edx + 0xc]
sub edx, 1
cmp edx, 1
jbe 0x8b1c66
mov ecx, dword [eax + 0x50]
lea edx, [ebp + 0x39b0]
lea esi, [ebp + 0x9210]
test ecx, ecx
je 0x8b1a02
mov eax, dword [eax + 0x48]
mov eax, dword [eax]
movzx ebx, byte [eax + 0x82]
mov eax, dword [esi]
mov dword [esp + 0x18], ebp
mov ebp, esi
mov esi, edx
mov eax, dword [eax + 0x48]
sub ebx, 1
mov dword [esp], eax
call fcn.008274d0
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00827410
mov eax, dword [ebp]
sub dword [eax + 0x50], 1
cmp ebx, 0xffffffff
jne 0x8b1c22
mov ebp, dword [esp + 0x18]
mov edx, edi
mov eax, dword [ebp + 0x9210]
add eax, 0x5c
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp edx
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], 0x88a9c0
call fcn.0083df60
mov eax, dword [ebp + 0x9210]
jmp 0x8b1bf5
mov dword [esp + 8], 0x2f
mov dword [esp + 4], str.encoder_lookahead.c
mov dword [esp], str.dst__i_size___dst__i_max_size
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x30
mov dword [esp + 4], str.encoder_lookahead.c
mov dword [esp], str.src__i_size
call sub.msvcrt.dll__assert
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x64], edi
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x48], ebx
mov ebx, edi
and eax, 3
and ebx, 3
mov dword [esp + 0x4c], ecx
lea ecx, [eax + ebx*4]
mov dword [esp + 0x40], eax
mov eax, edi
mov edi, dword [esp + 0x80]
sar eax, 2
imul eax, edx
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x90]
sar edi, 2
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x74]
add eax, edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x38], eax
movzx eax, byte [ecx + 0xbb75a0]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp ebx, 3
mov ebx, dword [esp + 0x3c]
sete al
imul eax, edx
add eax, dword [esp + 0x38]
add eax, dword [edi + ebx*4]
test cl, 5
jne 0x8b1dc7
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x8b1e60
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], esi
sar ebx, 2
mov dword [esp + 0x84], edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], eax
mov eax, dword [ecx + ebx*4]
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
jmp eax
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
movzx ecx, byte [ecx + 0xbb75b0]
sar ebx, 2
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [esp + 0x40], 3
sete cl
add ecx, dword [esp + 0x38]
add ecx, dword [edi + ebx*4]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [edx*4 + 0xbb7678]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x8b1ea2
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov eax, dword [eax + edi*4]
jmp 0x8b1db2
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov esi, dword [esp + 0x60]
sar ebx, 2
mov eax, dword [ebx*4 + 0xbb764c]
mov dword [esp + 0x74], ebp
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x70], edi
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov edi, dword [esp + 0x64]
mov dword [esp + 0x7c], edx
add esp, 0x6c
jmp eax
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret