Function at 0x6900f510
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force 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 eax, dword [ecx]
cmp dword [ecx + 8], 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x180], eax
mov ebx, dword [eax]
mov dword [eax + 8], 0
je 0x6900f608
mov eax, dword [ebp - 0x17c]
cmp word [eax + 0x1c], 0x40
je 0x6900f608
mov eax, dword [ebx + 4]
test eax, eax
jne 0x6900f620
cmp dword [ebx + 8], eax
je 0x6900f740
xor ecx, ecx
mov edx, 0x54
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
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 - 0x184], eax
sub esp, 0xc
test eax, eax
je 0x6900fd27
mov eax, dword [ebx + 4]
test eax, eax
jle 0x6900f658
mov eax, dword [ebp - 0x17c]
xor esi, esi
lea edi, [eax + 0x1c]
jmp 0x6900f5ca
inc esi
cmp dword [ebx + 4], esi
jle 0x6900f658
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x6900f5c0
mov edx, dword [ebp - 0x184]
xor ecx, ecx
mov dword [esp + 4], ecx
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 edx, dword [ebx]
mov eax, dword [edx + eax*4 - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x17c]
add eax, 0x1c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x6900f608
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jne 0x6900f570
jmp 0x6900f740
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateFontIndirectW]
mov esi, dword [sym.imp.gdi32.dll_SelectObject]
sub esp, 4
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call esi
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x180]
sub esp, 8
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x190], eax
mov edx, eax
mov eax, 0xd8
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf0]
mov dword [esp + 8], eax
mov eax, 0xd8
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_GetOutlineTextMetricsW]
sub esp, 0xc
test eax, eax
jne 0x6900f7d8
mov eax, dword [ebp - 0x188]
mov ebx, dword [ebp - 0x180]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
mov edx, dword [ebp - 0x184]
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
mov dword [ebx + 8], 3
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
add eax, 0x32
xor edi, edi
mov dword [esp + 4], edi
mov edx, eax
mov dword [ebp - 0x184], eax
shl edx, 2
mov dword [esp + 8], edx
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
mov edx, eax
je 0x6900fd13
mov eax, dword [ebx + 4]
mov edi, edx
mov esi, dword [ebx]
lea ecx, [eax*4]
cmp ecx, 8
jae 0x6900fb20
mov dword [ebp - 0x188], edx
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov eax, dword fs:[0x18]
mov ecx, dword [ebx]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x184]
mov dword [ebx], edx
mov dword [ebx + 8], eax
sub esp, 0xc
jmp 0x6900f570
movzx eax, word [ebp - 0x90]
mov dword [ebp - 0x19c], eax
mov eax, 0x5a
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
xor edx, edx
mov dword [ebp - 0x1a0], eax
sub esp, 8
xor eax, eax
mov dword [ebp + eax - 0x174], edx
mov dword [ebp + eax - 0x170], edx
add eax, 8
cmp eax, 0x20
jb 0x6900f80a
xor ecx, ecx
mov dword [ebp + eax - 0x174], ecx
mov eax, 0x24
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x61656868
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
mov eax, dword [sym.imp.gdi32.dll_GetFontData]
mov dword [ebp - 0x1a4], eax
call eax
sub esp, 0x14
inc eax
je 0x6900f8ed
movzx eax, byte [ebp - 0x170]
movzx edx, byte [ebp - 0x16f]
movzx ecx, byte [ebp - 0x16e]
shl eax, 8
or edx, eax
movzx eax, byte [ebp - 0x16d]
mov dword [ebp - 0x18c], edx
shl ecx, 8
or ecx, eax
mov eax, ecx
neg eax
test byte [0x6907a078], 8
movzx eax, ax
mov dword [ebp - 0x194], eax
jne 0x6900fb54
movsx edx, word [ebp - 0x16c]
movzx eax, byte [ebp - 0x16c]
shr dx, 8
shl eax, 8
or eax, edx
mov edx, dword [ebp - 0x18c]
add eax, edx
sub eax, ecx
movzx eax, ax
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x18c]
jne 0x6900fa60
xor eax, eax
mov edx, 0x322f534f
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x1a4]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
je 0x6900f6d0
mov edx, 0x60
cmp eax, 0x60
mov ecx, edx
cmovb ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x150], edx
mov dword [ebp + eax - 0x14c], edx
add eax, 8
cmp eax, 0x60
jb 0x6900f936
mov dword [esp + 0x10], ecx
lea eax, [ebp - 0x150]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x322f534f
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x18c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1a4]
call eax
mov ecx, dword [ebp - 0x18c]
sub esp, 0x14
cmp ecx, eax
jne 0x6900f6d0
movzx eax, word [ebp - 0x106]
movzx ecx, byte [0x6907a078]
mov edx, eax
movzx eax, al
shl eax, 8
shr edx, 8
or edx, eax
movzx eax, word [ebp - 0x104]
mov dword [ebp - 0x18c], edx
mov edx, eax
movzx eax, al
shr edx, 8
shl eax, 8
or edx, eax
and cl, 8
mov dword [ebp - 0x194], edx
jne 0x6900fcab
mov edx, dword [ebp - 0x194]
add edx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
jne 0x6900fc4a
movzx eax, word [ebp - 0x10c]
mov edx, eax
movzx eax, al
shl eax, 8
shr edx, 8
or edx, eax
movzx eax, word [ebp - 0x10a]
mov dword [ebp - 0x18c], edx
mov edx, eax
movzx eax, al
shr edx, 8
shl eax, 8
or edx, eax
test cl, cl
mov dword [ebp - 0x194], edx
jne 0x6900fbf7
movzx edx, byte [ebp - 0x108]
movzx eax, byte [ebp - 0x107]
mov ecx, dword [ebp - 0x194]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x18c]
add eax, ecx
add eax, edx
movzx eax, ax
mov dword [ebp - 0x198], eax
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x188]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
mov edi, dword [ebp - 0x184]
mov edx, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x180]
mov dword [edi + 0x50], 1
mov esi, dword [ebp - 0x17c]
mov word [edi + 0x40], dx
mov edx, dword [ebp - 0x18c]
mov word [edi + 0x44], cx
mov ecx, dword [ebp - 0x1a0]
sub esp, 4
mov eax, dword [eax + 4]
mov word [edi + 0x42], dx
mov edx, dword [ebp - 0x198]
mov dword [edi + 0x48], ecx
mov ecx, edi
mov dword [edi + 0x4c], eax
xor eax, eax
mov word [edi + 0x46], dx
lea esi, [esi]
nop
movzx edx, word [esi + eax + 0x1c]
mov word [ecx + eax], dx
add eax, 2
test edx, edx
jne 0x6900fae0
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0x184]
mov edx, dword [ebx]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [edx + eax*4], edi
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test dl, 1
jne 0x6900fd04
test edi, 2
jne 0x6900fcef
test edi, 4
je 0x6900f791
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x6900f791
mov dword [esp + 0x14], eax
mov eax, str.get_font_metrics
mov dword [ebp - 0x198], ecx
mov ecx, str.hhea:_ascent__d__descent__d_n
mov dword [esp + 8], eax
mov eax, 0x6907a078
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, byte [ebp - 0x16c]
movzx edx, byte [ebp - 0x16b]
mov ecx, dword [ebp - 0x18c]
shl eax, 8
or eax, edx
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x198]
sub edx, ecx
test byte [0x6907a078], 8
movzx ecx, dx
mov dword [ebp - 0x198], ecx
je 0x6900f8db
mov dword [esp + 0x10], eax
mov eax, str.line_gap__u__line_spacing__u_n
mov edx, 0x6907a078
mov dword [esp + 0xc], eax
mov eax, str.get_font_metrics
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6900f8db
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x18c]
mov eax, str.sTypoAscender__u__sTypoDescender__u_n
mov dword [esp + 0xc], eax
mov eax, str.get_font_metrics
mov dword [esp + 8], eax
mov eax, 0x6907a078
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x194]
mov edx, dword [ebp - 0x18c]
movzx ecx, byte [0x6907a078]
add eax, edx
mov dword [ebp - 0x190], eax
and cl, 8
movzx eax, word [ebp - 0x108]
mov edx, eax
movzx eax, al
shr edx, 8
shl eax, 8
or eax, edx
mov edx, dword [ebp - 0x190]
add edx, eax
test cl, cl
movzx edx, dx
mov dword [ebp - 0x198], edx
je 0x6900fa60
mov dword [esp + 0x10], eax
mov eax, str.get_font_metrics
mov ecx, str.line_gap__u__line_spacing__u_n
mov dword [esp + 8], eax
mov eax, 0x6907a078
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6900fa60
mov dword [esp + 0x14], edx
mov eax, dword [ebp - 0x18c]
mov ecx, str.get_font_metrics
mov dword [esp + 8], ecx
mov edx, str.usWinAscent__u__usWinDescent__u_n
mov dword [esp + 0xc], edx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, 0x6907a078
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_2
movzx ecx, byte [0x6907a078]
and cl, 8
jmp 0x6900f9d5
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x6900fb35
movzx eax, byte [esi]
lea edi, [edx + 1]
inc esi
dec ecx
mov byte [edx], al
jmp 0x6900fb29
mov eax, dword [ebp - 0x180]
mov dword [eax + 8], 3
xor eax, eax
jmp 0x6900f60d
mov edi, dword [ebp - 0x180]
mov eax, dword [edi + 4]
test eax, eax
jne 0x6900f608
mov dword [edi + 8], 3
jmp 0x6900f60d