Function at 0x100182c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], str.g_04x
movzx edi, si
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], edi
mov dword [esp], eax
call sym._snprintf.constprop.0
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.gdi32.dll_GetFontData]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x74736f70
mov dword [esp], eax
call ebx
mov ecx, eax
sub eax, 0x20
sub esp, 0x14
cmp eax, 0xffffffde
jbe 0x10018338
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10018329
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x74736f70
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x10]
sub eax, 0x20
sub esp, 0x14
cmp eax, 0xffffffde
ja 0x100183be
mov ecx, dword [edx]
bswap ecx
mov dword [edx], ecx
cmp ecx, 0x10000
je 0x10018480
cmp ecx, 0x20000
je 0x100183f0
test byte [0x10025818], 1
jne 0x100184d0
mov dword [esp + 8], edx
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]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 1
jbe 0x10018510
movzx ebx, word [edx + 0x20]
lea ecx, [edi + edi + 2]
rol bx, 8
mov word [ebp - 0x18], bx
lea ebx, [ecx + 2]
cmp eax, ebx
jb 0x10018665
cmp word [ebp - 0x18], si
jbe 0x10018665
movzx ebx, byte [edx + ecx + 0x21]
movzx ecx, byte [edx + ecx + 0x20]
lea edi, [edx + 0x20]
mov dword [ebp - 0x10], edi
shl ecx, 8
or ecx, ebx
movzx ebx, cx
cmp ebx, 0x101
jg 0x10018560
mov dword [ebp - 0x10], edx
mov eax, dword [ebx*4 + 0x10036d00]
mov eax, dword [eax + 4]
mov dword [esp + 8], 0x1002ade7
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._snprintf.constprop.0
mov edx, dword [ebp - 0x10]
jmp 0x100183be
cmp si, 0x101
jbe 0x10018550
test byte [0x10025818], 4
je 0x100183be
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Font_uses_PostScript_Format_1__but_non_standard_glyph___d__requested._n
mov dword [esp + 8], str.get_glyph_name
mov dword [esp + 4], 0x10025818
mov dword [esp], 2
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_7
mov edx, dword [ebp - 0x10]
jmp 0x100183be
movzx eax, cx
shr ecx, 0x10
mov dword [esp + 0xc], str.PostScript_Format__d._d_glyph_names_are_currently_unsupported._n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], str.get_glyph_name
mov dword [esp + 4], 0x10025818
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_7
mov edx, dword [ebp - 0x10]
jmp 0x100183be
test byte [0x10025818], 1
je 0x100183be
mov dword [esp + 0xc], str.PostScript_Format_2_table_is_invalid__cannot_fit_header__n
mov dword [esp + 8], str.get_glyph_name
mov dword [esp + 4], 0x10025818
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_7
mov edx, dword [ebp - 0x10]
jmp 0x100183be
mov eax, dword [edi*4 + 0x10036d00]
jmp 0x1001844c
sub cx, 0x102
xor esi, esi
movzx edi, cx
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
xor edi, edi
lea ebx, [ecx + ecx + 2]
lea esi, [esi]
lea edx, [esi + ebx]
lea ebx, [edx + 1]
cmp eax, ebx
jb 0x100185e4
mov esi, dword [ebp - 0x10]
movzx esi, byte [esi + edx]
add edx, esi
mov ecx, esi
cmp eax, edx
jb 0x1001862b
inc edi
cmp dword [ebp - 0x14], edi
jge 0x10018580
mov eax, esi
cmp cl, 0x1f
mov ecx, 0x1f
mov esi, dword [ebp - 0x10]
cmovbe ecx, eax
mov edx, dword [ebp - 0x18]
add esi, ebx
movzx eax, cl
cmp cl, 3
ja 0x1001864a
test eax, eax
je 0x100185d8
movzx ecx, byte [esi]
mov edi, dword [ebp + 0x10]
mov byte [edi], cl
test al, 2
jne 0x100186ad
mov edi, dword [ebp + 0x10]
mov byte [edi + eax], 0
jmp 0x100183be
mov edx, dword [ebp - 0x18]
test byte [0x10025818], 1
je 0x100183be
mov dword [ebp - 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Pascal_name_offset__d_exceeds_PostScript_Format_2_table_size___ld__n
mov dword [esp + 8], str.get_post2_custom_glyph_name
mov dword [esp + 4], 0x10025818
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_7
mov edx, dword [ebp - 0x10]
jmp 0x100183be
mov ecx, edx
mov edx, dword [ebp - 0x18]
test byte [0x10025818], 1
je 0x100183be
mov dword [ebp - 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x100185ff
mov ecx, dword [esi + eax - 4]
mov edi, dword [ebp + 0x10]
mov dword [edi + eax - 4], ecx
lea ecx, [eax - 1]
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x100185d8
test byte [0x10025818], 1
je 0x100183be
movzx eax, word [ebp - 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Index__d_exceeds_PostScript_Format_2_table_size___d__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.get_post2_name_index
mov dword [esp + 4], 0x10025818
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_7
mov edx, dword [ebp - 0x10]
jmp 0x100183be
movzx ecx, word [esi + eax - 2]
mov edi, dword [ebp + 0x10]
mov word [edi + eax - 2], cx
jmp 0x100185d8