Function at 0x1000e200
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x98
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x120]
mov dword [esp + 4], 0x1002d005
mov dword [esp + 8], eax
lea eax, [ebp - 0x70]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 8], 0x14d
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x1000e486
mov edi, eax
mov eax, dword [ebx + 0x1130]
mov edx, dword [ebx]
cmp word [eax + 0x4c], 2
jne 0x1000e390
mov eax, dword [ebx + 0x1134]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x18], 0xffffffa6
je 0x1000e418
mov dword [esp], edx
mov esi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [esp + 4], 0x71
call esi
sub esp, 8
mov dword [ebp - 0x78], eax
mov dword [esp + 4], 0x70
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov dword [ebp - 0x80], 0xffffffa6
mov dword [ebp - 0x7c], eax
sub esp, 8
mov dword [esp + 4], 0x2a
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp + 4], 0x28
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
sub esp, 8
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x78]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x120]
mov dword [esp + 4], str.____Page:__s__d_n____BeginPageSetup_n_pgsave_save_def_n72__d_div_72__d_div_scale_n_d__d_translate_n1__1_scale_n_d_rotate_n____EndPageSetup_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x70]
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf
mov esi, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
call esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sym._write_spool
mov dword [esp], edi
mov ebx, eax
call esi
mov esi, 1
cmp ebx, eax
je 0x1000e35b
xor esi, esi
test byte [0x100258a8], 4
jne 0x1000e3e8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov esi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [esp + 4], 0x70
call esi
sub esp, 8
mov dword [ebp - 0x78], eax
mov dword [esp + 4], 0x6f
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp + 4], 0x71
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x80], 0
sub esp, 8
sub ecx, eax
mov dword [ebp - 0x7c], ecx
jmp 0x1000e2b9
mov dword [esp + 0xc], str.WriteSpool_error_n
mov dword [esp + 8], str.PSDRV_WriteNewPage
mov dword [esp + 4], 0x100258a8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_16
jmp 0x1000e35b
mov dword [esp], edx
mov esi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [esp + 4], 0x6f
call esi
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp + 4], 0x71
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x74]
sub esp, 8
sub ecx, eax
mov dword [esp + 4], 0x6e
mov eax, dword [ebx]
mov dword [ebp - 0x78], ecx
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp + 4], 0x70
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x80], 0x5a
sub esp, 8
sub ecx, eax
mov dword [ebp - 0x7c], ecx
jmp 0x1000e2b9
xor esi, esi
test byte [0x100258a8], 4
je 0x1000e37f
mov dword [esp + 0xc], str.HeapAlloc_failed_n
mov dword [esp + 8], str.PSDRV_WriteNewPage
mov dword [esp + 4], 0x100258a8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_16
jmp 0x1000e37f