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

Disassembly:
sub esp, 0x60
cmp dword [ebx + 0x20], 0
fld dword [0x9ad780]
mov eax, dword [ebx + 4]
fstp dword [esp + 8]
fld1
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
fstp dword [esp + 4]
fldz
push ebp
push esi
fst dword [esp + 0x14]
mov esi, dword [ebx]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x18]
push edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
je 0x4caad2
test edi, edi
je 0x4ca7e1
mov ebp, dword [esp + 0x70]
fstp st(0)
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 2
push ecx
call edx
mov eax, dword [esi + 0x24]
push 0x48
push 0x48
push 0x40
push 0x40
push eax
call fcn.0060a1d0
add esp, 0x1c
test eax, eax
je 0x4ca79c
mov ecx, eax
call fcn.005027f0
push eax
push str.freetype_set_character_size:__s
push 0x2d7
push str..mupdf_source_fitz_stext_device.c
push ebp
call fcn.004b3370
add esp, 0x14
movzx ecx, word [edi + 0x44]
movsx edx, word [edi + 0x46]
mov dword [esp + 0x18], ecx
movsx eax, word [edi + 0x48]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov ebp, dword [ebp + 4]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [ebp]
mov edx, dword [ebp + 8]
fdiv st(1)
push 2
push ecx
fstp dword [esp + 0x18]
fild dword [esp + 0x20]
fdivrp st(1)
fstp dword [esp + 0x20]
call edx
fldz
add esp, 8
jmp 0x4ca81c
cmp dword [esi + 0x5c], 0
je 0x4ca81c
fld dword [esi + 0x78]
fld dword [esi + 0x80]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ca81c
fld dword [esi + 0x7c]
fld dword [esi + 0x84]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ca81c
fld dword [esi + 0x84]
fstp dword [esp + 0x10]
fld dword [esi + 0x7c]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
fstp dword [eax + 0x18]
fld dword [esp + 0x18]
lea edx, [esp + 0x38]
fstp dword [eax + 0x1c]
lea eax, [esp + 0x50]
fst dword [esp + 0x48]
fstp dword [esp + 0x4c]
call fcn.004bdca0
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [ebx + 0x20], edi
jle 0x4caad4
mov eax, dword [ebx + 0x28]
mov ecx, dword [esp + 0x78]
mov ebp, edi
shl ebp, 4
fld dword [eax + ebp]
lea edx, [esp + 0x38]
fstp dword [esp + 0x48]
fld dword [eax + ebp + 4]
lea eax, [esp + 0x50]
fstp dword [esp + 0x4c]
call fcn.004bdca0
cmp dword [esi + 0x24], 0
je 0x4ca93d
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], 0
mov edx, dword [eax]
mov eax, dword [eax + 4]
push 2
push edx
call eax
mov ecx, dword [esi + 0x24]
push 0x48
push 0x48
push 0x40
push 0x40
push ecx
call fcn.0060a1d0
add esp, 0x1c
test eax, eax
je 0x4ca8f6
cmp dword [str.no_error], 0
mov ecx, 0x894840
je 0x4ca8d4
cmp dword [ecx], eax
je 0x4ca938
add ecx, 8
cmp dword [ecx + 4], 0
jne 0x4ca8c7
mov ecx, str.Unknown_error
mov edx, dword [esp + 0x70]
push ecx
push str.freetype_set_character_size:__s
push 0x2fb
push str..mupdf_source_fitz_stext_device.c
push edx
call fcn.004b3370
add esp, 0x14
mov ecx, dword [ebx + 0x28]
mov edx, dword [ecx + ebp + 8]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x24]
push 0x80a
push edx
push eax
call fcn.0060eeb0
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
fmul qword [0x9adf10]
mov eax, dword [eax + 8]
push 2
push edx
fstp dword [esp + 0x2c]
call eax
add esp, 0x18
jmp 0x4ca955
mov ecx, dword [ecx + 4]
jmp 0x4ca8d9
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx + ebp + 8]
cmp eax, 0x100
jge 0x4ca955
mov edx, dword [esi + 0x64]
fld dword [edx + eax*4]
fstp dword [esp + 0x14]
cmp dword [esi + 0x24], 0
je 0x4ca9db
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + ebp + 8]
push 0x7b7da4
push ecx
mov ecx, dword [esp + 0x78]
lea edi, [esp + 0x30]
mov eax, esi
call fcn.005049f0
mov ecx, dword [esp + 0x84]
fld dword [ecx + 0x18]
add esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x34]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4ca9a1
fstp st(0)
jmp 0x4ca9a3
fstp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [ecx + 0x18]
fld dword [ecx + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4ca9ca
fstp st(0)
jmp 0x4ca9cc
fstp st(1)
mov edi, dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [ecx + 0x1c]
mov edx, dword [ebx + 0x20]
lea eax, [edi + 1]
cmp eax, edx
jge 0x4caa01
mov edi, dword [ebx + 0x28]
mov ecx, eax
add ecx, ecx
lea ecx, [edi + ecx*8 + 8]
cmp dword [ecx], 0
jge 0x4ca9fd
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x4ca9f0
mov edi, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x18], eax
cmp eax, 1
jne 0x4caa41
fld dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov edx, dword [ebx + 0x28]
mov esi, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esp + 0x74]
fstp dword [esp]
push eax
mov eax, dword [edx + ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x5c]
call fcn.004ca4c0
mov esi, dword [esp + 0x28]
add esp, 0xc
jmp 0x4caaa7
xor ecx, ecx
test eax, eax
jle 0x4caa9f
fld dword [esp + 0x14]
mov dword [esp + 0x24], eax
fidiv dword [esp + 0x18]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
mov edx, dword [ebx + 0x28]
mov esi, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esp + 0x74]
fstp dword [esp]
push eax
mov eax, dword [edx + ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x5c]
call fcn.004ca4c0
add esp, 0xc
add ebp, 0x10
dec dword [esp + 0x18]
jne 0x4caa5b
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
lea edx, [edi + ecx - 1]
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x28]
mov eax, edi
add eax, eax
mov edx, dword [ecx + eax*8 + 0xc]
mov eax, dword [esp + 0x74]
inc edi
mov dword [eax + 0x10], edx
mov dword [esp + 0x10], edi
cmp edi, dword [ebx + 0x20]
jl 0x4ca856
pop edi
pop esi
pop ebp
add esp, 0x60
ret
fstp st(0)
pop edi
pop esi
pop ebp
add esp, 0x60
ret