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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x58]
push edi
mov dword [ebx + 4], ebp
mov dword [ebx + 8], esi
push str.cmap
mov dword [ebx + 0x38], ecx
push esi
mov dword [ebx + 0x3c], ecx
push ebp
mov dword [ebx + 0x40], ecx
call fcn.1004145d
push str.loca
mov edi, eax
push esi
push ebp
mov dword [esp + 0x34], edi
call fcn.1004145d
push str.head
push esi
push ebp
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x10], eax
call fcn.1004145d
push str.glyf
push esi
push ebp
mov dword [esp + 0x88], eax
mov dword [ebx + 0x14], eax
call fcn.1004145d
push str.hhea
push esi
push ebp
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x18], eax
call fcn.1004145d
push str.hmtx
push esi
push ebp
mov dword [esp + 0x9c], eax
mov dword [ebx + 0x1c], eax
call fcn.1004145d
add esp, 0x48
mov dword [esp + 0x14], eax
mov dword [ebx + 0x20], eax
push str.kern
push esi
push ebp
call fcn.1004145d
push str.GPOS
push esi
push ebp
mov dword [ebx + 0x24], eax
call fcn.1004145d
add esp, 0x18
mov dword [ebx + 0x28], eax
test edi, edi
je 0x1003fb59
cmp dword [esp + 0x58], 0
je 0x1003fb59
cmp dword [esp + 0x54], 0
je 0x1003fb59
cmp dword [esp + 0x14], 0
je 0x1003fb59
cmp dword [esp + 0x10], 0
je 0x1003fb63
cmp dword [esp + 0x18], 0
jne 0x1003fdb5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push str.CFF
xor edi, edi
mov dword [esp + 0x14], 2
push esi
push ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x64], edi
call fcn.1004145d
add esp, 0xc
test eax, eax
je 0x1003fb59
mov dword [ebx + 0x68], edi
lea esi, [ebx + 0x38]
mov dword [ebx + 0x6c], edi
add eax, ebp
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x7c], edi
mov dword [esi], eax
mov dword [esi + 4], edi
lea edi, [esp + 0x20]
mov dword [esi + 8], 0x20000000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
add eax, 2
push eax
lea eax, [esp + 0x24]
push eax
call fcn.1004085f
lea eax, [esp + 0x28]
push eax
call fcn.100407e1
movzx eax, al
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1004085f
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1004088c
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1004088c
add esp, 0x24
mov esi, eax
lea eax, [esp + 0x38]
push 0
sub esp, 0xc
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100408f5
mov esi, eax
lea edi, [esp + 0x40]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1004088c
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.1004088c
mov esi, eax
lea edi, [esp + 0x5c]
lea eax, [esp + 0x78]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x50]
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push esi
push 0x11
lea eax, [esp + 0x5c]
push eax
call fcn.10040e39
lea eax, [esp + 0x44]
push eax
push esi
lea eax, [esp + 0x68]
push 0x106
push eax
call fcn.10040e39
add esp, 0x44
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x34]
push 0x124
push eax
call fcn.10040e39
lea eax, [esp + 0x68]
push eax
push esi
lea eax, [esp + 0x44]
push 0x125
push eax
call fcn.10040e39
add esp, 0x14
lea esi, [esp + 0x38]
mov edi, esp
lea eax, [esp + 0x50]
sub esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x38]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1004155b
mov esi, eax
lea edi, [esp + 0x54]
add esp, 0x1c
cmp dword [esp + 0x10], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x5c]
lea esi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x1003fb59
cmp dword [esp + 0x54], 0
je 0x1003fb59
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003fd71
cmp dword [esp + 0x58], 0
je 0x1003fb59
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x1003fd19
mov dword [esp + 0x24], eax
test eax, eax
jns 0x1003fd1d
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1004088c
mov esi, eax
lea edi, [esp + 0x40]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x60]
push eax
push dword [esp + 0x64]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x58]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x50]
lea edi, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10040822
mov esi, eax
lea edi, [esp + 0x50]
add esp, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x38]
lea edi, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x1003fd85
mov dword [esp + 0x24], eax
test eax, eax
jns 0x1003fd89
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1004088c
mov esi, eax
lea edi, [esp + 0x40]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x44]
lea esi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x1c]
push str.maxp
push esi
push ebp
call fcn.1004145d
add esp, 0xc
test eax, eax
je 0x1003fdd9
add eax, 4
add eax, ebp
push eax
call fcn.10043481
pop ecx
movzx eax, ax
jmp 0x1003fdde
mov eax, 0xffff
mov dword [ebx + 0xc], eax
lea eax, [ebp + 2]
or dword [ebx + 0x2c], 0xffffffff
add eax, edi
push eax
call fcn.10043481
and dword [ebx + 0x30], 0
xor esi, esi
movzx eax, ax
mov dword [esp + 0x5c], eax
pop ecx
test eax, eax
je 0x1003fe58
lea eax, [esi*8 + 4]
add eax, edi
add eax, ebp
push eax
mov dword [esp + 0x60], eax
call fcn.10043481
pop ecx
test ax, ax
je 0x1003fe3e
cmp ax, 3
jne 0x1003fe51
mov eax, dword [esp + 0x5c]
add eax, 2
push eax
call fcn.10043481
movzx eax, ax
pop ecx
sub eax, 1
je 0x1003fe3e
sub eax, 9
jne 0x1003fe51
mov eax, dword [esp + 0x5c]
add eax, 4
push eax
call fcn.1004345e
add eax, edi
mov dword [ebx + 0x30], eax
pop ecx
inc esi
cmp esi, dword [esp + 0x58]
jl 0x1003fe02
cmp dword [ebx + 0x30], 0
je 0x1003fb59
mov ecx, dword [ebx + 0x14]
add ecx, 0x32
add ecx, ebp
push ecx
call fcn.10043481
pop ecx
movzx ecx, ax
xor eax, eax
mov dword [ebx + 0x34], ecx
inc eax
jmp 0x1003fb5b