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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
push str.cmap
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0x34], 0
push ebx
mov dword [esi + 0x38], 0
push edi
mov dword [esi + 0x3c], 0
call fcn.10052fa0
push str.loca
push ebx
push edi
mov ebp, eax
call fcn.10052fa0
push str.head
push ebx
push edi
mov dword [esp + 0x38], eax
mov dword [esi + 0x10], eax
call fcn.10052fa0
push str.glyf
push ebx
push edi
mov dword [esp + 0x74], eax
mov dword [esi + 0x14], eax
call fcn.10052fa0
push str.hhea
push ebx
push edi
mov dword [esp + 0x4c], eax
mov dword [esi + 0x18], eax
call fcn.10052fa0
push str.hmtx
push ebx
push edi
mov dword [esp + 0x88], eax
mov dword [esi + 0x1c], eax
call fcn.10052fa0
add esp, 0x48
mov dword [esp + 0x48], eax
mov dword [esi + 0x20], eax
push str.kern
push ebx
push edi
call fcn.10052fa0
push str.GPOS
push ebx
push edi
mov dword [esi + 0x24], eax
call fcn.10052fa0
add esp, 0x18
mov dword [esi + 0x28], eax
test ebp, ebp
je 0x100511bd
cmp dword [esp + 0x44], 0
je 0x100511bd
cmp dword [esp + 0x40], 0
je 0x100511bd
cmp dword [esp + 0x48], 0
je 0x100511bd
cmp dword [esp + 0x10], 0
je 0x100511c7
cmp dword [esp + 0x14], 0
jne 0x1005148d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push str.CFF
push ebx
push edi
mov dword [esp + 0x54], 2
mov dword [esp + 0x4c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x50], 0
call fcn.10052fa0
add esp, 0xc
test eax, eax
je 0x100511bd
mov dword [esi + 0x64], 0
add eax, edi
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0x20000000
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push 2
push eax
call fcn.10052080
lea eax, [esp + 0x20]
push eax
call fcn.10051fe0
movzx eax, al
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10052060
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.100520a0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.100520a0
add esp, 0x24
mov ecx, dword [eax]
push 0
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
lea eax, [esp + 0x40]
push eax
call fcn.10052160
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
push eax
call fcn.100520a0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.100520a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x64]
push eax
push 1
lea eax, [esp + 0x50]
push 0x11
push eax
call fcn.10052920
lea eax, [esp + 0x7c]
push eax
push 1
lea eax, [esp + 0x60]
push 0x106
push eax
call fcn.10052920
add esp, 0x44
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x2c]
push 0x124
push eax
call fcn.10052920
lea eax, [esp + 0x54]
push eax
push 1
lea eax, [esp + 0x3c]
push 0x125
push eax
call fcn.10052920
mov eax, dword [esp + 0x44]
add esp, 0x14
mov ecx, esp
sub esp, 0xc
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
lea eax, [esp + 0x48]
push eax
call fcn.10053060
add esp, 0x1c
cmp dword [esp + 0x48], 2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
jne 0x100511bd
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100511bd
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10051456
cmp dword [esp + 0x44], 0
je 0x100511bd
mov eax, dword [esp + 0x20]
cmp ecx, eax
jg 0x100513d8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jns 0x100513dc
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.100520a0
add esp, 8
mov dword [esp + 0x48], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x68], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x6c], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], eax
test edx, edx
js 0x1005143b
test eax, eax
js 0x1005143b
cmp edx, ecx
jg 0x1005143b
mov eax, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
jmp 0x1005143f
mov eax, dword [esp + 0x44]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x40]
jmp 0x1005145a
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x10051466
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x1005146a
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.100520a0
add esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
push str.maxp
push ebx
push edi
call fcn.10052fa0
add esp, 0xc
test eax, eax
je 0x100514b1
movzx ecx, byte [eax + edi + 5]
movzx eax, byte [eax + edi + 4]
shl eax, 8
add ecx, eax
jmp 0x100514b6
mov ecx, 0xffff
mov dword [esi + 0xc], ecx
movzx ebx, byte [edi + ebp + 2]
movzx eax, byte [edi + ebp + 3]
shl ebx, 8
mov dword [esi + 0x2c], 0
add ebx, eax
je 0x10051536
lea eax, [edi + 9]
add eax, ebp
jmp 0x100514e0
movzx edx, byte [eax - 5]
movzx ecx, byte [eax - 4]
shl edx, 8
add ecx, edx
je 0x1005150b
cmp ecx, 3
jne 0x1005152e
movzx edx, byte [eax - 3]
movzx ecx, byte [eax - 2]
shl edx, 8
add edx, ecx
sub edx, 1
je 0x1005150b
sub edx, 9
jne 0x1005152e
movzx edx, byte [eax - 1]
movzx ecx, byte [eax]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
add edx, ebp
add ecx, edx
mov dword [esi + 0x2c], ecx
add eax, 8
sub ebx, 1
jne 0x100514e0
cmp dword [esi + 0x2c], 0
je 0x100511bd
mov eax, dword [esi + 0x14]
movzx ecx, byte [eax + edi + 0x32]
movzx eax, byte [eax + edi + 0x33]
shl ecx, 8
add ecx, eax
mov eax, 1
pop edi
mov dword [esi + 0x30], ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret