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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, str.cvt
push ebx
push ecx
sub esp, 0x5c
mov eax, dword [ecx]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 8
mov dword [ebp - 0x30], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x28], eax
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 - 0x34], eax
call eax
mov ecx, 0x37
mov dword [ebp - 0x1c], 0
mov edi, eax
mov dword [ebp - 0x24], eax
sub esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0xf8], ebx
mov ebx, eax
mov dword [eax + 0xec], 0
lea esi, [esi]
mov eax, dword [ebx]
cmp eax, 0x72696467
je 0x10014170
mov edi, dword [ebp - 0x20]
mov dword [ebx + 4], 0
mov esi, dword [edi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.gdi32.dll_GetFontData]
sub esp, 0x14
mov edi, eax
cmp eax, 0xffffffff
je 0x10014170
lea eax, [eax + 3]
mov dword [esp + 4], 0
and eax, 0xfffffffc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov dword [ebx + 0xc], eax
sub esp, 0xc
test eax, eax
je 0x10014170
lea edx, [edi - 1]
mov dword [ebx + 4], edi
and edx, 0xfffffffc
mov dword [eax + edx], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_GetFontData]
mov edi, dword [ebx + 4]
mov dword [ebx + 8], 0
sub esp, 0x14
lea edx, [edi + 3]
shr edx, 2
je 0x10013be8
mov eax, dword [ebx + 0xc]
xor ecx, ecx
lea esi, [eax + edx*4]
lea esi, [esi]
mov edx, dword [eax]
add eax, 4
bswap edx
add ecx, edx
mov dword [ebx + 8], ecx
cmp eax, esi
jne 0x10013bd8
mov eax, dword [ebx + 0x10]
cmp edi, 0xffff
jbe 0x10014182
test eax, eax
jne 0x100141b4
mov eax, dword [ebx]
cmp eax, 0x61636f6c
je 0x100141a0
cmp eax, 0x66796c67
je 0x100141e8
cmp eax, 0x64616568
je 0x10014200
cmp eax, 0x7078616d
jne 0x10013c3d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xe8], ecx
test edi, edi
je 0x100141b4
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add ebx, 0x14
cmp eax, 0xa
jne 0x10013b08
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
mov ebx, dword fs:[0x18]
mov dword [esi + 0xf0], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], 8
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov dword [ebp - 0x24], esi
mov dword [esi + 0xf4], eax
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
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, 0x174
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov ebx, dword [sym.imp.ucrtbase.dll_setlocale]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0
mov dword [esp], 4
call ebx
mov dword [esp + 4], 0x1002d693
mov esi, eax
mov dword [esp], 4
call ebx
mov ecx, dword [ebp - 0x38]
pxor xmm0, xmm0
pxor xmm1, xmm1
movzx edx, cx
shr ecx, 0x10
cvtsi2ss xmm0, ecx
mov ecx, dword [ebp - 0x30]
mulss xmm0, dword [0x1002d698]
cvtsi2ss xmm1, edx
addss xmm0, xmm1
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [ecx + 4]
divss xmm1, xmm0
cvtss2sd xmm1, xmm1
movsd qword [esp + 0x24], xmm1
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [ecx + 8]
divss xmm1, xmm0
cvtss2sd xmm1, xmm1
movsd qword [esp + 0x1c], xmm1
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [ecx + 0xc]
divss xmm1, xmm0
cvtss2sd xmm1, xmm1
movsd qword [esp + 0x14], xmm1
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 4], str.25_dict_begin_n__FontName___s_def_n__Encoding_256_array_0_1_2551_index_exch__.notdef_put_for_n_def_n__PaintType_0_def_n__FontMatrix__1_0_0_1_0_0__def_n__FontBBox___f__f__f__f__def_n__FontType_42_def_n__CharStrings_256_dict_begin_n___.notdef_0_def_n_currentdict_end_def_n__sfnts___n
mov dword [esp + 8], ecx
divss xmm1, xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [esp + 0xc], xmm0
call sym._sprintf_2
mov dword [esp + 4], esi
mov dword [esp], 4
call ebx
mov ebx, dword [ebp - 0x1c]
mov dword [esp], edi
call ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0xec]
lea eax, [ecx + 1]
mov dword [ebp - 0x28], ecx
mov dword [esi + 0xec], eax
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str._00010000_04x_04x_04x_04x_n
call sym._sprintf_2
mov dword [esp], edi
call ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edi
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov ecx, dword [esi + 0xec]
mov eax, esi
mov dword [ebp - 0x30], 0xc
lea edi, [eax + 0xc8]
mov dword [ebp - 0x2c], 0
mov ebx, eax
mov esi, ecx
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x3c]
shl esi, 4
add esi, 0xc
lea esi, [esi]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10013ea9
mov edx, dword [ebx + 4]
mov ecx, 0
mov eax, dword [ebx]
test edx, edx
mov dword [esp + 0x14], edx
bswap eax
cmovne ecx, esi
mov dword [esp + 0x10], ecx
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str._08lx_08lx_08lx_08lx_n
mov dword [esp], edi
call sym._sprintf_2
mov eax, dword [ebp - 0x1c]
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._PSDRV_WriteSpool
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x2c]
add eax, 3
and eax, 0xfffffffc
add esi, eax
mov eax, dword [ebp - 0x30]
cmp dword [ebx], 0x61636f6c
cmove ecx, eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
add ebx, 0x14
cmp dword [ebp - 0x28], ebx
jne 0x10013e30
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0xdc]
lea eax, [eax + eax*4]
lea edx, [ebx + eax*4]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov edx, dword [edx + 8]
bswap eax
mov dword [esp + 4], str._08lx_08lx_08lx_08lx_n
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf_2
mov eax, dword [ebp - 0x1c]
mov dword [esp], edi
call eax
mov esi, dword [ebp - 0x20]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._PSDRV_WriteSpool
mov dword [esp], esi
lea esi, [ebx + 4]
add ebx, 0xcc
mov dword [esp + 8], 4
mov dword [esp + 4], str.00__n
call sym._PSDRV_WriteSpool
mov dword [ebp - 0x28], ebx
jmp 0x10013f44
add esi, 0x14
cmp esi, dword [ebp - 0x28]
je 0x10014060
mov edx, dword [esi]
test edx, edx
je 0x10013f38
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10013f38
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1002d63d
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov eax, dword [esi]
add eax, 3
and eax, 0xfffffffc
je 0x10014030
mov eax, dword [esi + 8]
xor ebx, ebx
movzx eax, byte [eax]
mov dword [esp + 4], str._02x
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf_2
mov eax, dword [ebp - 0x1c]
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._PSDRV_WriteSpool
lea esi, [esi]
mov eax, dword [esi]
inc ebx
add eax, 3
and eax, 0xfffffffc
cmp eax, ebx
jbe 0x10014030
mov eax, dword [esi + 8]
movzx eax, byte [eax + ebx]
mov dword [esp + 4], str._02x
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf_2
mov eax, dword [ebp - 0x1c]
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._PSDRV_WriteSpool
mov eax, ebx
and eax, 0xf
cmp eax, 0xf
jne 0x10013fb8
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 1
inc ebx
mov dword [esp + 4], 0x1002d647
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov eax, dword [esi]
add eax, 3
and eax, 0xfffffffc
cmp eax, ebx
ja 0x10013fc5
lea esi, [esi]
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 4
add esi, 0x14
mov dword [esp + 4], str.00__n
mov dword [esp], eax
call sym._PSDRV_WriteSpool
cmp esi, dword [ebp - 0x28]
jne 0x10013f44
lea esi, cs:[esi]
nop
mov dword [esp + 8], 0xc
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [ecx + 0xfc], eax
mov eax, dword [ecx + 0xe8]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 0xc]
cmp word [eax + 4], 0
je 0x10014218
xor ebx, ebx
mov dword [ebp - 0x34], 2
mov esi, ebx
mov ebx, dword [ebp - 0x24]
jmp 0x100140e3
mov dword [eax], ecx
mov eax, dword [ebx + 0xe8]
inc esi
lea eax, [eax + eax*4]
mov eax, dword [ebx + eax*4 + 0xc]
movzx eax, word [eax + 4]
rol ax, 8
movzx eax, ax
cmp eax, esi
jbe 0x10014218
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call sym._get_glyf_pos
mov eax, dword [ebp - 0x34]
mov edx, dword [ebx + 0xfc]
mov ecx, dword [ebp - 0x14]
lea edi, [eax + 0x3ffffffe]
lea eax, [edi*4]
mov dword [ebp - 0x38], eax
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, ecx
sub eax, dword [edx + edi*4]
mov edi, eax
mov eax, dword [ebp - 0x28]
add eax, edx
cmp edi, 0x2000
jbe 0x100140c0
test byte [eax], 3
jne 0x100140c0
mov edi, dword [ebp - 0x38]
mov dword [esp + 8], edx
mov dword [esp + 4], 8
lea eax, [edi + 0x10]
inc dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0xfc], eax
sub esp, 0x10
lea eax, [eax + edi + 8]
jmp 0x100140c0
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
cmp edi, 0xffff
ja 0x10013bf7
test eax, eax
je 0x10013bff
mov eax, dword [ebp - 0x24]
inc dword [eax + 0xec]
mov eax, dword [ebx]
cmp eax, 0x61636f6c
jne 0x10013c0c
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov dword [eax + 0xe0], esi
test edi, edi
jne 0x10013c3d
test byte [0x100258e8], 8
jne 0x10014377
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._T42_free
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xdc], ecx
jmp 0x10013c35
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xe4], ecx
jmp 0x10013c35
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1002d68b
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xfc]
mov eax, dword [edx + 4]
test eax, eax
je 0x100142f0
mov esi, dword [ebp - 0x3c]
inc eax
sub eax, dword [edx]
mov dword [esp + 4], str._ld
mov dword [esp + 8], eax
mov ebx, 1
mov dword [esp], esi
call sym._sprintf_2
mov eax, dword [ebp - 0x1c]
mov dword [esp], esi
call eax
mov edi, dword [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._PSDRV_WriteSpool
lea esi, [esi]
mov eax, dword [ebp - 0x24]
inc ebx
lea ecx, [ebx*4]
mov edx, dword [eax + 0xfc]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x100142f0
inc eax
sub eax, dword [edx + ecx - 4]
mov dword [esp + 4], str._ld
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._sprintf_2
mov dword [esp], esi
mov eax, dword [ebp - 0x1c]
call eax
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._PSDRV_WriteSpool
test bl, 7
jne 0x10014288
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1002d647
mov dword [esp], edi
call sym._PSDRV_WriteSpool
jmp 0x10014288
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str.__nhavetype42gdirpopstring_forallifelse_n
mov dword [esp], edi
call sym._PSDRV_WriteSpool
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], str.__def_nhavetype42gdir_GlyphDirectory_256_dict_def_n_sfnts_0_get_dup_n___ld__6c6f6378000000000000000000000000__putinterval_n___ld__676c6678000000000000000000000000__putinterval_n_if_ncurrentdict_end_dup__FontName_get_exch_definefont_pop_n
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf_2
mov dword [esp], esi
mov eax, dword [ebp - 0x1c]
call eax
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._PSDRV_WriteSpool
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
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.Table__ld_has_length__ld.__Will_use_Type_1_font_instead._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.T42_download_header
mov dword [esp + 4], 0x100258e8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_20
jmp 0x100141c1