Function at 0x100404ab
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.10041e99
push str.loca
mov edi, eax
push esi
push ebp
mov dword [esp + 0x34], edi
call fcn.10041e99
push str.head
push esi
push ebp
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x10], eax
call fcn.10041e99
push str.glyf
push esi
push ebp
mov dword [esp + 0x88], eax
mov dword [ebx + 0x14], eax
call fcn.10041e99
push str.hhea
push esi
push ebp
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x18], eax
call fcn.10041e99
push str.hmtx
push esi
push ebp
mov dword [esp + 0x9c], eax
mov dword [ebx + 0x1c], eax
call fcn.10041e99
add esp, 0x48
mov dword [esp + 0x14], eax
mov dword [ebx + 0x20], eax
push str.kern
push esi
push ebp
call fcn.10041e99
push str.GPOS
push esi
push ebp
mov dword [ebx + 0x24], eax
call fcn.10041e99
add esp, 0x18
mov dword [ebx + 0x28], eax
test edi, edi
je 0x10040595
cmp dword [esp + 0x58], 0
je 0x10040595
cmp dword [esp + 0x54], 0
je 0x10040595
cmp dword [esp + 0x14], 0
je 0x10040595
cmp dword [esp + 0x10], 0
je 0x1004059f
cmp dword [esp + 0x18], 0
jne 0x100407f1
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.10041e99
add esp, 0xc
test eax, eax
je 0x10040595
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.1004129b
lea eax, [esp + 0x28]
push eax
call fcn.1004121d
movzx eax, al
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1004129b
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.100412c8
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.100412c8
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.10041331
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.100412c8
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.100412c8
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.10041875
lea eax, [esp + 0x44]
push eax
push esi
lea eax, [esp + 0x68]
push 0x106
push eax
call fcn.10041875
add esp, 0x44
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x34]
push 0x124
push eax
call fcn.10041875
lea eax, [esp + 0x68]
push eax
push esi
lea eax, [esp + 0x44]
push 0x125
push eax
call fcn.10041875
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.10041f97
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 0x10040595
cmp dword [esp + 0x54], 0
je 0x10040595
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100407ad
cmp dword [esp + 0x58], 0
je 0x10040595
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x10040755
mov dword [esp + 0x24], eax
test eax, eax
jns 0x10040759
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.100412c8
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.1004125e
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 0x100407c1
mov dword [esp + 0x24], eax
test eax, eax
jns 0x100407c5
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.100412c8
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.10041e99
add esp, 0xc
test eax, eax
je 0x10040815
add eax, 4
add eax, ebp
push eax
call fcn.10043ebd
pop ecx
movzx eax, ax
jmp 0x1004081a
mov eax, 0xffff
mov dword [ebx + 0xc], eax
lea eax, [ebp + 2]
or dword [ebx + 0x2c], 0xffffffff
add eax, edi
push eax
call fcn.10043ebd
and dword [ebx + 0x30], 0
xor esi, esi
movzx eax, ax
mov dword [esp + 0x5c], eax
pop ecx
test eax, eax
je 0x10040894
lea eax, [esi*8 + 4]
add eax, edi
add eax, ebp
push eax
mov dword [esp + 0x60], eax
call fcn.10043ebd
pop ecx
test ax, ax
je 0x1004087a
cmp ax, 3
jne 0x1004088d
mov eax, dword [esp + 0x5c]
add eax, 2
push eax
call fcn.10043ebd
movzx eax, ax
pop ecx
sub eax, 1
je 0x1004087a
sub eax, 9
jne 0x1004088d
mov eax, dword [esp + 0x5c]
add eax, 4
push eax
call fcn.10043e9a
add eax, edi
mov dword [ebx + 0x30], eax
pop ecx
inc esi
cmp esi, dword [esp + 0x58]
jl 0x1004083e
cmp dword [ebx + 0x30], 0
je 0x10040595
mov ecx, dword [ebx + 0x14]
add ecx, 0x32
add ecx, ebp
push ecx
call fcn.10043ebd
pop ecx
movzx ecx, ax
xor eax, eax
mov dword [ebx + 0x34], ecx
inc eax
jmp 0x10040597