Function at 0x64a4f100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1b8
mov esi, dword [ecx + 0xc]
mov eax, dword [ecx]
cmp dword [ecx + 8], 1
mov dword [ebp - 0x17c], eax
mov ebx, dword [esi]
mov dword [esi + 8], 0
je 0x64a4f1fc
cmp word [eax + 0x1c], 0x40
je 0x64a4f1fc
mov edi, dword [ebx + 4]
test edi, edi
jne 0x64a4f210
cmp dword [ebx + 8], edi
je 0x64a4f23c
mov dword [esp + 8], 0x54
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]
mov dword [ebp - 0x180], eax
sub esp, 0xc
test eax, eax
je 0x64a4f4c0
mov edx, dword [ebx + 4]
test edx, edx
jle 0x64a4f2d8
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x184], esi
xor edi, edi
mov esi, ebx
lea edx, [eax + 0x1c]
mov ebx, edx
jmp 0x64a4f1bc
add edi, 1
cmp dword [esi + 4], edi
jle 0x64a4f2d0
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x64a4f1b0
mov edx, dword [ebp - 0x180]
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]
sub esp, 0xc
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebx]
mov eax, dword [eax + edi*4 - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x17c]
lea edx, [eax + 0x1c]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x64a4f1fc
mov edi, dword [ebx + 4]
cmp dword [ebx + 8], edi
jne 0x64a4f154
lea eax, [edi + 0x32]
mov dword [ebp - 0x180], eax
shl eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64a4f4cb
mov ecx, dword [ebx + 4]
lea eax, [ecx*4]
mov ecx, dword [ebx]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x184], edx
call sym._memcpy
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x180]
sub esp, 0xc
mov dword [ebx], edx
mov dword [ebx + 8], eax
jmp 0x64a4f154
mov ebx, esi
mov esi, dword [ebp - 0x184]
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call sym._CreateFontIndirectW_4
sub esp, 4
mov dword [ebp - 0x188], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._SelectObject_8
mov edx, dword [esi + 0xc]
mov dword [ebp - 0xf0], 0xd8
mov dword [ebp - 0x18c], eax
sub esp, 8
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x184], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd8
mov dword [esp], edx
call sym._GetOutlineTextMetricsW_12
sub esp, 0xc
test eax, eax
je 0x64a4f570
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x19c], eax
mov dword [esp + 4], 0x5a
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call sym._GetDeviceCaps_8
lea edx, [ebp - 0x174]
mov ecx, 9
mov dword [ebp - 0x198], eax
mov edi, edx
xor eax, eax
sub esp, 8
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x24
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x61656868
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call sym._GetFontData_20
sub esp, 0x14
cmp eax, 0xffffffff
je 0x64a4f4e0
movzx edx, word [ebp - 0x16e]
movzx eax, word [ebp - 0x170]
rol dx, 8
rol ax, 8
mov ecx, edx
mov word [ebp - 0x190], ax
neg ecx
movzx edi, cx
mov word [ebp - 0x192], cx
movzx ecx, ax
mov dword [ebp - 0x1a0], edi
test byte [0x64ab5078], 8
jne 0x64a4f64b
movzx edi, word [ebp - 0x16c]
rol di, 8
add di, word [ebp - 0x190]
sub edi, edx
mov eax, dword [ebp - 0x1a0]
add eax, ecx
je 0x64a4f4e0
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0x188]
sub esp, 8
mov dword [esp], eax
call sym._DeleteObject_4
mov ecx, dword [ebp - 0x180]
movzx eax, word [ebp - 0x19c]
sub esp, 4
mov word [ecx + 0x40], ax
movzx eax, word [ebp - 0x190]
mov word [ecx + 0x46], di
mov word [ecx + 0x42], ax
movzx eax, word [ebp - 0x192]
mov word [ecx + 0x44], ax
mov eax, dword [ebp - 0x198]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x50], 1
mov esi, dword [ebp - 0x17c]
mov dword [ecx + 0x4c], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax + 0x1c]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x64a4f490
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ebx, dword [ebp - 0x180]
mov dword [edx + eax*4], ebx
jmp 0x64a4f1fc
mov eax, dword [esi + 4]
test eax, eax
jne 0x64a4f1fc
mov dword [esi + 8], 3
xor eax, eax
jmp 0x64a4f201
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x322f534f
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call sym._GetFontData_20
sub esp, 0x14
cmp eax, 0xffffffff
je 0x64a4f570
mov edx, 0x60
mov ecx, 0x18
cmp eax, edx
cmovbe edx, eax
xor eax, eax
mov dword [ebp - 0x190], edx
lea edx, [ebp - 0x150]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x190]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0x322f534f
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call sym._GetFontData_20
sub esp, 0x14
cmp edi, eax
je 0x64a4f5c8
lea esi, [esi]
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0x188]
sub esp, 8
mov dword [esp], eax
call sym._DeleteObject_4
mov edx, dword [ebp - 0x180]
sub esp, 4
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
jmp 0x64a4f4cb
movzx eax, word [ebp - 0x106]
movzx edx, word [ebp - 0x104]
rol ax, 8
rol dx, 8
mov word [ebp - 0x192], dx
movzx edi, ax
movzx edx, dx
mov word [ebp - 0x190], ax
test byte [0x64ab5078], 8
jne 0x64a4f709
add edi, edx
jne 0x64a4f6f0
movzx eax, word [ebp - 0x10c]
rol ax, 8
mov word [ebp - 0x190], ax
movzx eax, word [ebp - 0x10a]
rol ax, 8
mov word [ebp - 0x192], ax
movzx edi, word [ebp - 0x108]
movzx eax, word [ebp - 0x190]
add ax, word [ebp - 0x192]
rol di, 8
add edi, eax
jmp 0x64a4f414
mov dword [ebp - 0x1a8], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [ebp - 0x1a4], ecx
mov dword [esp + 0xc], str.hhea:_ascent__d__descent__d_n
mov dword [esp + 8], str.get_font_metrics
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, word [ebp - 0x16c]
movzx edx, word [ebp - 0x190]
mov ecx, dword [ebp - 0x1a4]
rol ax, 8
lea edi, [eax + edx]
mov edx, dword [ebp - 0x1a8]
sub edi, edx
test byte [0x64ab5078], 8
je 0x64a4f406
movzx edx, di
movzx eax, ax
mov dword [esp + 0xc], str.line_gap__u__line_spacing__u_n
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_font_metrics
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x1a4]
jmp 0x64a4f406
movzx edi, word [ebp - 0x108]
add ax, word [ebp - 0x192]
rol di, 8
add edi, eax
jmp 0x64a4f414
mov dword [esp + 0x14], edx
mov dword [ebp - 0x184], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.usWinAscent__u__usWinDescent__u_n
mov dword [esp + 8], str.get_font_metrics
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, byte [0x64ab5078]
mov edx, dword [ebp - 0x184]
and eax, 8
add edi, edx
jne 0x64a4f7b7
movzx edx, word [ebp - 0x10c]
movzx ecx, word [ebp - 0x10a]
rol dx, 8
rol cx, 8
mov word [ebp - 0x190], dx
mov word [ebp - 0x192], cx
test al, al
je 0x64a4f62b
movzx eax, cx
mov dword [esp + 0xc], str.sTypoAscender__u__sTypoDescender__u_n
mov dword [esp + 0x14], eax
movzx eax, dx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_font_metrics
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, byte [0x64ab5078]
and eax, 8
movzx edx, word [ebp - 0x108]
movzx edi, word [ebp - 0x190]
add di, word [ebp - 0x192]
rol dx, 8
add edi, edx
test al, al
je 0x64a4f414
movzx eax, di
movzx edx, dx
mov dword [esp + 0xc], str.line_gap__u__line_spacing__u_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.get_font_metrics
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x64a4f414