Function at 0x10021857
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003ce0b], 0
push ebx
push esi
push edi
mov ebx, 0x1003d238
jne 0x10021871
cmp byte [0x1003ce0a], 0
je 0x1002189e
push str.PDFXTerm
push ebx
call fcn.1001cd9a
cmp byte [0x1003ce0a], 0
pop ecx
pop ecx
je 0x1002188e
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1002189e
push ebx
call fcn.10005ee0
pop ecx
mov eax, dword [0x1003d638]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
je 0x1002199f
jmp 0x10021959
mov edi, dword [eax]
cmp word [edi + 0x2c], si
jne 0x1002191d
mov word [edi + 0x2c], cx
cmp byte [0x1003ce0b], 0
jne 0x100218d3
cmp byte [0x1003ce0a], 0
je 0x10021902
push edi
push str.PDFX_0x_xl_.closing__true
push ebx
call fcn.1001cd9a
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100218f2
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10021902
push ebx
call fcn.10005ee0
pop ecx
mov eax, dword [0x1003d638]
push 2
push dword [edi + 8]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c8]
call esi
pop ecx
pop ecx
xor esi, esi
push edi
mov dword [edi + 8], esi
call fcn.1001cd9a
mov eax, dword [0x1003d638]
mov ecx, dword [edi]
push 4
push esi
push edi
mov dword [eax], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1003d638]
add esp, 0x10
mov esi, dword [eax + 0x28]
mov ecx, esi
push edi
call dword [0x1002f5c8]
call esi
mov eax, dword [0x1003d638]
xor esi, esi
pop ecx
push 1
pop ecx
cmp dword [eax], esi
jne 0x100218b5
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x10021974
push ecx
call fcn.1001cd9a
mov eax, dword [0x1003d638]
pop ecx
push 4
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1003d638]
add esp, 0xc
mov esi, dword [eax + 0x28]
mov ecx, esi
push eax
call dword [0x1002f5c8]
call esi
pop ecx
xor esi, esi
xor ecx, ecx
mov dword [0x1003d638], esi
inc ecx
mov eax, dword [0x1003d63c]
test eax, eax
je 0x10021a97
jmp 0x10021a55
mov edi, dword [eax]
cmp word [edi + 0x2c], si
jne 0x10021a19
mov word [edi + 0x2c], cx
cmp byte [0x1003ce0b], 0
jne 0x100219cf
cmp byte [0x1003ce0a], 0
je 0x100219fe
push edi
push str.PDFX_0x_xl_.closing__true
push ebx
call fcn.1001cd9a
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100219ee
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100219fe
push ebx
call fcn.10005ee0
pop ecx
mov eax, dword [0x1003d63c]
push 2
push dword [edi + 8]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c8]
call esi
pop ecx
pop ecx
xor esi, esi
push edi
mov dword [edi + 8], esi
call fcn.1001cd9a
mov eax, dword [0x1003d63c]
mov ecx, dword [edi]
push 4
push esi
push edi
mov dword [eax], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1003d63c]
add esp, 0x10
mov esi, dword [eax + 0x28]
mov ecx, esi
push edi
call dword [0x1002f5c8]
call esi
mov eax, dword [0x1003d63c]
xor esi, esi
pop ecx
push 1
pop ecx
cmp dword [eax], esi
jne 0x100219b1
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x10021a70
push ecx
call fcn.1001cd9a
mov eax, dword [0x1003d63c]
pop ecx
push 4
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1003d63c]
add esp, 0xc
mov esi, dword [eax + 0x28]
mov ecx, esi
push eax
call dword [0x1002f5c8]
call esi
and dword [0x1003d63c], 0
pop ecx
pop edi
pop esi
pop ebx
ret