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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10083040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
mov edx, edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], ecx
mov ecx, esi
push str.cmap
mov dword [ebp - 0x40], esi
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 0x3c], eax
mov ecx, esi
mov dword [esp], str.loca
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 0x44], eax
mov ecx, esi
mov dword [ebx + 0x10], eax
mov dword [esp], str.head
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebx + 0x14], eax
mov dword [esp], str.glyf
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 0x14], eax
mov ecx, esi
mov dword [ebx + 0x18], eax
mov dword [esp], str.hhea
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 0x10], eax
mov ecx, esi
mov dword [ebx + 0x1c], eax
mov dword [esp], str.hmtx
call fcn.1001d2cd
mov edx, edi
mov dword [ebp - 0xc], eax
mov ecx, esi
mov dword [ebx + 0x20], eax
mov dword [esp], str.kern
call fcn.1001d2cd
mov edx, edi
mov dword [ebx + 0x24], eax
mov ecx, esi
mov dword [esp], str.GPOS
call fcn.1001d2cd
cmp dword [ebp - 0x3c], 0
pop ecx
mov dword [ebx + 0x28], eax
je 0x1001d58f
cmp dword [ebp - 8], 0
je 0x1001d58f
cmp dword [ebp - 0x10], 0
je 0x1001d58f
cmp dword [ebp - 0xc], 0
je 0x1001d58f
cmp dword [ebp - 0x14], 0
je 0x1001d5a0
cmp dword [ebp - 0x44], 0
jne 0x1001d78c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10040b6d
leave
ret
xor eax, eax
mov dword [ebp - 0x10], 2
push str.CFF
mov edx, edi
mov dword [ebp - 0xc], eax
mov ecx, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
call fcn.1001d2cd
pop ecx
test eax, eax
je 0x1001d58f
xor edx, edx
lea edi, [ebp - 0x20]
mov dword [ebx + 0x68], edx
lea ecx, [ebp - 0x20]
mov dword [ebx + 0x6c], edx
add eax, esi
mov dword [ebx + 0x70], edx
lea esi, [ebx + 0x38]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x7c], edx
mov dword [esi], eax
mov dword [esi + 4], edx
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 [ebp - 0x1c]
lea edx, [edx + 2]
call fcn.1001ce63
lea ecx, [ebp - 0x20]
call fcn.1001ce4c
movzx edx, al
lea ecx, [ebp - 0x20]
call fcn.1001ce63
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001cf1c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001cf1c
push ecx
mov esi, eax
mov edi, esp
lea eax, [ebp - 0x38]
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.1001d144
mov esi, eax
lea edi, [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001cf1c
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001cf1c
mov esi, eax
lea edi, [ebp - 0x38]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x50]
lea esi, [ebp - 0x38]
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.1001d103
lea eax, [ebp - 0x10]
mov edx, 0x106
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001d103
lea eax, [ebp - 8]
mov edx, 0x124
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001d103
lea eax, [ebp - 0x14]
mov edx, 0x125
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001d103
add esp, 0x2c
lea esi, [ebp - 0x2c]
mov edi, esp
lea eax, [ebp - 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, [ebp - 0x20]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001d3c3
mov esi, eax
lea edi, [ebp - 0x38]
add esp, 0x1c
cmp dword [ebp - 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, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x1001d58f
cmp dword [ebp - 0xc], 0
je 0x1001d58f
mov edx, dword [ebp - 8]
test edx, edx
je 0x1001d75d
cmp dword [ebp - 0x14], 0
je 0x1001d58f
lea ecx, [ebp - 0x20]
call fcn.1001ce63
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001cf1c
mov esi, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x38]
sub eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x38]
lea edi, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001cee3
mov esi, eax
lea edi, [ebp - 0x38]
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x38]
lea edi, [ebx + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
call fcn.1001ce63
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001cf1c
mov esi, eax
lea edi, [ebp - 0x38]
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, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp + 8]
push str.maxp
mov edx, edi
mov ecx, esi
call fcn.1001d2cd
pop ecx
test eax, eax
je 0x1001d7b0
movzx ecx, byte [esi + eax + 4]
movzx eax, byte [esi + eax + 5]
shl ecx, 8
add ecx, eax
jmp 0x1001d7b5
mov ecx, 0xffff
mov edx, dword [ebp - 0x3c]
mov dword [ebx + 0xc], ecx
or dword [ebx + 0x2c], 0xffffffff
movzx ecx, byte [esi + edx + 2]
movzx eax, byte [esi + edx + 3]
and dword [ebx + 0x30], 0
shl ecx, 8
add eax, ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x1001d823
lea edi, [edx + 5]
add edi, esi
mov esi, edx
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
add eax, ecx
je 0x1001d80a
cmp eax, 3
jne 0x1001d817
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
add ecx, eax
sub ecx, 1
je 0x1001d80a
sub ecx, 9
jne 0x1001d817
lea ecx, [edi + 3]
call fcn.1001d23a
add eax, esi
mov dword [ebx + 0x30], eax
add edi, 8
sub dword [ebp - 8], 1
jne 0x1001d7e0
mov esi, dword [ebp - 0x40]
cmp dword [ebx + 0x30], 0
je 0x1001d58f
mov ecx, dword [ebx + 0x14]
xor eax, eax
movzx edx, byte [ecx + esi + 0x33]
movzx ecx, byte [ecx + esi + 0x32]
shl ecx, 8
add edx, ecx
inc eax
mov dword [ebx + 0x34], edx
jmp 0x1001d591