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

Disassembly:
sub esp, 0x50
mov eax, dword [0x10030040]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push ebp
mov ebp, edx
push esi
mov esi, dword [esp + 0x60]
mov edx, esi
mov dword [ebx + 4], ebp
mov dword [ebx + 8], esi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
push edi
mov dword [ebx + 0x40], ecx
mov ecx, ebp
push str.cmap
mov dword [esp + 0x28], ebp
call fcn.1001376f
mov edi, eax
mov dword [esp], str.loca
mov edx, esi
mov dword [esp + 0x20], edi
mov ecx, ebp
call fcn.1001376f
mov edx, esi
mov dword [esp + 0x24], eax
mov ecx, ebp
mov dword [ebx + 0x10], eax
mov dword [esp], str.head
call fcn.1001376f
mov edx, esi
mov dword [esp + 0x5c], eax
mov ecx, ebp
mov dword [ebx + 0x14], eax
mov dword [esp], str.glyf
call fcn.1001376f
mov edx, esi
mov dword [esp + 0x38], eax
mov ecx, ebp
mov dword [ebx + 0x18], eax
mov dword [esp], str.hhea
call fcn.1001376f
mov edx, esi
mov dword [esp + 0x58], eax
mov ecx, ebp
mov dword [ebx + 0x1c], eax
mov dword [esp], str.hmtx
call fcn.1001376f
mov edx, esi
mov dword [esp + 0x54], eax
mov ecx, ebp
mov dword [ebx + 0x20], eax
mov dword [esp], str.kern
call fcn.1001376f
mov edx, esi
mov dword [ebx + 0x24], eax
mov ecx, ebp
mov dword [esp], str.GPOS
call fcn.1001376f
mov dword [ebx + 0x28], eax
pop ecx
test edi, edi
je 0x10013a4a
cmp dword [esp + 0x58], 0
je 0x10013a4a
cmp dword [esp + 0x54], 0
je 0x10013a4a
cmp dword [esp + 0x50], 0
je 0x10013a4a
cmp dword [esp + 0x34], 0
je 0x10013a5f
cmp dword [esp + 0x20], 0
jne 0x10013c9c
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100257e1
add esp, 0x50
ret
xor edi, edi
mov dword [esp + 0x54], 2
push str.CFF
mov edx, esi
mov dword [esp + 0x54], edi
mov ecx, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
call fcn.1001376f
pop ecx
test eax, eax
je 0x10013a4a
mov dword [ebx + 0x68], edi
lea esi, [ebx + 0x38]
mov dword [ebx + 0x6c], edi
lea ecx, [esp + 0x38]
mov dword [ebx + 0x70], edi
add eax, ebp
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 + 0x38]
mov dword [esi + 8], 0x20000000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x3c]
lea edx, [edx + 2]
call fcn.100133b9
call fcn.100133a2
movzx ecx, al
mov eax, dword [esp + 0x40]
cmp ecx, eax
cmovle eax, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call fcn.10013427
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
call fcn.10013427
push ecx
mov esi, eax
mov edi, esp
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001361b
mov esi, eax
lea edi, [esp + 0x54]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10013427
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
call fcn.10013427
mov esi, eax
lea edi, [esp + 0x28]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x60]
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 + 0x2c]
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
pop edx
call fcn.100135da
lea eax, [esp + 0x74]
mov edx, 0x106
push eax
push esi
lea ecx, [esp + 0x6c]
call fcn.100135da
lea eax, [esp + 0x80]
mov edx, 0x124
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.100135da
lea eax, [esp + 0x64]
mov edx, 0x125
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.100135da
add esp, 0x2c
lea esi, [esp + 0x50]
mov edi, esp
lea eax, [esp + 0x34]
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 + 0x50]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001385d
mov esi, eax
lea edi, [esp + 0x2c]
add esp, 0x1c
cmp dword [esp + 0x54], 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 + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x10013a4a
cmp dword [esp + 0x50], 0
je 0x10013a4a
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10013c5a
cmp dword [esp + 0x34], 0
je 0x10013a4a
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x10013c04
mov dword [esp + 0x3c], eax
test eax, eax
jns 0x10013c08
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.10013427
mov esi, eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x14]
sub eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x1c]
lea edi, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100133f0
mov esi, eax
lea edi, [esp + 0x1c]
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x10]
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 + 0x50]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x10013c6e
mov dword [esp + 0x3c], eax
test eax, eax
jns 0x10013c72
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.10013427
mov esi, eax
lea edi, [esp + 0x14]
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 + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x1c]
push str.maxp
mov edx, esi
mov ecx, ebp
call fcn.1001376f
pop ecx
test eax, eax
je 0x10013cc0
movzx ecx, byte [eax + ebp + 5]
movzx eax, byte [eax + ebp + 4]
shl eax, 8
add ecx, eax
jmp 0x10013cc5
mov ecx, 0xffff
mov dword [ebx + 0xc], ecx
or dword [ebx + 0x2c], 0xffffffff
movzx ecx, byte [edi + ebp + 2]
movzx eax, byte [edi + ebp + 3]
and dword [ebx + 0x30], 0
shl ecx, 8
add eax, ecx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10013d31
lea esi, [ebp + 5]
mov ebp, eax
add esi, edi
movzx ecx, byte [esi - 1]
movzx eax, byte [esi]
shl ecx, 8
add eax, ecx
je 0x10013d18
cmp eax, 3
jne 0x10013d25
movzx ecx, byte [esi + 1]
movzx eax, byte [esi + 2]
shl ecx, 8
add ecx, eax
sub ecx, 1
je 0x10013d18
sub ecx, 9
jne 0x10013d25
lea ecx, [esi + 3]
call fcn.100136dc
add eax, edi
mov dword [ebx + 0x30], eax
add esi, 8
sub ebp, 1
jne 0x10013cee
mov ebp, dword [esp + 0x24]
cmp dword [ebx + 0x30], 0
je 0x10013a4a
mov ecx, dword [ebx + 0x14]
xor eax, eax
movzx edx, byte [ecx + ebp + 0x32]
movzx ecx, byte [ecx + ebp + 0x33]
shl edx, 8
add edx, ecx
inc eax
mov dword [ebx + 0x34], edx
jmp 0x10013a4c