Function at 0x1000bdd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
test byte [0x1001a0b8], 8
jne 0x1000c030
mov dword [esp + 0x14], 0
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call esi
sub esp, 0x18
mov edi, eax
test eax, eax
jne 0x1000bff0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000be3c
test byte [ebp + 0x1c], 3
jne 0x1000bf00
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000c090
test byte [ebp + 0x1c], 8
jne 0x1000c0d0
mov byte [ebp - 0xd], 0
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
mov edi, eax
js 0x1000c1a8
cmp byte [ebp - 0xd], 0
je 0x1000c1a8
mov dword [ebp + 0x18], 0
test byte [ebp + 0x1c], 3
jne 0x1000bfc8
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], esi
call ebx
mov edx, dword [ebp + 0x1c]
test edx, edx
jne 0x1000bef3
lea eax, [edi - 0x40]
test edi, edi
setg dl
test dl, dl
cmovne edi, eax
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
jle 0x1000c1b4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp + 0x18]
mov esi, eax
test ecx, ecx
je 0x1000c160
test eax, eax
setne dl
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dl
test byte [ebp + 0x1c], 8
je 0x1000be57
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GdiConvertToDevmodeW]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
sub esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
mov edi, eax
js 0x1000c115
movzx edx, byte [ebp - 0xe]
test dl, dl
je 0x1000c115
test byte [ebp + 0x1c], 3
je 0x1000bea8
lea esi, [esi]
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.100029a0
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov edx, dword [ebp + 0x18]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
jmp 0x1000c12d
lea eax, [eax + eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call esi
sub esp, 0x18
jmp 0x1000be2b
mov eax, dword [ebp + 0x10]
call fcn.10002de0
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p__p__s__p__p__ld__n
mov dword [esp + 8], 0x1001e4e4
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000bde6
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
mov edi, eax
jmp 0x1000bea8
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GdiConvertToDevmodeW]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
sub esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
mov edi, eax
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov ecx, dword [ebp + 0x18]
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], esi
call ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
mov edi, eax
test esi, esi
je 0x1000bea8
test eax, eax
jns 0x1000bfc8
jmp 0x1000bea8
mov dword [ebp + 0x18], 0
jmp 0x1000bea8
mov dword [esp], ebx
mov edi, 0xffffffff
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000bef3