Function at 0x1000b800
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call ebx
mov dword [ebp - 0x18], 0
sub esp, 0x18
test eax, eax
jne 0x1000ba90
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call ebx
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov edi, eax
test eax, eax
jne 0x1000ba48
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1000b8b1
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GdiConvertToDevmodeW]
sub esp, 4
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
movzx ebx, si
test eax, eax
je 0x1000b8cb
cmp si, 0x10
ja 0x1000b8cb
mov eax, 0x15000
bt eax, ebx
jb 0x1000b940
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.winspool.drv_DeviceCapabilitiesW
mov esi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.winspool.drv_DeviceCapabilitiesW
sub esp, 0x14
cmp eax, 0xffffffff
je 0x1000bb00
lea edx, [esi - 0xe]
test dx, 0xfffd
je 0x1000bad8
cmp si, 0xc
jne 0x1000baf0
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], 0x18
shl eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.winspool.drv_DeviceCapabilitiesW
sub esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000ba31
mov eax, dword [ebp - 0x10]
xor esi, esi
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0x14]
add eax, eax
mov dword [ebp - 0x20], eax
lea esi, [esi]
mov dword [esp + 0x1c], 0
add esi, 1
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
sub esp, 0x20
add edi, ecx
add ebx, eax
cmp dword [ebp - 0x14], esi
jne 0x1000b9e0
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
jmp 0x1000b8fb
lea eax, [eax + eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call ebx
sub esp, 0x18
jmp 0x1000b898
mov edi, eax
lea eax, [eax + eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call ebx
sub esp, 0x18
jmp 0x1000b854
shl eax, 7
mov dword [ebp - 0x10], 0x40
jmp 0x1000b996
xor eax, eax
mov dword [ebp - 0x10], 0
jmp 0x1000b996
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x14], 0xffffffff
jmp 0x1000b8fb