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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0
mov ebx, edx
mov dword [ebp - 0x38], 0
movq xmm0, qword [ebp - 0x3c]
mov edx, eax
push str.cmap
movq qword [edi + 0x34], xmm0
mov ecx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0x3c], 0
call fcn.10040550
mov edx, dword [ebp + 8]
mov esi, eax
push str.loca
mov ecx, ebx
mov dword [ebp - 0xc], esi
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push 0x103b40f0
mov dword [ebp - 0x18], eax
mov dword [edi + 0x10], eax
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.glyf
mov dword [ebp - 0x14], eax
mov dword [edi + 0x14], eax
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.hhea
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.hmtx
mov dword [ebp - 0x10], eax
mov dword [edi + 0x1c], eax
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.kern
mov dword [ebp - 8], eax
mov dword [edi + 0x20], eax
call fcn.10040550
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.GPOS
mov dword [edi + 0x24], eax
call fcn.10040550
add esp, 0x20
mov dword [edi + 0x28], eax
test esi, esi
je 0x1004087e
cmp dword [ebp - 0x14], 0
je 0x1004087e
cmp dword [ebp - 0x10], 0
je 0x1004087e
cmp dword [ebp - 8], 0
je 0x1004087e
cmp dword [ebp - 4], 0
je 0x10040887
cmp dword [ebp - 0x18], 0
jne 0x10040bb8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, ebx
push str.CFF
mov dword [ebp - 0x10], 2
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.10040550
add esp, 4
test eax, eax
je 0x1004087e
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], 0
add eax, ebx
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x64], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x70], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x3c], 0x20000000
mov dword [ebp - 0x1c], 0x20000000
mov dword [ebp - 0x20], 2
call fcn.1003fff0
movzx ecx, al
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
cmovle eax, ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10040030
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10040030
push ecx
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
call fcn.10040420
lea ecx, [ebp - 0x24]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
movq qword [ebp - 0x30], xmm0
call fcn.10040030
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10040030
mov edx, 0x11
lea ecx, [ebp - 0x30]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [edi + 0x4c], xmm0
mov dword [edi + 0x54], eax
lea eax, [ebp - 0x48]
push eax
call fcn.10040290
add esp, 0x1c
xor esi, esi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
nop dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x100409ec
lea ecx, [ebp - 0x3c]
call fcn.10040120
mov dword [ebp + esi*4 - 8], eax
inc esi
cmp esi, 1
jge 0x100409ec
mov eax, dword [ebp - 0x34]
jmp 0x100409d0
lea eax, [ebp - 0x48]
mov edx, 0x106
push eax
lea ecx, [ebp - 0x30]
call fcn.10040290
add esp, 4
xor esi, esi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], eax
jge 0x10040a2d
lea ecx, [ebp - 0x3c]
call fcn.10040120
mov dword [ebp + esi*4 - 0x10], eax
inc esi
cmp esi, 1
jge 0x10040a2d
mov eax, dword [ebp - 0x34]
jmp 0x10040a11
lea eax, [ebp - 0x48]
mov edx, 0x124
push eax
lea ecx, [ebp - 0x30]
call fcn.10040290
add esp, 4
xor esi, esi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], eax
jge 0x10040a6e
lea ecx, [ebp - 0x3c]
call fcn.10040120
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 1
jge 0x10040a6e
mov eax, dword [ebp - 0x34]
jmp 0x10040a52
lea eax, [ebp - 0x48]
mov edx, 0x125
push eax
lea ecx, [ebp - 0x30]
call fcn.10040290
add esp, 4
xor esi, esi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], eax
jge 0x10040aaf
lea ecx, [ebp - 0x3c]
call fcn.10040120
mov dword [ebp + esi*4 - 4], eax
inc esi
cmp esi, 1
jge 0x10040aaf
mov eax, dword [ebp - 0x34]
jmp 0x10040a93
movq xmm0, qword [ebp - 0x30]
sub esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, esp
mov esi, dword [ebp - 0x1c]
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x24]
mov dword [ecx + 8], eax
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], esi
lea eax, [ebp - 0x48]
push eax
call fcn.100405f0
add esp, 0x1c
cmp dword [ebp - 0x10], 2
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [edi + 0x58], xmm0
mov dword [edi + 0x60], eax
jne 0x1004087e
cmp dword [ebp - 8], 0
je 0x1004087e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10040b86
cmp dword [ebp - 4], 0
je 0x1004087e
cmp eax, esi
jg 0x10040b22
mov dword [ebp - 0x20], eax
test eax, eax
jns 0x10040b25
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.10040030
mov esi, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, esi
mov dword [ebp - 0x3c], 0
sub edx, ecx
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [edi + 0x64], xmm0
mov dword [edi + 0x6c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
test ecx, ecx
js 0x10040b7e
test edx, edx
js 0x10040b7e
cmp ecx, esi
jg 0x10040b7e
mov eax, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, edx
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x70], xmm0
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 8]
cmp eax, esi
jg 0x10040b94
mov dword [ebp - 0x20], eax
test eax, eax
jns 0x10040b97
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.10040030
mov esi, dword [ebp - 0xc]
add esp, 4
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [edi + 0x40], xmm0
mov dword [edi + 0x48], eax
mov edx, dword [ebp + 8]
mov ecx, ebx
push 0x103b4118
call fcn.10040550
add esp, 4
test eax, eax
je 0x10040bdf
movzx ecx, byte [eax + ebx + 4]
movzx eax, byte [eax + ebx + 5]
shl ecx, 8
add ecx, eax
jmp 0x10040be4
mov ecx, 0xffff
mov dword [edi + 0xc], ecx
movzx ecx, byte [esi + ebx + 2]
movzx eax, byte [esi + ebx + 3]
shl ecx, 8
add eax, ecx
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x14], eax
je 0x1004087e
mov edx, ebx
add esi, 5
not edx
add esi, ebx
mov dword [ebp + 8], edx
movzx ecx, byte [esi - 1]
movzx eax, byte [esi]
shl ecx, 8
add eax, ecx
je 0x10040c49
cmp eax, 3
jne 0x10040c77
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
shl eax, 8
add eax, ecx
sub eax, 1
je 0x10040c3c
sub eax, 9
jne 0x10040c77
lea ecx, [esi + 3]
call fcn.10040530
add eax, dword [ebp - 0xc]
jmp 0x10040c71
lea ecx, [edx + esi]
movzx edx, byte [ecx + ebx + 4]
add ecx, ebx
shl edx, 8
movzx eax, byte [ecx + 5]
add edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 7]
shl edx, 8
add edx, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edi + 0x2c], eax
add esi, 8
sub dword [ebp - 0x14], 1
jne 0x10040c12
cmp dword [edi + 0x2c], 0
je 0x1004087e
mov eax, dword [edi + 0x14]
movzx ecx, byte [ebx + eax + 0x32]
movzx eax, byte [ebx + eax + 0x33]
shl ecx, 8
add ecx, eax
mov eax, 1
mov dword [edi + 0x30], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret