Function at 0x10246c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc80
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0xc7c], eax
push edi
mov edi, dword [esp + 0xc88]
push str.WINDIR
mov dword [esp + 0xc], str.PLPLOT_FREETYPE_SANS_FONT
mov dword [esp + 0x10], str.PLPLOT_FREETYPE_SERIF_FONT
mov dword [esp + 0x14], str.PLPLOT_FREETYPE_MONO_FONT
mov dword [esp + 0x18], str.PLPLOT_FREETYPE_SCRIPT_FONT
mov dword [esp + 0x1c], str.PLPLOT_FREETYPE_SYMBOL_FONT
mov dword [esp + 0x20], str.PLPLOT_FREETYPE_SANS_ITALIC_FONT
mov dword [esp + 0x24], str.PLPLOT_FREETYPE_SERIF_ITALIC_FONT
mov dword [esp + 0x28], str.PLPLOT_FREETYPE_MONO_ITALIC_FONT
mov dword [esp + 0x2c], str.PLPLOT_FREETYPE_SCRIPT_ITALIC_FONT
mov dword [esp + 0x30], str.PLPLOT_FREETYPE_SYMBOL_ITALIC_FONT
mov dword [esp + 0x34], str.PLPLOT_FREETYPE_SANS_OBLIQUE_FONT
mov dword [esp + 0x38], str.PLPLOT_FREETYPE_SERIF_OBLIQUE_FONT
mov dword [esp + 0x3c], str.PLPLOT_FREETYPE_MONO_OBLIQUE_FONT
mov dword [esp + 0x40], str.PLPLOT_FREETYPE_SCRIPT_OBLIQUE_FONT
mov dword [esp + 0x44], str.PLPLOT_FREETYPE_SYMBOL_OBLIQUE_FONT
mov dword [esp + 0x48], str.PLPLOT_FREETYPE_SANS_BOLD_FONT
mov dword [esp + 0x4c], str.PLPLOT_FREETYPE_SERIF_BOLD_FONT
mov dword [esp + 0x50], str.PLPLOT_FREETYPE_MONO_BOLD_FONT
mov dword [esp + 0x54], str.PLPLOT_FREETYPE_SCRIPT_BOLD_FONT
mov dword [esp + 0x58], str.PLPLOT_FREETYPE_SYMBOL_BOLD_FONT
mov dword [esp + 0x5c], str.PLPLOT_FREETYPE_SANS_BOLD_ITALIC_FONT
mov dword [esp + 0x60], str.PLPLOT_FREETYPE_SERIF_BOLD_ITALIC_FONT
mov dword [esp + 0x64], str.PLPLOT_FREETYPE_MONO_BOLD_ITALIC_FONT
mov dword [esp + 0x68], str.PLPLOT_FREETYPE_SCRIPT_BOLD_ITALIC_FONT
mov dword [esp + 0x6c], str.PLPLOT_FREETYPE_SYMBOL_BOLD_ITALIC_FONT
mov dword [esp + 0x70], str.PLPLOT_FREETYPE_SANS_BOLD_OBLIQUE_FONT
mov dword [esp + 0x74], str.PLPLOT_FREETYPE_SERIF_BOLD_OBLIQUE_FONT
mov dword [esp + 0x78], str.PLPLOT_FREETYPE_MONO_BOLD_OBLIQUE_FONT
mov dword [esp + 0x7c], str.PLPLOT_FREETYPE_SCRIPT_BOLD_OBLIQUE_FONT
mov dword [esp + 0x80], str.PLPLOT_FREETYPE_SYMBOL_BOLD_OBLIQUE_FONT
call fcn.10274e5d
push 0x3ff
push eax
lea eax, [esp + 0x48c]
push eax
call fcn.10270aa0
add esp, 0x10
mov byte [esp + 0x87f], 0
cmp dword [edi + 0x4698], 0
je 0x10246db3
push str.Freetype_seems_already_to_have_been_initialised_
call fcn.1024aca0
add esp, 4
pop edi
mov ecx, dword [esp + 0xc7c]
xor ecx, esp
call fcn.1026465b
add esp, 0xc80
ret
push 0x78a0
push 1
call fcn.10269e09
add esp, 8
mov dword [edi + 0x4698], eax
test eax, eax
jne 0x10246dd9
push str.Could_not_allocate_memory_for_Freetype
call fcn.1024aad0
add esp, 4
push ebx
push ebp
push esi
mov esi, dword [edi + 0x4698]
push 1
push 0x400
call fcn.10269e09
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x10246e05
push str.Could_not_allocate_memory_for_Freetype_text_buffer
call fcn.1024aad0
add esp, 4
lea eax, [esi + 0x7880]
push eax
call fcn.10148c40
add esp, 4
test eax, eax
je 0x10246e25
push str.Could_not_initialise_Freetype_library
call fcn.1024aad0
add esp, 4
push str.PLPLOT_FREETYPE_FONT_DIR
mov dword [esi + 0x7838], 0
call fcn.10274e5d
test eax, eax
mov ecx, str.c:_windows_fonts_
push 0x3ff
cmovne ecx, eax
lea eax, [esp + 0x94]
push ecx
push eax
call fcn.10270aa0
add esp, 0x10
mov byte [esp + 0x48b], 0
cmp dword [edi + 0xc], 0
je 0x10246e87
lea eax, [esp + 0x8c]
push eax
push 0x102a8d5c
push 2
call fcn.102724ac
add esp, 4
push eax
call fcn.1000b2e0
add esp, 0xc
add esi, 0x38
mov dword [esp + 0x10], 0x1e
lea ebp, [esp + 0x14]
xor ebx, ebx
push dword [ebp]
call fcn.10274e5d
mov edi, eax
add esp, 4
test edi, edi
je 0x10246ef2
mov cl, byte [edi]
cmp cl, 0x2f
je 0x10246ee4
cmp cl, 0x7e
je 0x10246ee4
push 0x3ff
lea eax, [esp + 0x90]
push eax
push esi
call fcn.10270aa0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10246ed0
sub ecx, edx
mov eax, 0x3ff
sub eax, ecx
push eax
push edi
jmp 0x10246f27
push 0x3ff
push edi
push esi
call fcn.10270aa0
jmp 0x10246f2d
push 0x3ff
lea eax, [esp + 0x90]
push eax
push esi
call fcn.10270aa0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10246f10
sub ecx, edx
mov eax, 0x3ff
sub eax, ecx
push eax
push dword [ebx + 0x102e5b14]
push esi
call fcn.1027a3b0
add esp, 0xc
mov byte [esi + 0x3ff], 0
push 0x102a7bf8
push esi
call fcn.10270c7b
add esp, 8
test eax, eax
jne 0x10246f73
push esi
push str.plD_FreeType_init:_Could_not_find_the_freetype_compatible_font:_n__s
lea eax, [esp + 0x894]
push 0x400
push eax
call fcn.1001dfe0
lea eax, [esp + 0x89c]
push eax
call fcn.1024aca0
add esp, 0x14
jmp 0x10246f7c
push eax
call fcn.10278567
add esp, 4
mov eax, dword [ebx + 0x102e5b10]
xor ecx, ecx
mov dword [ebx + 0x1033a520], eax
mov eax, esi
cmp byte [esi], cl
cmove eax, ecx
add ebp, 4
mov dword [ebx + 0x1033a524], eax
add esi, 0x400
add ebx, 8
sub dword [esp + 0x10], 1
jne 0x10246e98
mov ecx, dword [esp + 0xc8c]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.1026465b
add esp, 0xc80
ret