Function at 0x1000d700
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov eax, dword [esi + 0x1130]
mov dword [ebp - 0x20], esi
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1134]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._find_slot
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x1130]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1134]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._find_pagesize
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [esi + 0x1130]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1134]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._find_duplex
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], eax
test byte [0x100258a8], 8
jne 0x1000d9a8
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0xf
mov dword [esp + 4], str.__PS_Adobe_3.0_n
mov dword [esp], eax
call sym._write_spool
cmp eax, 0xf
je 0x1000d800
xor ebx, ebx
test byte [0x100258a8], 4
jne 0x1000d7c8
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], str.WriteSpool_error_n
mov dword [esp + 8], str.PSDRV_WriteHeader
mov dword [esp + 4], 0x100258a8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_16
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
call sym._write_cups_job_ticket
test ebx, ebx
je 0x1000dcf8
mov dword [esp + 0x1c], 0
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x20
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
call eax
mov dword [ebp - 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x1000ddbd
mov dword [esp + 0x14], esi
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov esi, dword [sym.imp.ucrtbase.dll_isprint]
xor edi, edi
sub esp, 0x20
jmp 0x1000d8f0
mov dword [esp], eax
call esi
mov ecx, eax
lea eax, [ebx + 3]
test ecx, ecx
cmove ebx, eax
inc edi
cmp edi, 0x80
je 0x1000d8fb
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + edi]
test al, al
jne 0x1000d8d8
mov eax, ebx
mov ebx, edi
mov edi, eax
mov eax, dword fs:[0x18]
test edi, edi
je 0x1000d9e0
lea edx, [ebx + edi + 3]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], eax
lea edi, [eax + 1]
sub esp, 0xc
mov byte [eax], 0x28
mov eax, dword [ebp - 0x1c]
mov esi, eax
sub eax, 0xffffff80
mov dword [ebp - 0x24], eax
jmp 0x1000d982
mov eax, ebx
mov byte [edi], 0x5c
add edi, 4
shr al, 6
add eax, 0x30
mov byte [edi - 3], al
mov eax, ebx
and ebx, 7
shr al, 3
add ebx, 0x30
and eax, 7
mov byte [edi - 1], bl
add eax, 0x30
mov byte [edi - 2], al
inc esi
cmp dword [ebp - 0x24], esi
je 0x1000da30
movzx ebx, byte [esi]
test bl, bl
je 0x1000da30
movsx eax, bl
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_isprint]
test eax, eax
je 0x1000d950
mov byte [edi], bl
inc edi
jmp 0x1000d978
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0xc], 0x1002cfc0
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PSDRV_WriteHeader
mov dword [esp + 4], 0x100258a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_16
jmp 0x1000d78b
lea edx, [ebx + 1]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], eax
sub esp, 0xc
mov edx, eax
cmp ebx, 4
jae 0x1000dd38
test ebx, ebx
je 0x1000da23
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
mov byte [edx], al
test bl, 2
jne 0x1000dd75
mov eax, dword [ebp - 0x2c]
mov byte [eax + ebx], 0
jmp 0x1000da38
mov eax, 0x29
mov word [edi], ax
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x1c], eax
call eax
mov dword [esp + 4], 0
add eax, 0xa5
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000dd8a
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x1130]
mov eax, dword [edx + 0x48]
test al, 2
je 0x1000dc80
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1000dc80
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1000dd53
cvttss2si ecx, dword [eax]
cvttss2si ebx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
cvttss2si ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
cvttss2si ecx, dword [eax + 8]
cmp word [edx + 0x4c], 2
mov eax, 0x1002cfad
mov edx, 0x1002cfb7
mov dword [esp + 0x14], ecx
cmovne eax, edx
mov dword [esp + 0x18], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], str.____Creator:_Wine_PostScript_Driver_n____Title:__s_n____BoundingBox:__d__d__d__d_n____Pages:__atend__n____Orientation:__s_n____EndComments_n
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov ebx, dword fs:[0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
call sym._sprintf
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], edi
call eax
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._write_spool
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edi, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], 0xe
mov dword [esp + 4], str.__BeginProlog_n
mov dword [esp], edi
call sym._write_spool
mov dword [esp + 8], 0x127
mov dword [esp + 4], str._tmpmtrx_matrix_def_n_hatch__n__pathbbox_n___b_exch_def__r_exch_def__t_exch_def__l_exch_def__gap_32_def_n__l_cvi_gap_idiv_gap_mul_n__gap_n__r_cvi_gap_idiv_gap_mul_n__t_moveto_0_b_t_sub_rlineto_n__for_n_bind_def_n_B_pop_pop_pop_pop_def_n_N_newpath_def_n_havetype42gdir_version_cvi_2015_ge_bind_def_n
mov dword [esp], edi
call sym._write_spool
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.__EndProlog_n
mov dword [esp], edi
call sym._write_spool
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.__BeginSetup_n
mov dword [esp], edi
call sym._write_spool
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x1000dc06
mov eax, dword [edx + 0x10]
test eax, eax
je 0x1000dc06
mov ecx, dword [edx + 8]
mov dword [esp], eax
mov edx, str.InputSlot
mov eax, edi
call sym._PSDRV_WriteFeature.isra.0
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x1000dc27
mov eax, dword [edx + 0x10]
test eax, eax
je 0x1000dc27
mov ecx, dword [edx + 8]
mov dword [esp], eax
mov edx, str.PageSize
mov eax, dword [ebp - 0x20]
call sym._PSDRV_WriteFeature.isra.0
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1000dc48
mov eax, dword [edx + 0x10]
test eax, eax
je 0x1000dc48
mov ecx, dword [edx + 8]
mov dword [esp], eax
mov edx, str.Duplex
mov eax, dword [ebp - 0x20]
call sym._PSDRV_WriteFeature.isra.0
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0xb
mov ebx, 1
mov dword [esp + 4], str.__EndSetup_n
mov dword [esp], eax
call sym._write_spool
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and eax, 0xc
cmp eax, 0xc
je 0x1000dca0
mov dword [ebp - 0x38], 0
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x24], 0
jmp 0x1000dae7
movsx eax, word [edx + 0x52]
pxor xmm1, xmm1
pxor xmm0, xmm0
movsd xmm3, qword [0x1002d0e0]
movsd xmm2, qword [0x1002d0e8]
mov dword [ebp - 0x38], 0
cvtsi2sd xmm1, eax
movsx eax, word [edx + 0x50]
mov dword [ebp - 0x24], 0
cvtsi2sd xmm0, eax
mulsd xmm1, xmm3
mulsd xmm0, xmm3
divsd xmm1, xmm2
divsd xmm0, xmm2
cvttsd2si ecx, xmm1
cvttsd2si ebx, xmm0
jmp 0x1000dae7
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
call eax
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
mov byte [eax], 0
jmp 0x1000da61
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebx - 1]
shr ecx, 2
mov eax, dword [esi + ebx - 4]
mov dword [edi + ebx - 4], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x1000da23
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov eax, dword [eax + 0x18]
cvttss2si ecx, dword [eax]
cvttss2si ebx, dword [eax + 4]
jmp 0x1000dae7
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
movzx eax, word [eax + ebx - 2]
mov word [edx + ebx - 2], ax
jmp 0x1000da23
test byte [0x100258a8], 4
jne 0x1000ddcf
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], 0
xor ebx, ebx
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 esi
sub esp, 0xc
jmp 0x1000d7b6
mov dword [ebp - 0x2c], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1000da61
mov dword [esp + 0xc], str.HeapAlloc_failed_n
mov dword [esp + 8], str.PSDRV_WriteHeader
mov dword [esp + 4], 0x100258a8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_16
jmp 0x1000dd93