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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, eax
mov dword [esp + 0x2c], ecx
mov ebx, dword [eax + 0x54]
test ebx, ebx
je 0x6476d434
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x6476d24c
test byte [eax + 4], 1
je 0x6476d24c
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + 0x64]
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x6476d23d
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 0x24], edx
call dword [esi + 8]
mov eax, dword [ebx + 0x9c]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x58], 0
and dword [eax + 4], 0xfffffffe
jmp 0x6476d253
mov dword [ebx + 0x58], 0
lea esi, [ebx + 0x18]
xor eax, eax
mov ecx, 0x20
mov edi, esi
rep stosb byte es:[edi], al
lea edi, [ebx + 0x6c]
mov dword [esp + 0x30], edi
mov cl, 0x14
rep stosb byte es:[edi], al
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x54], 0
mov byte [ebx + 0x5e], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xa8]
test dword [esp + 0x2c], 0x400
je 0x6476d30c
or dword [esp + 0x2c], 0x801
test byte [esp + 0x2c], 1
je 0x6476d31d
and dword [esp + 0x2c], 0xfffffffb
or dword [esp + 0x2c], 0xa
test ecx, ecx
je 0x6476d341
test dword [esp + 0x2c], 0x8002
jne 0x6476d341
mov esi, dword [eax]
mov edi, dword [esi]
and edi, 0x300
cmp edi, 0x100
je 0x6476d444
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x58]
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [eax + 0x50]
mov esi, eax
test eax, eax
jne 0x6476d428
cmp dword [ebx + 0x48], 0x6f75746c
je 0x6476d620
mov ecx, dword [esp + 0x2c]
and ecx, 0x800
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x2c]
and eax, 0x10
test eax, eax
je 0x6476d540
lea esi, [esi]
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x40], eax
test dword [esp + 0x2c], 0x2000
jne 0x6476d3b3
test byte [ebp + 8], 1
jne 0x6476d54c
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x6476d3cc
mov edi, dword [ebp + 0x80]
mov ebp, dword [edi + 0x1c]
test ebp, ebp
jne 0x6476d58c
test esi, esi
jne 0x6476d428
mov eax, dword [ebx + 0x48]
cmp eax, 0x62697473
je 0x6476d428
cmp eax, 0x636f6d70
je 0x6476d428
test byte [esp + 0x2c], 4
je 0x6476d428
mov eax, dword [esp + 0x2c]
sar eax, 0x10
and eax, 0xf
jne 0x6476d403
test dword [esp + 0x2c], 0x1000
je 0x6476d403
mov eax, 2
mov edx, dword [ebx + 4]
test edx, edx
je 0x6476d614
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [edx + 0x60]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_FT_Render_Glyph_Internal
mov esi, eax
nop
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x23
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 8]
mov dword [esp + 0x3c], edi
and edi, 0x2000
jne 0x6476d341
mov edi, dword [esp + 0x2c]
and edi, 0x800
mov dword [esp + 0x38], edi
jne 0x6476d48c
mov edi, dword [ebp + 0x80]
mov dword [esp + 0x34], edi
cmp dword [edi + 0xc], 0
je 0x6476d71d
mov edi, dword [esp + 0x34]
cmp dword [edi + 4], 0
jne 0x6476d341
lea esi, [esi]
test byte [esp + 0x2c], 0x20
jne 0x6476d4e0
mov esi, dword [esi]
and esi, 0x400
je 0x6476d4e0
mov esi, dword [esp + 0x2c]
sar esi, 0x10
and esi, 0xf
dec esi
je 0x6476d4e0
mov esi, dword [ebp + 0x80]
cmp byte [esi + 0x38], 0
jne 0x6476d4e0
test byte [esp + 0x3c], 8
je 0x6476d341
mov esi, dword [ebp + 0x2dc]
test esi, esi
je 0x6476d341
cmp word [ebp + 0x11e], 0
jne 0x6476d341
lea esi, [esi]
test byte [esp + 0x3c], 2
je 0x6476d4f2
test byte [esp + 0x2c], 8
je 0x6476d65c
mov edi, dword [ebp + 0x80]
mov esi, dword [edi + 0x1c]
mov dword [esp + 0x34], esi
mov dword [edi + 0x1c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [eax + 0xc]
mov esi, eax
mov edx, dword [esp + 0x34]
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0x2c]
and eax, 0x10
test eax, eax
jne 0x6476d394
mov eax, dword [ebx + 0x28]
xor edx, edx
jmp 0x6476d399
mov edi, dword [ebp + 0x58]
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x6476d568
cmp edx, 0x40
je 0x6476d568
mov ecx, 0x40
call fcn.647678c8
mov dword [ebx + 0x38], eax
mov edx, dword [edi + 0x14]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x6476d584
cmp edx, 0x40
je 0x6476d584
mov ecx, 0x40
call fcn.647678c8
mov dword [ebx + 0x3c], eax
jmp 0x6476d3b3
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xa4]
test edx, edx
je 0x6476d5a7
cmp ecx, dword [edx + 0x18]
je 0x6476d5cb
mov eax, dword [eax + 0x9c]
test eax, eax
jne 0x6476d5c3
jmp 0x6476d6ac
mov eax, dword [eax + 4]
test eax, eax
je 0x6476d6ac
mov edx, dword [eax + 8]
cmp ecx, dword [edx + 0x18]
jne 0x6476d5b8
mov eax, dword [edx + 0x14]
lea ecx, [edi + 0x14]
mov dword [esp + 0xc], ecx
lea ecx, [edi + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 0x28], ecx
call dword [eax + 0x2c]
mov esi, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
lea eax, [ebx + 0x40]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_FT_Vector_Transform
jmp 0x6476d3cc
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
dec edi
cmp eax, edi
je 0x6476d635
lea esi, [esi]
mov esi, 6
jmp 0x6476d428
movsx edi, word [ebx + 0x6e]
movsx eax, word [ebx + 0x6c]
cmp edi, 0
jne 0x6476d72d
test eax, eax
jne 0x6476d614
test byte [esp + 0x2c], 2
je 0x6476d77e
mov edi, dword [esp + 0x2c]
and edi, 0x800
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x2c]
and eax, 0x10
jmp 0x6476d389
mov eax, dword [eax + 0x14]
mov esi, dword [esp + 0x2c]
or esi, 0x4000
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov esi, dword [ebp + 0x58]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
call dword [eax + 0x50]
mov esi, eax
test eax, eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
jne 0x6476d4f2
cmp dword [ebx + 0x48], 0x62697473
jne 0x6476d4f2
jmp 0x6476d531
cmp ecx, 0x6f75746c
lea ecx, [edi + 4]
jne 0x6476d5f0
test ebp, 1
jne 0x6476d7f8
and ebp, 2
je 0x6476d5f0
mov edx, dword [edi + 0x18]
mov dword [esp + 0x30], edx
mov ebp, dword [edi + 0x14]
mov eax, dword [ebx + 0x70]
movsx edx, word [ebx + 0x6e]
test dx, dx
jle 0x6476d5f0
mov dword [esp + 0x34], edx
xor edx, edx
mov dword [esp + 0x38], ebx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x34]
add dword [eax], ebp
add dword [eax + 4], edi
add eax, 8
inc edx
movzx ebx, dx
cmp ebx, ecx
jl 0x6476d700
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
jmp 0x6476d5f0
mov edi, dword [edi + 4]
test edi, edi
je 0x6476d341
jmp 0x6476d48c
jle 0x6476d614
test eax, eax
jle 0x6476d614
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x34], edx
shl eax, 1
xor edx, edx
mov ecx, 0xffffffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov esi, eax
mov ebx, dword [esp + 0x34]
jmp 0x6476d771
cmp edi, eax
jle 0x6476d614
add edx, 2
mov ecx, eax
cmp edx, esi
je 0x6476d604
movsx eax, word [ebx + edx]
cmp eax, ecx
jg 0x6476d75c
jmp 0x6476d614
mov eax, dword [esp + 0x2c]
and eax, 0x10
jne 0x6476d818
and dword [ebx + 0x2c], 0xffffffc0
and dword [ebx + 0x30], 0xffffffc0
mov edx, dword [ebx + 0x20]
add edx, dword [ebx + 0x18]
add edx, 0x3f
and edx, 0xffffffc0
mov edi, dword [ebx + 0x24]
sub edi, dword [ebx + 0x1c]
and edi, 0xffffffc0
mov ecx, dword [ebx + 0x20]
and ecx, 0xffffffc0
mov dword [esp + 0x34], ecx
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 0x24]
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebx + 0x24], ecx
sub edx, dword [esp + 0x34]
mov dword [ebx + 0x18], edx
sub ecx, edi
mov dword [ebx + 0x1c], ecx
mov edx, dword [ebx + 0x28]
add edx, 0x20
and edx, 0xffffffc0
mov dword [ebx + 0x28], edx
mov edx, dword [ebx + 0x34]
add edx, 0x20
and edx, 0xffffffc0
mov dword [ebx + 0x34], edx
mov edi, dword [esp + 0x2c]
and edi, 0x800
mov dword [esp + 0x38], edi
jmp 0x6476d389
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call sym.allegro_5.0.10_monolith_mt.dll_FT_Outline_Transform
mov ebp, dword [edi + 0x1c]
mov ecx, dword [esp + 0x28]
jmp 0x6476d6c7
and dword [ebx + 0x20], 0xffffffc0
mov edx, dword [ebx + 0x24]
add edx, 0x3f
and edx, 0xffffffc0
mov dword [ebx + 0x24], edx
mov edi, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x18]
add ecx, edi
add ecx, 0x3f
and ecx, 0xffffffc0
mov edx, dword [ebx + 0x30]
add edx, dword [ebx + 0x1c]
add edx, 0x3f
and edx, 0xffffffc0
and edi, 0xffffffc0
mov dword [esp + 0x38], edi
mov dword [ebx + 0x2c], edi
mov edi, dword [ebx + 0x30]
and edi, 0xffffffc0
mov dword [ebx + 0x30], edi
sub ecx, dword [esp + 0x38]
mov dword [ebx + 0x18], ecx
sub edx, edi
mov dword [ebx + 0x1c], edx
jmp 0x6476d7cd