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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], eax
cmp dword [edi], eax
jbe 0x477779
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4771f1
cmp dword [eax], 0
jne 0x477779
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x24]
fld qword [esi + 8]
fld qword [esi + 0x10]
fld qword [esi + 0x18]
fld qword [esi + 0x20]
fxch st(3)
fst dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fxch st(2)
mov dword [esp + 0x58], edx
fst dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fxch st(1)
mov dword [esp + 0x5c], eax
faddp st(2)
fxch st(1)
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x20]
faddp st(1)
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x58]
call fcn.004beb60
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
test ebx, ebx
je 0x4772a3
mov edx, ebx
lea ecx, [esp + 0x48]
call fcn.004be770
mov ecx, eax
fld dword [ecx]
fld dword [ecx + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x477763
fld dword [ecx + 4]
fld dword [ecx + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x477763
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov ebx, 0x2c
mov dword [esp + 0x14], eax
call fcn.004d1410
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x1c], edi
push 0x2c
cmp edi, ebx
je 0x47778b
push ebx
push edi
call fcn.0065b340
fldz
fst dword [edi + 0x18]
mov dword [edi + 0x28], ebx
fst dword [edi + 0x1c]
add esp, 0xc
fst dword [edi + 0x20]
mov dword [esp + 0x18], ebx
fstp dword [edi + 0x24]
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x4772f5
jmp dword [eax*4 + 0x4777a8]
fld qword [esi + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 0x10]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
sub esp, 8
fstp dword [esp + 4]
mov eax, edi
fld qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf420
fld qword [esi + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov eax, edi
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf4a0
fld qword [esi + 0x20]
mov edx, dword [esp + 0x18]
fadd qword [esi + 0x10]
mov ebx, dword [edx + 0x10]
mov eax, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf4a0
fld qword [esi + 0x20]
mov ecx, dword [esp + 0x18]
fadd qword [esi + 0x10]
mov ebx, dword [ecx + 0x10]
mov eax, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf4a0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x10]
add esp, 8
cmp dword [edi], 0
jne 0x4773e3
push str.closepath_with_no_current_point
push 0xd1
push str..mupdf_source_fitzpath.c
push eax
call fcn.004b3370
add esp, 0x10
jmp 0x4775f6
cmp dword [edi + 0x28], 0x5a
je 0x4775f6
push 0x5a
call fcn.004bf270
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
add esp, 4
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov edi, eax
jmp 0x4775f6
fld qword [esi + 0x20]
mov edx, dword [esp + 0x10]
fadd qword [esi + 0x10]
mov ebx, dword [edx + 0x10]
sub esp, 8
mov eax, edi
fsub qword [0x9adb88]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf420
fld qword [esi + 0x20]
fadd qword [esi + 0x10]
fsub qword [0x9adb88]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fstp dword [esp]
mov ebx, dword [ecx + 0x10]
mov eax, edi
call fcn.004bf4a0
add esp, 8
jmp case.default.0x4772f5
fld qword [esi + 0x20]
mov edx, dword [esp + 0x10]
fmul qword [0x9ad788]
mov ebx, dword [edx + 0x10]
sub esp, 8
mov eax, edi
fadd qword [esi + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf420
fld qword [esi + 0x20]
fmul qword [0x9ad788]
fadd qword [esi + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x47746b
fld qword [esi + 0x20]
mov edx, dword [esp + 0x10]
fadd qword [esi + 0x10]
mov ebx, dword [edx + 0x10]
sub esp, 8
mov eax, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 8]
fadd qword [0x9ad778]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf420
fld qword [esi + 0x20]
mov ecx, dword [esp + 0x18]
fadd qword [esi + 0x10]
mov ebx, dword [ecx + 0x10]
mov eax, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf4a0
fld qword [esi + 0x20]
mov edx, dword [esp + 0x18]
fadd qword [esi + 0x10]
mov ebx, dword [edx + 0x10]
mov eax, edi
fsub qword [0x9ad788]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf420
fld qword [esi + 0x20]
mov ecx, dword [esp + 0x18]
fadd qword [esi + 0x10]
mov ebx, dword [ecx + 0x10]
mov eax, edi
fsub qword [0x9ad788]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 4]
fld qword [esi + 0x18]
fadd qword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004bf4a0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x10]
add esp, 8
mov eax, 2
call fcn.004bfc60
fld dword [0x9ad7c0]
mov ecx, dword [eax + 0x20]
fstp dword [eax + 0x14]
fld1
mov edx, 1
fst dword [eax + ecx*4 + 0x24]
mov dword [esp + 0x18], eax
add dword [eax + 0x20], edx
mov ecx, dword [eax + 0x20]
fstp dword [eax + ecx*4 + 0x24]
add dword [eax + 0x20], edx
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 8]
movzx edx, byte [esi + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
fild dword [esp + 0x14]
fld qword [0x9ad798]
fdiv st(1), st(0)
fxch st(1)
fstp dword [esp + 0x68]
movzx eax, byte [esi + 0x29]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x6c]
movzx edx, byte [esi + 0x2a]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdivrp st(1)
fstp dword [esp + 0x70]
cmp dword [esi], 1
jne 0x4776fb
fld1
push ecx
fstp dword [esp]
lea eax, [esp + 0x5c]
push 1
push 0
push 0
push eax
push ebx
call fcn.004d1190
add esp, 0x18
cmp dword [ebx + 0x74], 0
jne 0x4776a7
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4776a7
movzx ecx, byte [esi + 0x2b]
mov dword [esp + 0x14], ecx
push ecx
mov ecx, dword [esp + 0x10]
fild dword [esp + 0x18]
lea edx, [esp + 0x6c]
fdiv qword [0x9ad798]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push 0
push edi
push ebx
call eax
add esp, 0x1c
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x4776d6
dec eax
mov dword [ebx + 0x74], eax
jne 0x47774f
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0x78]
push eax
push 0x924470
push 1
push 0x1cf
push str..mupdf_source_fitzdevice.c
push ecx
call fcn.004b35a0
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x4776e3
push ebx
call eax
add esp, 4
test byte [ebx], 8
je 0x47774f
mov eax, dword [ebx + 0x178]
test eax, eax
jle 0x47774f
dec eax
mov dword [ebx + 0x178], eax
jmp 0x47774f
cmp dword [esp + 0x18], 0
jne 0x47770d
xor eax, eax
call fcn.004bfc60
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x74], 0
jne 0x47773b
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x47773b
fld1
mov edx, dword [esp + 0xc]
push ecx
fstp dword [esp]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push edi
push ebx
call eax
add esp, 0x1c
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
call fcn.004bfbf0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
call fcn.004bf1e0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0x30
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edi]
jb 0x4771e1
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push 1
push str.calloc___d_x__d_bytes__failed
push 1
push 0x7a
push str..mupdf_source_fitzmemory.c
push edx
call fcn.004b35a0
lea ecx, [ecx]
cld
jb 4683762
add byte [esi], cl
je 0x4777f6
add byte [esp + esi*2 + 0x74e30047], al
inc edi
add ah, cl
int3
add cl, bl
call 0x2464514e