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

Disassembly:
sub esp, 0xc80
mov eax, dword [0x104fb780]
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.1013af17
push 0x3ff
push eax
lea eax, [esp + 0x48c]
push eax
call fcn.10131ff0
add esp, 0x10
mov byte [esp + 0x87f], 0
cmp dword [edi + 0x4698], 0
je 0x101a8153
push str.Freetype_seems_already_to_have_been_initialised_
call fcn.1018fc70
add esp, 4
pop edi
mov ecx, dword [esp + 0xc7c]
xor ecx, esp
call fcn.1011f88a
add esp, 0xc80
ret
push 0x78a0
push 1
call fcn.1012cc5f
add esp, 8
mov dword [edi + 0x4698], eax
test eax, eax
jne 0x101a8179
push str.Could_not_allocate_memory_for_Freetype
call fcn.1018faa0
add esp, 4
push ebx
push ebp
push esi
mov esi, dword [edi + 0x4698]
push 1
push 0x400
call fcn.1012cc5f
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x101a81a5
push str.Could_not_allocate_memory_for_Freetype_text_buffer
call fcn.1018faa0
add esp, 4
lea eax, [esi + 0x7880]
push eax
call fcn.101ae700
add esp, 4
test eax, eax
je 0x101a81c5
push str.Could_not_initialise_Freetype_library
call fcn.1018faa0
add esp, 4
push str.PLPLOT_FREETYPE_FONT_DIR
mov dword [esi + 0x7838], 0
call fcn.1013af17
test eax, eax
mov ecx, str.c:_windows_fonts_
push 0x3ff
cmovne ecx, eax
lea eax, [esp + 0x94]
push ecx
push eax
call fcn.10131ff0
add esp, 0x10
mov byte [esp + 0x48b], 0
cmp dword [edi + 0xc], 0
je 0x101a8227
lea eax, [esp + 0x8c]
push eax
push 0x1042c6b4
push 2
call fcn.101307d4
add esp, 4
push eax
call fcn.10041eb0
add esp, 0xc
add esi, 0x38
mov dword [esp + 0x10], 0x1e
lea ebp, [esp + 0x14]
xor ebx, ebx
push dword [ebp]
call fcn.1013af17
mov edi, eax
add esp, 4
test edi, edi
je 0x101a8292
mov cl, byte [edi]
cmp cl, 0x2f
je 0x101a8284
cmp cl, 0x7e
je 0x101a8284
push 0x3ff
lea eax, [esp + 0x90]
push eax
push esi
call fcn.10131ff0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a8270
sub ecx, edx
mov eax, 0x3ff
sub eax, ecx
push eax
push edi
jmp 0x101a82c7
push 0x3ff
push edi
push esi
call fcn.10131ff0
jmp 0x101a82cd
push 0x3ff
lea eax, [esp + 0x90]
push eax
push esi
call fcn.10131ff0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a82b0
sub ecx, edx
mov eax, 0x3ff
sub eax, ecx
push eax
push dword [ebx + 0x104ac06c]
push esi
call fcn.101ab8e0
add esp, 0xc
mov byte [esi + 0x3ff], 0
push 0x103c54a0
push esi
call fcn.10136faf
add esp, 8
test eax, eax
jne 0x101a8313
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.1001be4a
lea eax, [esp + 0x89c]
push eax
call fcn.1018fc70
add esp, 0x14
jmp 0x101a831c
push eax
call fcn.1012d122
add esp, 4
mov eax, dword [ebx + 0x104ac068]
xor ecx, ecx
mov dword [ebx + 0x1050c800], eax
mov eax, esi
cmp byte [esi], cl
cmove eax, ecx
add ebp, 4
mov dword [ebx + 0x1050c804], eax
add esi, 0x400
add ebx, 8
sub dword [esp + 0x10], 1
jne 0x101a8238
mov ecx, dword [esp + 0xc8c]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.1011f88a
add esp, 0xc80
ret