Function at 0x64a51d00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
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, 0x198
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x15c], eax
test byte [0x64ab5078], 8
jne 0x64a52008
mov esi, dword [ebp - 0x15c]
test esi, esi
sete al
test edi, edi
sete dl
or al, dl
jne 0x64a51ff0
mov ebx, dword [ebp - 0x164]
test ebx, ebx
je 0x64a51ff0
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x176], ax
cmp edi, 0xb
jbe 0x64a51fd4
mov eax, dword [ebp - 0x15c]
movzx esi, word [eax + 4]
mov eax, dword [eax]
mov ecx, esi
mov word [ebp - 0x168], si
rol cx, 8
movzx ecx, cx
cmp eax, 0x100
je 0x64a51dac
cmp eax, 0x4f54544f
jne 0x64a51fd4
test ecx, ecx
je 0x64a51fd4
mov eax, dword [ebp - 0x15c]
xor edx, edx
add eax, 0xc
jmp 0x64a51dd2
add edx, 1
add eax, 0x10
cmp edx, ecx
je 0x64a51de5
cmp dword [eax], 0x656d616e
jne 0x64a51dc8
mov eax, dword [eax + 8]
bswap eax
mov dword [ebp - 0x160], eax
cmp edx, ecx
jae 0x64a51fd4
mov ebx, dword [ebp - 0x160]
cmp ebx, edi
jae 0x64a51fd4
lea edx, [ebx + 6]
cmp edi, edx
jb 0x64a51fd4
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], ebx
add eax, ebx
movzx ecx, word [eax + 2]
mov dword [ebp - 0x184], eax
movzx eax, word [eax + 4]
mov esi, ecx
rol si, 8
rol ax, 8
mov word [ebp - 0x168], si
mov esi, edi
movzx eax, ax
sub esi, ebx
cmp eax, esi
jae 0x64a51fd4
mov ebx, dword [ebp - 0x160]
lea esi, [ebx + eax]
mov dword [ebp - 0x174], esi
test cx, cx
je 0x64a51fd4
mov eax, dword [ebp - 0x15c]
add edx, eax
lea eax, [ebx + 0x12]
mov dword [ebp - 0x16c], eax
cmp edi, eax
jb 0x64a51fd4
movzx eax, word [ebp - 0x168]
mov ecx, ebx
xor esi, esi
mov ebx, edx
mov dword [ebp - 0x160], edi
mov edi, edx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x180], 0xffffffff
mov dword [ebp - 0x17c], 0
lea eax, [eax + ecx + 0x12]
mov dword [ebp - 0x170], eax
jmp 0x64a51f51
test ax, ax
jne 0x64a51f20
movzx eax, word [ebx + 2]
test ax, ax
je 0x64a51edb
rol ax, 8
sub eax, 2
cmp ax, 1
ja 0x64a51f20
movzx eax, word [ebx + 4]
rol ax, 8
cmp ax, 0x96
ja 0x64a51f20
movzx eax, ax
movzx eax, word [eax + eax + 0x64ab8c60]
movzx edx, word [ebp - 0x176]
cmp dx, ax
je 0x64a524a8
xor edx, eax
test dx, 0x3ff
je 0x64a52080
cmp ax, 0x409
je 0x64a52480
lea esi, [esi]
nop
mov eax, dword [ebp - 0x168]
add esi, 1
cmp esi, eax
je 0x64a51fc0
mov eax, dword [ebp - 0x170]
sub eax, edi
add ebx, eax
mov eax, dword [ebp - 0x16c]
sub eax, edi
add eax, ebx
cmp dword [ebp - 0x160], eax
jb 0x64a51fd4
cmp word [ebx + 6], 0x400
jne 0x64a51f20
movzx eax, word [ebx + 0xa]
mov edx, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x174]
rol ax, 8
movzx eax, ax
sub edx, ecx
cmp eax, edx
jae 0x64a51fd4
movzx ecx, word [ebx + 8]
sub edx, eax
rol cx, 8
movzx ecx, cx
cmp edx, ecx
jb 0x64a51fd4
movzx eax, word [ebx]
cmp ax, 0x100
je 0x64a52048
cmp ax, 0x300
jne 0x64a51ec0
movzx eax, word [ebx + 2]
rol ax, 8
cmp ax, 1
ja 0x64a51f20
movzx eax, word [ebx + 4]
rol ax, 8
jmp 0x64a51ef4
mov ecx, dword [ebp - 0x17c]
mov edi, dword [ebp - 0x160]
test ecx, ecx
jne 0x64a520a4
lea esp, [ebp - 0x10]
mov esi, 3
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
lea esp, [ebp - 0x10]
mov esi, 2
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x164]
mov dword [esp + 0xc], str._p___p___d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GdipPrivateAddMemoryFont
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x64a51d42
movzx edx, word [ebx + 2]
mov eax, edx
rol ax, 8
add ax, 0x2710
cmp dx, 0x1900
mov edx, 0x2718
movzx eax, ax
cmove eax, edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsValidCodePage]
sub esp, 4
test eax, eax
jne 0x64a51edb
jmp 0x64a51f20
mov eax, 2
mov edx, dword [ebp - 0x17c]
cmp eax, edx
jle 0x64a51f20
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x17c], eax
jmp 0x64a51f20
mov eax, dword [ebp - 0x180]
mov esi, dword [ebp - 0x184]
mov ebx, dword [ebp - 0x174]
lea eax, [eax + eax*2]
lea esi, [esi + eax*4 + 6]
movzx eax, word [esi + 0xa]
movzx edx, word [esi + 2]
mov dword [ebp - 0x160], esi
rol ax, 8
movzx eax, ax
add eax, ebx
mov ebx, dword [ebp - 0x15c]
add eax, ebx
mov dword [ebp - 0x16c], eax
movzx eax, word [esi]
movzx esi, word [esi + 8]
mov ebx, esi
mov word [ebp - 0x168], si
rol bx, 8
cmp ax, 0x100
je 0x64a52538
cmp ax, 0x300
je 0x64a526e3
test ax, ax
je 0x64a526e3
test byte [0x64ab5078], 8
je 0x64a51fd4
rol ax, 8
xor ebx, ebx
mov edx, eax
mov eax, 0x64ab864b
mov dword [esp + 0x1c], eax
mov esi, dword [ebp - 0x160]
movzx edx, dx
movzx eax, word [esi + 4]
mov word [ebp - 0x160], ax
rol ax, 8
movzx eax, ax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
movzx eax, word [esi + 6]
mov dword [esp + 0xc], str.name__u_found_platform__u_lang__04x__s_n
rol ax, 8
mov dword [esp + 8], str.load_ttf_name_id
movzx eax, ax
mov dword [esp + 4], 0x64ab5078
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
test ebx, ebx
je 0x64a51fd4
lea eax, [ebp - 0x158]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call sym._AddFontMemResourceEx_16
sub esp, 0x10
mov edi, eax
test byte [0x64ab5078], 8
jne 0x64a52210
mov esi, 2
test edi, edi
je 0x64a521d8
mov edx, dword [ebp - 0x158]
test edx, edx
jne 0x64a52370
mov dword [esp + 8], ebx
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, esi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov eax, ebx
shr eax, 0x10
je 0x64a52490
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x64ab8652
test edx, edx
jne 0x64a5232c
cmp word [ebx], 0
je 0x64a52771
lea esi, [esi]
mov eax, edx
lea edx, [edx + 1]
cmp word [ebx + eax*2 + 2], 0
jne 0x64a52258
mov esi, 0x224c
mov dword [ebp - 0x160], edi
lea edx, [ebp - 0x142]
mov word [ebp - 0x144], si
mov esi, ebx
mov dword [ebp - 0x168], ebx
jmp 0x64a522c0
cmp cx, 9
je 0x64a52438
cmp cx, 0xa
jne 0x64a524d0
mov ecx, 0x6e5c
add edx, 2
mov word [edx - 2], cx
sub eax, 1
jb 0x64a52521
lea ecx, [ebp - 0x22]
cmp ecx, edx
jb 0x64a522f4
movzx ecx, word [esi]
add esi, 2
cmp cx, 0xd
je 0x64a52450
jbe 0x64a52290
cmp cx, 0x22
je 0x64a52468
cmp cx, 0x5c
jne 0x64a524b8
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x64a522b0
mov edi, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x168]
mov byte [edx], 0x22
test eax, eax
je 0x64a52530
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov esi, dword [ebp - 0x15c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], str._s:__p__lu_n
mov dword [esp + 8], str.GdipPrivateAddMemoryFont
mov dword [esp + 4], 0x64ab5078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x64a521c1
mov dword [esp], 0
call sym._CreateCompatibleDC_4
mov dword [ebp - 0x148], eax
sub esp, 4
cmp word [ebx], 0
mov ecx, eax
je 0x64a523a6
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x64a52390
sub eax, ebx
cmp eax, 0x3e
jle 0x64a523a6
xor eax, eax
mov word [ebx + 0x3e], ax
mov byte [ebp - 0x12d], 1
xor edx, edx
lea eax, [ebp - 0x144]
lea esi, [esi]
movzx esi, word [ebx + edx]
mov word [ebp + edx - 0x128], si
add edx, 2
test si, si
jne 0x64a523b8
mov edi, dword [ebp - 0x164]
lea edx, [ebp - 0x154]
xor esi, esi
mov byte [ebp - 0x129], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], sym._add_font_proc_16
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._EnumFontFamiliesExW_20
sub esp, 0x14
test eax, eax
jne 0x64a5241e
mov esi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
jmp 0x64a521d8
mov edi, 0x745c
add edx, 2
mov word [edx - 2], di
jmp 0x64a522b0
movzx edi, word [0x64ab8dca]
add edx, 2
mov word [edx - 2], di
jmp 0x64a522b0
movzx edi, word [0x64ab8dcc]
add edx, 2
mov word [edx - 2], di
jmp 0x64a522b0
mov eax, 1
jmp 0x64a52085
mov dword [esp + 4], ebx
mov dword [esp], 0x64ab8645
call sym._wine_dbg_sprintf.constprop.0
jmp 0x64a5232c
mov eax, 3
jmp 0x64a52085
lea edi, [ecx - 0x20]
cmp di, 0x5e
ja 0x64a524d0
mov byte [edx], cl
add edx, 1
jmp 0x64a522b0
mov edi, ecx
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGdipCreateFont]
mov edi, ecx
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGdipCreateFont]
mov edi, ecx
and ecx, 0xf
shr di, 4
movzx ecx, byte [ecx + str.0123456789abcdefGdipCreateFont]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGdipCreateFont]
mov byte [edx - 1], cl
mov byte [edx - 2], bl
jmp 0x64a522b0
mov edi, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x168]
mov byte [edx], 0x22
lea eax, [edx + 1]
jmp 0x64a5231b
mov eax, edx
movzx esi, bx
rol ax, 8
add ax, 0x2710
cmp dx, 0x1900
mov edx, 0x2718
cmove eax, edx
movzx eax, ax
mov dword [ebp - 0x168], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov ebx, dword [ebp - 0x16c]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x170], eax
call eax
sub esp, 0x18
mov edx, eax
add eax, 1
je 0x64a527c6
add eax, eax
mov dword [ebp - 0x174], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x174]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov eax, dword [ebp - 0x170]
call eax
mov word [ebx + eax*2], si
sub esp, 0x18
test byte [0x64ab5078], 8
je 0x64a52187
test ebx, ebx
je 0x64a528fd
mov eax, ebx
shr eax, 0x10
je 0x64a527f5
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x64a528b7
cmp word [ebx], 0
je 0x64a528e5
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x64a52652
mov ecx, 0x224c
mov dword [ebp - 0x168], ebx
lea esi, [ebp - 0x142]
mov word [ebp - 0x144], cx
mov ecx, ebx
jmp 0x64a526af
cmp ax, 9
je 0x64a527a2
cmp ax, 0xa
jne 0x64a52833
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
sub edx, 1
jb 0x64a528d7
lea eax, [ebp - 0x22]
cmp eax, esi
jb 0x64a52884
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x64a5278f
jbe 0x64a5267b
cmp ax, 0x22
je 0x64a527b3
cmp ax, 0x5c
jne 0x64a52820
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x64a5269b
mov eax, ebx
shr ax, 1
movzx esi, ax
lea edx, [esi + esi + 2]
mov dword [ebp - 0x168], esi
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
sub esp, 0xc
mov eax, esi
test esi, esi
je 0x64a52760
mov edx, dword [ebp - 0x16c]
lea eax, [ebx + eax*2]
mov esi, ebx
mov dword [ebp - 0x16c], ebx
mov ebx, eax
add edx, 1
lea esi, [esi]
nop
movzx eax, byte [edx - 1]
movzx ecx, byte [edx]
add esi, 2
add edx, 2
shl eax, 8
or eax, ecx
mov word [esi - 2], ax
cmp ebx, esi
jne 0x64a52740
mov ebx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
xor edx, edx
mov word [ebx + eax*2], dx
jmp 0x64a5260c
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x141]
jmp 0x64a5231b
movzx eax, word [0x64ab8dca]
add esi, 2
mov word [esi - 2], ax
jmp 0x64a5269b
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x64a5269b
movzx eax, word [0x64ab8dcc]
add esi, 2
mov word [esi - 2], ax
jmp 0x64a5269b
test byte [0x64ab5078], 8
je 0x64a51fd4
mov eax, dword [ebp - 0x160]
xor ebx, ebx
movzx eax, word [eax]
mov edx, eax
mov word [ebp - 0x168], ax
mov eax, 0x64ab864b
rol dx, 8
jmp 0x64a5212d
mov dword [esp + 4], ebx
mov dword [esp], 0x64ab8645
call sym._wine_dbg_sprintf.constprop.0
mov esi, dword [ebp - 0x160]
movzx esi, word [esi]
mov edx, esi
mov word [ebp - 0x168], si
rol dx, 8
jmp 0x64a5212d
lea ebx, [eax - 0x20]
cmp bx, 0x5e
ja 0x64a52833
mov byte [esi], al
add esi, 1
jmp 0x64a5269b
mov ebx, eax
mov byte [esi], 0x5c
add esi, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefGdipCreateFont]
mov byte [esi - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefGdipCreateFont]
mov byte [esi - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefGdipCreateFont]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefGdipCreateFont]
mov byte [esi - 1], al
mov byte [esi - 2], bl
jmp 0x64a5269b
mov byte [esi], 0x22
mov ebx, dword [ebp - 0x168]
test edx, edx
je 0x64a528e0
mov byte [esi + 3], 0x2e
mov eax, 0x2e2e
mov word [esi + 1], ax
lea eax, [esi + 4]
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x64a52805
mov eax, dword [ebp - 0x160]
movzx eax, word [eax]
mov edx, eax
mov word [ebp - 0x168], ax
mov eax, 0x64ab8652
rol dx, 8
jmp 0x64a5212d
mov byte [esi], 0x22
mov ebx, dword [ebp - 0x168]
lea eax, [esi + 1]
jmp 0x64a528a1
mov word [ebp - 0x144], 0x224c
lea eax, [ebp - 0x141]
mov byte [ebp - 0x142], 0x22
jmp 0x64a528a1
mov eax, dword [ebp - 0x160]
movzx eax, word [eax]
mov edx, eax
mov word [ebp - 0x168], ax
mov eax, 0x64ab864b
rol dx, 8
jmp 0x64a5212d