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

Disassembly:
sub esp, 0xc8
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
push ebx
mov ebx, dword [esp + 0xe4]
push ebp
mov ebp, dword [esp + 0xf0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe0]
push esi
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xe8]
push edi
mov dword [esp + 0x14], eax
mov edi, str.Opacity
mov eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0
call fcn.004cb930
mov dword [esp + 0x44], eax
mov edi, str.Transform
mov eax, ebx
call fcn.004cb930
mov dword [esp + 0x10], eax
mov edi, str.Viewbox
mov eax, ebx
call fcn.004cb930
mov dword [esp + 0x24], eax
mov edi, str.Viewport
mov eax, ebx
call fcn.004cb930
mov dword [esp + 0x20], eax
mov edi, str.TileMode
mov eax, ebx
call fcn.004cb930
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], ebp
test ebx, ebx
je 0x4d6966
mov ecx, str.ImageBrush.Transform
mov eax, ebx
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d6920
test dl, dl
je 0x4d691c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d6920
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d6900
xor eax, eax
jmp 0x4d6925
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d692c
mov esi, dword [ebx + 0x34]
mov ecx, str.VisualBrush.Transform
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d6953
test dl, dl
je 0x4d694f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d6953
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d6933
xor eax, eax
jmp 0x4d6958
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d695f
mov esi, dword [ebx + 0x34]
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
jne 0x4d68f3
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4d6987
mov ecx, dword [esp + 0x28]
push ecx
xor edi, edi
mov ecx, ebp
call fcn.0052b3c0
add esp, 4
test eax, eax
je 0x4d6987
xor ebp, ebp
mov esi, eax
mov edx, dword [0x7b7da4]
mov eax, dword [0x7b7da8]
mov ecx, dword [0x7b7dac]
mov dword [esp + 0x84], edx
mov edx, dword [0x7b7db0]
mov dword [esp + 0x88], eax
mov eax, dword [0x7b7db4]
mov dword [esp + 0x8c], ecx
mov ecx, dword [0x7b7db8]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test ebp, ebp
je 0x4d69e5
lea ebx, [esp + 0x84]
mov ecx, ebp
call fcn.0052aba0
test esi, esi
je 0x4d69f5
lea eax, [esp + 0x84]
call fcn.0052ac40
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x84]
mov eax, edx
call fcn.004bdca0
mov ecx, dword [0x7b9d04]
mov edx, dword [0x7b9cfc]
mov eax, dword [0x7b9d00]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x9c], edx
mov edx, dword [0x7b9d08]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], edx
test ecx, ecx
je 0x4d6a4e
lea ebx, [esp + 0x9c]
call fcn.0052acd0
mov ecx, dword [0x7b9d00]
mov eax, dword [0x7b9cfc]
mov edx, dword [0x7b9d04]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [0x7b9d08]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
test ecx, ecx
je 0x4d6a88
lea ebx, [esp + 0x74]
call fcn.0052acd0
fld dword [esp + 0x7c]
fsub dword [esp + 0x74]
fst qword [esp + 0x34]
fld st(0)
fabs
fstp dword [esp + 0x1c]
fld dword [0x9ade40]
fcom dword [esp + 0x1c]
fnstsw ax
fld dword [esp + 0x80]
fld dword [esp + 0x78]
test ah, 0x41
je 0x4d6b78
fld st(1)
fsub st(1)
fst qword [esp + 0xac]
fld st(0)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(4)
fnstsw ax
test ah, 5
jnp 0x4d6b76
fstp st(1)
fstp st(1)
fld dword [esp + 0xa4]
fsub dword [esp + 0x9c]
fld st(0)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(3)
fnstsw ax
fld dword [esp + 0xa8]
fld dword [esp + 0xa0]
test ah, 5
jnp 0x4d6b30
fld st(1)
fsub st(1)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(5)
fnstsw ax
test ah, 5
jp 0x4d6bbf
mov ebx, dword [esp + 0x30]
fstp st(4)
mov ecx, dword [ebx + 0x48]
fstp st(4)
fstp st(1)
sub esp, 0x10
fxch st(2)
fsubrp st(1)
fstp qword [esp + 8]
fstp qword [esp]
push str.not_drawing_tile_for_viewbox_size__.4f_x__.4f
push 0x82
push str..mupdf_sourcexpsxps_tile.c
push ecx
call fcn.004b3370
fld qword [esp + 0x54]
fld dword [0x9ade40]
add esp, 0x20
fld qword [esp + 0xac]
jmp 0x4d6bc9
fstp st(3)
mov ebx, dword [esp + 0x30]
fstp st(2)
mov edx, dword [ebx + 0x48]
fsubrp st(1)
sub esp, 0x10
fst qword [esp + 0xbc]
fstp qword [esp + 8]
fstp qword [esp]
push str.not_drawing_tile_for_viewport_size__.4f_x__.4f
push 0x80
push str..mupdf_sourcexpsxps_tile.c
push edx
call fcn.004b3370
fld qword [esp + 0x54]
fld dword [0x9ade40]
add esp, 0x20
fld qword [esp + 0xac]
jmp 0x4d6bc9
mov ebx, dword [esp + 0x30]
fstp st(2)
fstp st(0)
fstp st(0)
fxch st(1)
fcom dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x4d73de
fld st(1)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4d73de
fld dword [esp + 0xa4]
fsub dword [esp + 0x9c]
fld st(0)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(2)
fnstsw ax
test ah, 5
jnp 0x4d73d6
fld dword [esp + 0xa8]
fsub dword [esp + 0xa0]
fld st(0)
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 5
jnp 0x4d73dc
fstp dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
fstp dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
fld dword [esp + 0x24]
fld st(0)
fdivp st(3)
fxch st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x34]
test esi, esi
je 0x4d6dcb
mov edx, str.None
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4d6ca0
test al, al
je 0x4d6c9c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4d6ca0
add ecx, 2
add edx, 2
test al, al
jne 0x4d6c80
xor eax, eax
jmp 0x4d6ca5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d6caf
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov edx, str.Tile
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4d6cd6
test al, al
je 0x4d6cd2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4d6cd6
add ecx, 2
add edx, 2
test al, al
jne 0x4d6cb6
xor eax, eax
jmp 0x4d6cdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d6ce8
mov ebp, 1
mov dword [esp + 0x1c], ebp
mov edx, str.FlipX
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4d6d0f
test al, al
je 0x4d6d0b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4d6d0f
add ecx, 2
add edx, 2
test al, al
jne 0x4d6cef
xor eax, eax
jmp 0x4d6d14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d6d21
mov ebp, 2
mov dword [esp + 0x1c], ebp
mov edx, str.FlipY
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4d6d48
test al, al
je 0x4d6d44
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4d6d48
add ecx, 2
add edx, 2
test al, al
jne 0x4d6d28
xor eax, eax
jmp 0x4d6d4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d6d5a
mov ebp, 3
mov dword [esp + 0x1c], ebp
mov ecx, str.FlipXY
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d6d81
test dl, dl
je 0x4d6d7d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d6d81
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d6d61
xor eax, eax
jmp 0x4d6d86
sbb eax, eax
sbb eax, 0xffffffff
fld qword [0x9ad7f0]
test eax, eax
jne 0x4d6da3
fmul st(2), st(0)
mov ebp, 4
fxch st(2)
mov dword [esp + 0x1c], ebp
fstp dword [esp + 0x24]
jmp 0x4d6db9
cmp ebp, 2
je 0x4d6dad
cmp ebp, 4
jne 0x4d6db7
fmul st(2), st(0)
fxch st(2)
fstp dword [esp + 0x24]
jmp 0x4d6db9
fstp st(2)
cmp ebp, 3
je 0x4d6dc3
cmp ebp, 4
jne 0x4d6dcf
fmulp st(1)
fstp dword [esp + 0x20]
jmp 0x4d6dd3
fstp st(1)
jmp 0x4d6dd1
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push 0
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x98]
push eax
push ebx
call fcn.0052a9b0
fld dword [esp + 0xa8]
fld st(0)
add esp, 0x1c
fld dword [esp + 0x78]
fld st(0)
fmulp st(2)
fld dword [esp + 0x84]
fld st(0)
fld dword [esp + 0x74]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x94]
fstp dword [esp + 0x94]
fld dword [esp + 0x90]
fld st(0)
fmulp st(3)
fld dword [esp + 0x88]
fld st(0)
fmulp st(5)
fxch st(3)
faddp st(4)
fld dword [esp + 0x98]
faddp st(4)
fxch st(3)
fstp dword [esp + 0x98]
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x84]
fmulp st(1)
fstp dword [esp + 0x88]
fld dword [esp + 0x34]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x8c]
fmulp st(1)
fstp dword [esp + 0x90]
fld dword [esp + 0x9c]
fchs
fstp dword [esp + 0x2c]
fld dword [esp + 0xa0]
fchs
fstp dword [esp + 0x18]
fld dword [esp + 0x8c]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fld dword [esp + 0x2c]
fld st(0)
fmul dword [esp + 0x84]
faddp st(3)
fld dword [esp + 0x94]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x94]
fmul dword [esp + 0x90]
fld dword [esp + 0x88]
fmulp st(2)
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x98]
test ebp, ebp
je 0x4d73b4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x84]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x7c], eax
call fcn.004be0e0
mov ecx, eax
lea edx, [esp + 0x74]
call fcn.004beb60
fld dword [esp + 0x24]
fadd dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xb4], ecx
fstp dword [esp + 0xb4]
mov dword [esp + 0xb0], eax
fld dword [esp + 0xb0]
fadd dword [esp + 0x20]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xb8], edx
lea ecx, [esp + 0x84]
fstp dword [esp + 0xb8]
lea edx, [esp + 0xac]
call fcn.004beb60
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004be420
fild dword [esp + 0x34]
fstp dword [esp + 0x18]
fild dword [esp + 0x38]
fstp dword [esp + 0x2c]
fld dword [esp + 0x5c]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fld dword [esp + 0x64]
fld dword [esp + 0x2c]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0xac]
fmul dword [esp + 0x60]
fld dword [esp + 0x68]
fmulp st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esp + 0xb0]
fldz
fld dword [esp + 0xac]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4d7019
fst dword [esp + 0x14]
jmp 0x4d7021
fxch st(1)
fst dword [esp + 0x14]
fxch st(1)
fld dword [esp + 0x14]
fld qword [0x9adcf8]
fsub st(1), st(0)
fxch st(1)
fsubr dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0xb0]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4d704d
fst dword [esp + 0x14]
jmp 0x4d7055
fxch st(3)
fst dword [esp + 0x14]
fxch st(3)
fld dword [esp + 0x78]
fld dword [esp + 0x14]
fsub st(3)
fsubp st(1)
fstp dword [esp + 0x78]
fxch st(2)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4d7076
fstp dword [esp + 0x14]
jmp 0x4d7080
fstp st(0)
fxch st(2)
fst dword [esp + 0x14]
fxch st(2)
fld dword [esp + 0x24]
fld st(0)
fsub dword [esp + 0x14]
fsub st(2)
fadd dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fxch st(2)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4d70a3
fstp st(3)
jmp 0x4d70a5
fstp st(0)
fxch st(2)
sub esp, 8
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
fsubrp st(2)
fld dword [esp + 0x88]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x88]
fdivr dword [esp + 0x7c]
fstp qword [esp]
call fcn.0065d120
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.0065d070
fld dword [esp + 0x80]
fdiv dword [esp + 0x28]
mov dword [esp + 0x34], eax
fstp qword [esp]
call fcn.0065d120
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.0065d070
fld dword [esp + 0x84]
fdiv dword [esp + 0x2c]
mov esi, eax
fstp qword [esp]
call fcn.0065e9d0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.0065d070
fld dword [esp + 0x88]
fdiv dword [esp + 0x28]
mov dword [esp + 0x18], eax
fstp qword [esp]
call fcn.0065e9d0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
add esp, 8
call fcn.0065d070
fld dword [esp + 0x7c]
fsub dword [esp + 0x74]
mov ecx, eax
fld dword [esp + 0x24]
mov dword [esp + 0xac], ecx
fld st(0)
fdivp st(2)
fld1
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jnp 0x4d72f6
fld dword [esp + 0x80]
fsub dword [esp + 0x78]
fld dword [esp + 0x20]
fld st(0)
fdivp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
je 0x4d72fe
fstp st(0)
mov dword [esp + 0x28], esi
cmp esi, ecx
jge 0x4d72cf
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
cmp ebp, dword [esp + 0x10]
jge 0x4d72b5
fimul dword [esp + 0x28]
fstp dword [esp + 0x14]
jmp 0x4d71d0
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
fild dword [esp + 0x34]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x30]
fmul dword [esp + 0x24]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x90]
fstp dword [esp + 0x18]
fld dword [esp + 0x8c]
mov dword [esp + 0xcc], ecx
fmul st(1)
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x18]
mov dword [esp + 0xc8], eax
fld st(0)
mov dword [esp + 0xc4], edx
fmul dword [esp + 0x84]
mov edx, dword [esp + 0x98]
mov dword [esp + 0xd0], edx
lea eax, [esp + 0x48]
faddp st(2)
push eax
fld dword [esp + 0x98]
push ecx
lea edi, [esp + 0xa4]
faddp st(2)
lea esi, [esp + 0xc4]
fxch st(1)
fstp dword [esp + 0xd4]
fld dword [esp + 0xd0]
fmulp st(2)
fmul dword [esp + 0xc8]
faddp st(1)
fadd dword [esp + 0xd8]
fstp dword [esp + 0xd8]
call fcn.004d65a0
inc ebp
add esp, 8
mov dword [esp + 0x34], ebp
cmp ebp, dword [esp + 0x10]
jl 0x4d71d0
fld dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0xac]
jl 0x4d71ac
mov ebx, dword [esp + 0x30]
fstp st(0)
cmp dword [esp + 0x44], 0
je 0x4d73e4
mov eax, dword [ebx + 0x184]
test eax, eax
jle 0x4d73e4
dec eax
mov dword [ebx + 0x184], eax
jmp 0x4d73e4
fstp st(1)
fld dword [esp + 0x20]
fxch st(1)
mov ecx, dword [esp + 0xa4]
fld st(0)
fadd dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
fstp dword [esp + 0xb4]
fld dword [esp + 0xb0]
push 0
fadd st(2)
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0xac]
lea eax, [esp + 0x88]
push eax
mov eax, dword [ebx + 0x1b4]
mov dword [esp + 0xc0], edx
fstp dword [esp + 0xc0]
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x84]
fstp dword [esp]
push ecx
push edx
push eax
call fcn.004d12c0
lea ecx, [esp + 0x64]
push ecx
push ebp
lea edi, [esp + 0xc0]
lea esi, [esp + 0xa8]
call fcn.004d65a0
mov eax, dword [ebx + 0x1b4]
add esp, 0x24
call fcn.004d13d0
jmp 0x4d72d1
lea edx, [esp + 0x48]
push edx
push 0
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.004d65a0
add esp, 8
jmp 0x4d72d1
fstp st(1)
fstp st(2)
jmp 0x4d73e0
fstp st(3)
fstp st(0)
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0xc8
ret