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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x21c
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 0xc]
mov esi, dword [eax*8 + 0x50d540]
lea edi, [eax*8 + 0x50d540]
mov dword [esp + 0x40], edi
cmp esi, 0x284
je 0x4c1515
lea eax, [esi + 0x50d680]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], eax
nop
mov eax, dword [esp + 0x18]
movzx edx, byte [eax]
test dl, dl
je 0x4c14f0
cmp dl, 0x7f
lea ecx, [eax + 1]
movzx eax, dl
jbe 0x4c1480
cmp dl, 0xdf
ja 0x4c1490
mov eax, dword [esp + 0x18]
and edx, 0x1f
mov ebx, 1
shl edx, 6
movzx eax, byte [eax + 1]
and eax, 0x3f
or eax, edx
lea edi, [ecx + ebx]
mov dword [esp + 0x18], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp], eax
call sym._FT_Get_Char_Index
test eax, eax
je 0x4c0fd0
mov edi, dword [esp + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._FT_Load_Glyph
mov edx, dword [edi + 0x54]
test eax, eax
mov edi, dword [edx + 0x74]
movzx ecx, word [edx + 0x6c]
mov ebx, dword [edx + 0x70]
mov dword [esp + 0x44], edi
mov edi, dword [edx + 0x78]
mov dword [esp + 0x2c], edi
jne 0x4c0fd0
cmp word [edx + 0x6e], 0
jle 0x4c0fd0
movsx eax, cx
test eax, eax
mov dword [esp + 0x30], eax
jle 0x4c182d
mov dword [esp + 0x20], 0
xor esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0xffffffff
xor edi, edi
mov eax, dword [esp + 0x2c]
movsx ecx, word [eax + esi*2]
cmp ecx, dword [esp + 0x20]
jle 0x4c1101
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
test byte [eax + 4], 1
mov eax, dword [esp + 0x20]
je 0x4c1461
lea esi, [esi]
test edx, edx
js 0x4c1471
mov ebp, dword [ebx + eax*8 + 4]
cmp ebp, edi
jle 0x4c10e4
mov edi, ebp
mov edx, eax
add eax, 1
cmp ecx, eax
jge 0x4c10d0
cmp edx, dword [esp + 0x1c]
je 0x4c1101
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
add esi, 1
cmp esi, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
jne 0x4c10a5
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x58], eax
js 0x4c1537
mov esi, dword [ebx + eax*8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], esi
mov esi, eax
movzx eax, byte [ecx + eax]
mov ebp, esi
mov edi, ecx
and eax, 3
cmp al, 1
mov eax, 0xffffffff
cmove eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x4c1159
cmp edx, dword [esp + 0x1c]
je 0x4c11c0
mov ebp, edx
cmp ebp, dword [esp + 0x24]
lea edx, [ebp - 1]
cmovle edx, dword [esp + 0x28]
lea esi, [ebx + edx*8]
mov eax, dword [esi + 4]
sub eax, dword [esp + 0x20]
mov ecx, eax
sar ecx, 0x1f
xor eax, ecx
sub eax, ecx
cmp eax, 5
jle 0x4c119a
mov ecx, dword [esi]
sub ecx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
shl eax, 2
mov esi, ecx
sar esi, 0x1f
xor ecx, esi
sub ecx, esi
cmp ecx, eax
jle 0x4c17eb
movzx eax, byte [edi + edx]
and eax, 3
cmp al, 1
jne 0x4c1151
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
test ebp, ebp
jns 0x4c1151
cmp edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], edx
jne 0x4c1157
nop
lea esi, [esi]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, ebp
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], ebp
mov edi, ebx
mov dword [esp + 0x30], eax
jmp 0x4c11e8
cmp edx, dword [esp + 0x1c]
je 0x4c1250
mov esi, edx
cmp esi, dword [esp + 0x28]
lea edx, [esi + 1]
cmovge edx, dword [esp + 0x24]
lea ecx, [edi + edx*8]
mov eax, dword [ecx + 4]
sub eax, dword [esp + 0x20]
mov ebx, eax
sar ebx, 0x1f
xor eax, ebx
sub eax, ebx
cmp eax, 5
jle 0x4c1229
mov ebx, dword [ecx]
sub ebx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
shl eax, 2
mov ebp, ebx
sar ebp, 0x1f
xor ebx, ebp
sub ebx, ebp
cmp ebx, eax
jle 0x4c17d8
mov eax, dword [esp + 0x30]
movzx eax, byte [eax + edx]
and eax, 3
cmp al, 1
jne 0x4c11e0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
test esi, esi
jns 0x4c11e0
cmp edx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
jne 0x4c11e6
nop
mov eax, dword [esp + 0x1c]
mov ebx, edi
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
movzx eax, word [eax + 4]
test al, 8
mov word [esp + 0x68], ax
je 0x4c15f0
mov eax, dword [esp + 0x34]
mov esi, dword [eax + 0x28]
mov eax, 0x51eb851f
mul esi
mov eax, dword [esp + 0x30]
mov eax, dword [ebx + eax*8]
sub eax, dword [ebx + ebp*8]
shr edx, 3
mov dword [esp + 0x60], edx
cdq
xor eax, edx
sub eax, edx
cmp dword [esp + 0x60], eax
jle 0x4c15f0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
sub eax, ebp
add eax, 1
cmp eax, edx
jge 0x4c15f0
shr esi, 2
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x58]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
jmp 0x4c12f8
cmp edx, ebp
je 0x4c0fd0
lea eax, [edx - 1]
cmp edx, ecx
cmovle eax, esi
mov edx, eax
mov eax, dword [ebx + eax*8]
cmp eax, edi
je 0x4c12f0
mov esi, edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
cmp esi, edx
je 0x4c0fd0
cmp dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x58], 0
mov ebp, ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x2c], edi
mov esi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], ecx
setg byte [esp + 0x6b]
xor eax, eax
jmp 0x4c140c
mov eax, dword [esp + 0x20]
lea edx, [esi + 1]
lea eax, [ebp + eax*8]
cmp esi, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov esi, edx
mov edx, dword [esp + 0x2c]
cmovge esi, dword [esp + 0x24]
sub edx, ecx
mov ebx, edx
sar ebx, 0x1f
xor edx, ebx
sub edx, ebx
cmp dword [esp + 0x54], edx
jl 0x4c1660
lea ebx, [ebp + esi*8]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
mov dword [esp + 0x5c], eax
sub edx, ecx
mov edi, edx
sar edi, 0x1f
xor edx, edi
sub edx, edi
mov edi, dword [ebx]
mov ebx, eax
mov eax, edi
sub eax, ebx
mov ebx, eax
sar ebx, 0x1f
xor eax, ebx
sub eax, ebx
cmp edx, 5
jle 0x4c13ce
lea ebx, [edx + edx*4]
shl ebx, 2
cmp eax, ebx
jle 0x4c1660
mov ebx, dword [esp + 0x44]
movzx ebx, byte [ebx + esi]
mov byte [esp + 0x6a], bl
and ebx, 3
cmp bl, 1
je 0x4c1814
cmp edi, dword [esp + 0x5c]
setg bl
cmp byte [esp + 0x6b], bl
jne 0x4c13fd
cmp dword [esp + 0x60], eax
jle 0x4c154b
cmp esi, dword [esp + 0x1c]
mov eax, 1
je 0x4c166c
test al, al
jne 0x4c1360
mov eax, dword [esp + 0x44]
mov edi, 0xffffffff
mov dword [esp + 0x20], esi
movzx eax, byte [eax + esi]
mov edx, eax
mov eax, esi
and edx, 3
cmp dl, 1
cmove edi, esi
mov dword [esp + 0x58], edi
mov edi, 0xffffffff
cmove edi, esi
mov dword [esp + 0x64], edi
jmp 0x4c1364
mov edi, dword [ebx + eax*8 + 4]
mov edx, eax
add eax, 1
cmp ecx, eax
jl 0x4c10eb
test edx, edx
js 0x4c1450
mov ebp, dword [ebx + eax*8 + 4]
cmp ebp, edi
jge 0x4c1456
mov edi, ebp
jmp 0x4c1454
mov edi, dword [ebx + eax*8 + 4]
jmp 0x4c10e2
mov dword [esp + 0x18], ecx
jmp 0x4c1016
cmp eax, 0xef
ja 0x4c14e0
and edx, 0xf
mov ebx, 2
mov edi, dword [esp + 0x18]
shl edx, 6
movzx eax, byte [edi + 1]
and eax, 0x3f
or eax, edx
shl eax, 6
mov edx, eax
movzx eax, byte [edi + 2]
and eax, 0x3f
or eax, edx
cmp ebx, 2
je 0x4c100f
movzx edx, byte [edi + 3]
shl eax, 6
and edx, 0x3f
or eax, edx
jmp 0x4c100f
and edx, 7
mov ebx, 3
jmp 0x4c149f
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
jne 0x4c167b
add dword [esp + 0x40], 8
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
cmp esi, 0x284
jne 0x4c0fb5
add esp, 0x21c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
movzx eax, byte [eax + esi]
and eax, 3
cmp al, 1
jne 0x4c1636
mov eax, dword [esp + 0x48]
mov dword [esp + eax*4 + 0x78], edi
add eax, 1
mov dword [esp + 0x48], eax
jmp 0x4c0fd0
lea eax, [edx + edx*4]
mov ebx, ebp
mov ebp, dword [esp + 0x1c]
mov edi, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], eax
jmp 0x4c1584
mov dword [esp + 0x58], esi
cmp esi, dword [esp + 0x28]
lea eax, [esi + 1]
cmovge eax, dword [esp + 0x24]
mov esi, eax
mov eax, dword [ebx + eax*8 + 4]
sub eax, dword [esp + 0x2c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jle 0x4c15b9
mov eax, dword [ecx]
sub eax, dword [esp + 0x5c]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x1c]
jle 0x4c18c8
movzx eax, byte [edi + esi]
and eax, 3
cmp al, 1
jne 0x4c15d8
mov edx, dword [esp + 0x38]
mov eax, edx
shr eax, 0x1f
test al, al
mov eax, edx
cmovne eax, esi
mov dword [esp + 0x38], eax
cmp esi, ebp
jne 0x4c1580
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x20]
lea esi, [esi]
mov eax, dword [esp + 0x3c]
test eax, eax
js 0x4c1623
mov esi, dword [esp + 0x38]
test esi, esi
js 0x4c1623
mov eax, dword [ebx + eax*8]
sub eax, dword [ebx + esi*8]
mov esi, dword [esp + 0x34]
mov esi, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
mov edx, esi
mov dword [esp + 0x1c], esi
shr edx, 3
cmp eax, edx
ja 0x4c1537
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + ebp]
and eax, 3
cmp al, 1
je 0x4c1520
test byte [esp + 0x68], 2
jne 0x4c0fd0
mov eax, dword [esp + 0x4c]
mov dword [esp + eax*4 + 0x144], edi
add eax, 1
mov dword [esp + 0x4c], eax
jmp 0x4c0fd0
xor eax, eax
cmp esi, dword [esp + 0x1c]
jne 0x4c140c
mov ebx, ebp
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x4c15f0
cmp dword [esp + 0x4c], 1
mov ebx, 1
mov esi, dword [esp + 0x4c]
jle 0x4c16be
nop
lea esi, [esi]
mov eax, ebx
mov edx, dword [esp + eax*4 + 0x144]
mov ecx, dword [esp + eax*4 + 0x140]
cmp edx, ecx
jge 0x4c16b7
mov dword [esp + eax*4 + 0x144], ecx
mov dword [esp + eax*4 + 0x140], edx
sub eax, 1
jne 0x4c1692
add ebx, 1
cmp esi, ebx
jne 0x4c1690
cmp dword [esp + 0x48], 1
mov ebx, 1
mov esi, dword [esp + 0x48]
jle 0x4c1885
mov eax, ebx
mov edx, dword [esp + eax*4 + 0x78]
mov ecx, dword [esp + eax*4 + 0x74]
cmp edx, ecx
jge 0x4c16ed
mov dword [esp + eax*4 + 0x78], ecx
mov dword [esp + eax*4 + 0x74], edx
sub eax, 1
jne 0x4c16d4
add ebx, 1
cmp esi, ebx
jne 0x4c16d2
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x5f4]
lea eax, [edx + 1]
mov dword [edi + 0x5f4], eax
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4c1855
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
imul ecx, edx, 0x1c
sar eax, 1
mov eax, dword [esp + eax*4 + 0x78]
lea ecx, [edi + ecx + 0x5ec]
mov ebx, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0xc], eax
cmp ebx, eax
je 0x4c1843
mov edi, dword [esp + 0x40]
xor ecx, ecx
movzx edi, word [edi + 4]
mov ebp, edi
mov word [esp + 0x18], di
and ebp, 1
cmp ebx, eax
setg cl
movzx edi, bp
mov esi, ecx
movzx ecx, word [esp + 0x18]
cmp edi, esi
je 0x4c1781
add eax, ebx
mov edi, dword [esp + 0x34]
mov ebx, eax
shr ebx, 0x1f
add eax, ebx
imul ebx, edx, 0x1c
sar eax, 1
lea ebx, [edi + ebx + 0x5ec]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0xc], eax
imul eax, edx, 0x1c
test bp, bp
mov edi, dword [esp + 0x34]
jne 0x4c17f8
mov dword [edi + eax + 0x610], 0
mov ebx, 0xc
mov eax, 8
mov esi, 4
test cl, 2
je 0x4c17bc
imul eax, edx, 0x1c
mov edi, dword [esp + 0x34]
mov dword [edi + eax + 0x610], esi
mov eax, ebx
and ecx, 4
je 0x4c14fe
imul edx, edx, 0x1c
mov edi, dword [esp + 0x34]
mov dword [edi + edx + 0x610], eax
jmp 0x4c14fe
mov ebx, edi
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x20]
jmp 0x4c1262
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4c11ca
mov dword [edi + eax + 0x610], 2
mov ebx, 0xe
mov eax, 0xa
mov esi, 6
jmp 0x4c17a7
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x58], esi
test ebx, ebx
jns 0x4c13e6
mov dword [esp + 0x64], esi
jmp 0x4c13e6
mov eax, dword [esp + 0x48]
xor edi, edi
mov dword [esp + eax*4 + 0x78], edi
add eax, 1
mov dword [esp + 0x48], eax
jmp 0x4c0fd0
mov eax, dword [esp + 0x40]
movzx ecx, word [eax + 4]
mov ebp, ecx
and ebp, 1
jmp 0x4c1781
imul eax, edx, 0x1c
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x4c]
lea ecx, [edi + eax + 0x5ec]
mov eax, dword [esp + 0x48]
sar ebx, 1
mov ebx, dword [esp + ebx*4 + 0x144]
sar eax, 1
mov eax, dword [esp + eax*4 + 0x78]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0xc], eax
jmp 0x4c1733
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x5f4]
test ecx, ecx
lea eax, [edx + 1]
mov dword [edi + 0x5f4], eax
jne 0x4c1707
mov eax, dword [esp + 0x4c]
imul ecx, edx, 0x1c
sar eax, 1
mov eax, dword [esp + eax*4 + 0x144]
lea ecx, [edi + ecx + 0x5ec]
mov ebx, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0xc], eax
jmp 0x4c1733
mov eax, dword [esp + 0x58]
cmp esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
lea eax, [esi - 1]
cmovg ebp, eax
jmp 0x4c15e4